OSDN Git Service

oops - omitted from previous checkin
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2004 11:00:49 +0000 (11:00 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 Dec 2004 11:00:49 +0000 (11:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91771 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/builtins-config.h

index d56cc1f..05afc5e 100644 (file)
 /* Newlib has the "f" variants of the math functions, but not the "l"
    variants.  TARGET_C99_FUNCTIONS is only defined if all C99
    functions are present.  Therefore, on systems using newlib, tests
-   of builtins will fail for both the "f" and the "l" variants, and we
-   should therefore not define HAVE_C99_RUNTIME.  Including <limits.h>
-   gives us a way of seeing if _NEWLIB_VERSION is defined.  Include
-   <math.h> would work too, but the GLIBC math inlines cause us to
-   generate inferior code, which causes the test to fail, so it is
-   not safe to include <math.h>.  */
-#include <limits.h>
+   of builtins will fail the "l" variants, and we should therefore not
+   define HAVE_C99_RUNTIME.  Including <sys/types.h> gives us a way of
+   seeing if _NEWLIB_VERSION is defined.  Including <math.h> would work
+   too, but the GLIBC math inlines cause us to generate inferior code,
+   which causes the test to fail, so it is not safe.  Including <limits.h>
+   also fails because the include search paths are ordered such that GCC's
+   version will be found before the newlib version.  */
+#include <sys/types.h>
 #ifdef _NEWLIB_VERSION
 #else
 #define HAVE_C99_RUNTIME