builtins-config.h: Ensure we use -std=c99 on solaris2.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 8 Oct 2006 00:48:26 +0000 (00:48 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 8 Oct 2006 00:48:26 +0000 (00:48 +0000)
* gcc.dg/builtins-config.h: Ensure we use -std=c99 on solaris2.
* gcc.dg/torture/builtin-convert-1.c,
gcc.dg/torture/builtin-convert-2.c,
gcc.dg/torture/builtin-convert-3.c,
gcc.dg/torture/builtin-power-1.c: Use -std=c99 on solaris2.

From-SVN: r117548

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-config.h
gcc/testsuite/gcc.dg/torture/builtin-convert-1.c
gcc/testsuite/gcc.dg/torture/builtin-convert-2.c
gcc/testsuite/gcc.dg/torture/builtin-convert-3.c
gcc/testsuite/gcc.dg/torture/builtin-power-1.c

index e8edeb3d785e8ed71b808502b5e33ff25e501cff..e9b3ec9bf6f17ec8ac83e3932cdfc52138403d4b 100644 (file)
@@ -1,3 +1,11 @@
+2006-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gcc.dg/builtins-config.h: Ensure we use -std=c99 on solaris2.
+       * gcc.dg/torture/builtin-convert-1.c,
+       gcc.dg/torture/builtin-convert-2.c,
+       gcc.dg/torture/builtin-convert-3.c,
+       gcc.dg/torture/builtin-power-1.c: Use -std=c99 on solaris2.
+
 2006-10-07  Kazu Hirata  <kazu@codesourcery.com>
 
        * gcc.dg/tree-ssa/bool-1.c, gcc.dg/tree-ssa/bool-2.c,
index 6921b80b3a77ec17bafbd97b83f68776a31b32dd..5aff80153b57a66b452801b1f6a60644a853350e 100644 (file)
 
 #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.  */
index d9fa77b853896dbbfdfa7e8680cc4fc0451277ac..26986eddaeefcbb38c31bc271e24595ab6c84896 100644 (file)
@@ -8,6 +8,7 @@
 /* { dg-do link } */
 /* { dg-options "-ffast-math" } */
 /* { dg-options "-ffast-math -mmacosx-version-min=10.3" { target powerpc-*-darwin* } } */
+/* { dg-options "-ffast-math -std=c99" { target *-*-solaris2* } } */
 
 #include "../builtins-config.h"
 
index 5c4c4a6740350ab529c7825ab83fd8a5114b4a28..2795612d9111ea4f49239a9d87971b58f4df0eea 100644 (file)
@@ -8,6 +8,7 @@
 /* { dg-do link } */
 /* { dg-options "-ffast-math" } */
 /* { dg-options "-ffast-math -mmacosx-version-min=10.3" { target powerpc-*-darwin* } } */
+/* { dg-options "-ffast-math -std=c99" { target *-*-solaris2* } } */
 
 #include "../builtins-config.h"
 
index 4efabd559ba5facf5f8b611bddd9532efabd9149..ab35e3a6e9605fa74929423f7f1908aba1c1e1e6 100644 (file)
@@ -8,6 +8,7 @@
 /* { dg-do link } */
 /* { dg-options "-ffast-math" } */
 /* { dg-options "-ffast-math -mmacosx-version-min=10.3" { target powerpc-*-darwin* } } */
+/* { dg-options "-ffast-math -std=c99" { target *-*-solaris2* } } */
 
 #include "../builtins-config.h"
 
index bbee0674a32e3ce7007f6f552a632c504577911e..58eabfea18ced53514162abe8b3f6967be6a4cdd 100644 (file)
@@ -8,6 +8,7 @@
 /* { dg-do link } */
 /* { dg-options "-ffast-math" } */
 /* { dg-options "-ffast-math -mmacosx-version-min=10.3" { target powerpc-*-darwin* } } */
+/* { dg-options "-ffast-math -std=c99" { target *-*-solaris2* } } */
 
 #include "../builtins-config.h"