diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 14:51:22 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-02-02 14:51:22 +0000 |
| commit | e07907e020b9e86e1ae125285ddb2090b3581f99 (patch) | |
| tree | a106a50d8c0a863aaa6af5075db9ba9871f0fc83 | |
| parent | 363519b12243508f03007dfb8563b5e038a52e17 (diff) | |
| download | uClibc-alpine-e07907e020b9e86e1ae125285ddb2090b3581f99.tar.bz2 uClibc-alpine-e07907e020b9e86e1ae125285ddb2090b3581f99.tar.xz | |
libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite build
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
| -rw-r--r-- | libm/ldouble_wrappers.c | 2 | ||||
| -rw-r--r-- | test/Rules.mak | 4 | ||||
| -rw-r--r-- | test/math/basic-test.c | 2 | ||||
| -rw-r--r-- | test/unistd/errno.c | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c index 69db91ebf..1af6b1b9f 100644 --- a/libm/ldouble_wrappers.c +++ b/libm/ldouble_wrappers.c @@ -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 diff --git a/test/Rules.mak b/test/Rules.mak index 105140edc..80cbccad9 100644 --- a/test/Rules.mak +++ b/test/Rules.mak @@ -85,7 +85,9 @@ CFLAGS := $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) CC_IPREFIX:=$(shell $(CC) --print-file-name=include) CFLAGS += -I$(dir $(CC_IPREFIX))/include-fixed -I$(CC_IPREFIX) -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) diff --git a/test/math/basic-test.c b/test/math/basic-test.c index e42c01457..04ec6ea31 100644 --- a/test/math/basic-test.c +++ b/test/math/basic-test.c @@ -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> diff --git a/test/unistd/errno.c b/test/unistd/errno.c index 5fdb3b347..5d4fc726a 100644 --- a/test/unistd/errno.c +++ b/test/unistd/errno.c @@ -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", |
