OSDN Git Service

libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite build
authorDenis Vlasenko <vda.linux@googlemail.com>
Mon, 2 Feb 2009 14:51:48 +0000 (14:51 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Mon, 2 Feb 2009 14:51:48 +0000 (14:51 -0000)
test/Rules.mak: don't pass target options to host build
test/math/basic-test.c: fix test build error
patching file test/unistd/errno.c: fix test build warning

libc/sysdeps/linux/i386/bits/kernel_types.h
libc/sysdeps/linux/x86_64/bits/kernel_types.h
libm/ldouble_wrappers.c
test/Rules.mak
test/math/basic-test.c
test/unistd/errno.c

index 543f75f..9c07c72 100644 (file)
@@ -50,4 +50,4 @@ typedef struct {
 #endif
 } __kernel_fsid_t;
 
-#endif /* __ARCH_I386_POSIX_TYPES_H */
+#endif
index b2f7341..de800d7 100644 (file)
@@ -50,4 +50,4 @@ typedef struct {
 #endif
 } __kernel_fsid_t;
 
-#endif /* _ASM_X86_64_POSIX_TYPES_H */
+#endif
index 69db91e..1af6b1b 100644 (file)
@@ -565,6 +565,7 @@ int __isnanl (long double x)
 {
        return __isnan ( (double)x );
 }
+libm_hidden_def(__isnanl)
 #endif
 
 #ifdef L_isinfl
@@ -572,6 +573,7 @@ int __isinfl (long double x)
 {
        return __isinf ( (double)x );
 }
+libm_hidden_def(__isinfl)
 #endif
 
 #endif
index 83d1082..92554c1 100644 (file)
@@ -86,7 +86,9 @@ CC_IPREFIX := $(shell $(CC) --print-file-name=include)
 CC_INC := -I$(dir $(CC_IPREFIX))include-fixed -I$(CC_IPREFIX)
 CFLAGS += $(CC_INC)
 
-HOST_CFLAGS    += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
+# Can't add $(OPTIMIZATION) here, it may be target-specific.
+# Just adding -Os for now.
+HOST_CFLAGS    += $(XWARNINGS) -Os $(XCOMMON_CFLAGS)
 
 LDFLAGS        := $(CPU_LDFLAGS)
 ifeq ($(DODEBUG),y)
index e42c014..04ec6ea 100644 (file)
@@ -17,6 +17,8 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#define _ISOC99_SOURCE
+
 #include <math.h>
 #include <float.h>
 #include <stdio.h>
index 5fdb3b3..5d4fc72 100644 (file)
@@ -17,7 +17,7 @@ int main(void)
 {
        int r_clone, ret_errno;
 
-       r_clone = do_clone(child_fn, NULL, (int) NULL, NULL);
+       r_clone = do_clone(child_fn, NULL, 0, NULL);
        ret_errno = errno;
        if (ret_errno != EINVAL || r_clone != -1) {
                fprintf(stderr, "clone: res=%d (wanted -1) errno=%d (wanted %d)\n",