aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-18.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-12-24 06:52:27 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-12-24 06:52:27 +0000
commit8f23fc818533a2bbcdec0c35be4312e638abede6 (patch)
tree2fde402ac6da4c71034ba8c7b11ee7c368e6d234 /gcc/testsuite/gcc.dg/builtins-18.c
parentac5fe3fe5198c0529fd777c92eb5aa1f9329ee93 (diff)
downloadgcc-8f23fc818533a2bbcdec0c35be4312e638abede6.zip
gcc-8f23fc818533a2bbcdec0c35be4312e638abede6.tar.gz
gcc-8f23fc818533a2bbcdec0c35be4312e638abede6.tar.bz2
calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes.
* calls.c (expand_call): Recognize calls to "sqrt" and create corresponding notes. * g++.dg/bprob/bprob.exp: Load target-supports.exp * g77.dg/bprob/bprob.exp: Likewise. * gcc.misc-tests/bprob.exp: Likewise. * gcc.dg/builtins-18.c: Use builtins-config.h. Do not test float variants on systems where the library does not provide that functionality. * gcc.dg/builtins-20.c: Use builtins-config.h. * gcc.dg/builtins-config.h: New file. From-SVN: r75003
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-18.c')
-rw-r--r--gcc/testsuite/gcc.dg/builtins-18.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-18.c b/gcc/testsuite/gcc.dg/builtins-18.c
index 07b9418..a47de8b 100644
--- a/gcc/testsuite/gcc.dg/builtins-18.c
+++ b/gcc/testsuite/gcc.dg/builtins-18.c
@@ -8,11 +8,7 @@
/* { dg-do link } */
/* { dg-options "-O2 -ffast-math" } */
-
-/* Solaris doesn't have the entire C99 runtime. */
-#if !defined(sun)
-#define HAVE_C99_RUNTIME
-#endif
+#include "builtins-config.h"
extern void link_error(void);
@@ -29,6 +25,7 @@ main (void)
double _Complex dc = 3.0 + 4.0i;
long double _Complex ldc = 3.0L + 4.0iL;
+#ifdef HAVE_C99_RUNTIME
/* Test floats. */
if (cabsf (fc) != 5.0F)
link_error ();
@@ -38,6 +35,7 @@ main (void)
link_failure ();
if (__builtin_cabsf (3.0F + 4.0iF) != 5.0F)
link_failure ();
+#endif
/* Test doubles. */
if (cabs (dc) != 5.0)