diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-08 00:48:26 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-08 00:48:26 +0000 |
commit | ccf17e6ce0078c9d6af183c704437cf1656fa64f (patch) | |
tree | 1045c286ccc07d0c7a89f1a87120425597f3fab9 /gcc | |
parent | 0948c42df3daf943790c539ad804053505e87469 (diff) | |
download | gcc-ccf17e6ce0078c9d6af183c704437cf1656fa64f.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117548 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 e8edeb3d785..e9b3ec9bf6f 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 6921b80b3a7..5aff80153b5 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 d9fa77b8538..26986eddaee 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 5c4c4a67403..2795612d911 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 4efabd559ba..ab35e3a6e96 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 bbee0674a32..58eabfea18c 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" |