aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2006-10-12 02:33:57 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2006-10-12 02:33:57 +0000
commit8c166806c82b6dab5be1db904867f9a0cd315807 (patch)
treee2350cb558e41d50f77bde20e322b74164358c3a
parentd5a92b3e9887bf9b2f103d648f9345ab45ceb389 (diff)
downloadgcc-8c166806c82b6dab5be1db904867f9a0cd315807.zip
gcc-8c166806c82b6dab5be1db904867f9a0cd315807.tar.gz
gcc-8c166806c82b6dab5be1db904867f9a0cd315807.tar.bz2
builtins-config.h: Move Solaris section after inclusion of <sys/types.h>.
* gcc.dg/builtins-config.h: Move Solaris section after inclusion of <sys/types.h>. From-SVN: r117656
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/builtins-config.h18
2 files changed, 14 insertions, 9 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2124585..879d1d0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gcc.dg/builtins-config.h: Move Solaris section after inclusion
+ of <sys/types.h>.
+
2006-10-11 Lee Millward <lee.millward@codesourcery.com>
PR c++/29024
diff --git a/gcc/testsuite/gcc.dg/builtins-config.h b/gcc/testsuite/gcc.dg/builtins-config.h
index 5aff801..e61d02a 100644
--- a/gcc/testsuite/gcc.dg/builtins-config.h
+++ b/gcc/testsuite/gcc.dg/builtins-config.h
@@ -11,15 +11,6 @@
#if defined(__hppa) && defined(__hpux)
/* PA HP-UX doesn't have the entire C99 runtime. */
-#elif defined(__sun) && __STDC_VERSION__ - 0 < 199901L
-/* Solaris up to 9 doesn't have the entire C99 runtime.
- Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L.
- But, if you're including this file, you probably want to test the
- newer behaviour, so: */
-#error forgot to set -std=c99.
-#elif defined(__sun) && ! defined (_STDC_C99)
-/* Solaris up to 9 doesn't have the entire C99 runtime.
- Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L. */
#elif defined(__sgi)
/* Irix6 doesn't have the entire C99 runtime. */
#elif defined(__FreeBSD__) && (__FreeBSD__ < 5)
@@ -49,6 +40,15 @@
lacks the C99 functions. */
#include <sys/types.h>
#if defined(_NEWLIB_VERSION) || defined(__UCLIBC__)
+#elif defined(__sun) && __STDC_VERSION__ - 0 < 199901L
+/* If you're including this file, you probably want to test the newer
+ behaviour, so ensure the right flags were used for each test: */
+#error forgot to set -std=c99.
+#elif defined(__sun) && ! defined (_STDC_C99)
+/* Solaris up to 9 doesn't have the entire C99 runtime.
+ Solaris 10 defines _STDC_C99 if __STDC_VERSION__ is >= 199901L.
+ This macro is defined in <sys/feature_tests.h> which is included by
+ various system headers, in this case <sys/types.h> above. */
#else
#define HAVE_C99_RUNTIME
#endif