diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2006-10-08 00:48:26 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2006-10-08 00:48:26 +0000 |
commit | bcec65390e8dc99914ec6d8f763c3aaffb6d80b7 (patch) | |
tree | 1045c286ccc07d0c7a89f1a87120425597f3fab9 | |
parent | 8c8e53d00a5a340582ea04c674c1313d25d9342c (diff) | |
download | gcc-bcec65390e8dc99914ec6d8f763c3aaffb6d80b7.zip gcc-bcec65390e8dc99914ec6d8f763c3aaffb6d80b7.tar.gz gcc-bcec65390e8dc99914ec6d8f763c3aaffb6d80b7.tar.bz2 |
builtins-config.h: Ensure we use -std=c99 on solaris2.
* 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
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-config.h | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/builtin-convert-1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/builtin-convert-2.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/builtin-convert-3.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/builtin-power-1.c | 1 |
6 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e8edeb3..e9b3ec9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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, diff --git a/gcc/testsuite/gcc.dg/builtins-config.h b/gcc/testsuite/gcc.dg/builtins-config.h index 6921b80..5aff801 100644 --- a/gcc/testsuite/gcc.dg/builtins-config.h +++ b/gcc/testsuite/gcc.dg/builtins-config.h @@ -11,6 +11,12 @@ #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. */ diff --git a/gcc/testsuite/gcc.dg/torture/builtin-convert-1.c b/gcc/testsuite/gcc.dg/torture/builtin-convert-1.c index d9fa77b..26986ed 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-convert-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-convert-1.c @@ -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" diff --git a/gcc/testsuite/gcc.dg/torture/builtin-convert-2.c b/gcc/testsuite/gcc.dg/torture/builtin-convert-2.c index 5c4c4a6..2795612 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-convert-2.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-convert-2.c @@ -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" diff --git a/gcc/testsuite/gcc.dg/torture/builtin-convert-3.c b/gcc/testsuite/gcc.dg/torture/builtin-convert-3.c index 4efabd5..ab35e3a 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-convert-3.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-convert-3.c @@ -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" diff --git a/gcc/testsuite/gcc.dg/torture/builtin-power-1.c b/gcc/testsuite/gcc.dg/torture/builtin-power-1.c index bbee067..58eabfe 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-power-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-power-1.c @@ -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" |