summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/single-precision-constant.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-21 20:59:11 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-21 20:59:11 +0000
commit517cabaa23db050f16284d3718f49f25cc881940 (patch)
treef6e4ea73d450d97d8eff8a07a819a047dcbb917b /gcc/testsuite/gcc.dg/single-precision-constant.c
parent8168e38d7deee31d7725e96db8729a20f9f00c3a (diff)
downloadgcc-517cabaa23db050f16284d3718f49f25cc881940.tar.gz
2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
* config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to tm_file on Solaris 10 and later. (sparc64-*-solaris2*): Likewise. (sparc-*-solaris2*): Likewise. * config/sol26.h: Rename to config/sol2-6.h. * config/sol2-10.h: New file. testsuite/ * gcc.dg/builtins-config.h (Solaris case): Define HAVE_C99_RUNTIME if _STDC_C99 is defined. * gcc.dg/builtins-18.c: Pass -std=c99 on Solaris. * gcc.dg/builtins-20.c: Likewise. * gcc.dg/builtins-53.c: Likewise. * gcc.dg/single-precision-constant.c: Likewise. Also pass -mmacosx-version-min=10.3 on PowerPC/Darwin. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112255 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/single-precision-constant.c')
-rw-r--r--gcc/testsuite/gcc.dg/single-precision-constant.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/single-precision-constant.c b/gcc/testsuite/gcc.dg/single-precision-constant.c
index e95eb39618e..3cf9f8ffe87 100644
--- a/gcc/testsuite/gcc.dg/single-precision-constant.c
+++ b/gcc/testsuite/gcc.dg/single-precision-constant.c
@@ -1,8 +1,12 @@
/* Test that double precision constants are correctly handled
when code is compiled with -fsingle-precision-constant */
/* Origin: Carlos O'Donell <carlos@codesourcery.com> */
+
/* { dg-do run } */
/* { dg-options "-fsingle-precision-constant" } */
+/* { dg-options "-fsingle-precision-constant -mmacosx-version-min=10.3" { target powerpc-*-darwin* } } */
+/* { dg-options "-fsingle-precision-constant -std=c99" { target *-*-solaris2* } } */
+
#include <math.h>
#include <float.h>