Require c99_runtime for builtin-convert-1.c
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 29 Oct 2015 18:32:19 +0000 (18:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 29 Oct 2015 18:32:19 +0000 (18:32 +0000)
...which was failing on *-elf.  This test is making sure that we narrow
maths calls, e.g. sinh -> sinhf, but we can only do that if we know that
the target has a full c99 libm or if we have other proof that the function
we want to generate is available.

Tested on aarch64-none-elf (where it's skipped) and aarch64-linux-gnu
(where it isn't).

gcc/testsuite/
* gcc.dg/torture/builtin-convert-1.c: Require c99_runtime.

From-SVN: r229548

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/builtin-convert-1.c

index eea5a20f3351cb0c38ddfb4f607cae85f0ae76bc..71f3148c1b0e951a5a68392fffd750c881cee5ae 100644 (file)
@@ -1,3 +1,7 @@
+2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
+
+       * gcc.dg/torture/builtin-convert-1.c: Require c99_runtime.
+
 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/float128-call.c: New test for -mfloat128 on
index f13d29e6779d1fbf787865e056efcbda2d719f68..eecd2b3d275e0a035edac11d60c0db9b4e007cff 100644 (file)
@@ -8,6 +8,7 @@
 /* { dg-do link } */
 /* { dg-options "-ffast-math" } */
 /* { dg-add-options c99_runtime } */
+/* { dg-require-effective-target c99_runtime } */
 
 #include "../builtins-config.h"