* 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
+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,
#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. */
/* { 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"
/* { 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"
/* { 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"
/* { 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"