aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2018-09-18 13:54:36 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2018-09-18 13:54:36 +0000
commit6902e3a01d581156a8bbecb0837c1cc02b5ceec0 (patch)
treeff076c4e79105c341cad7f958f67bd20b33c9df4 /gcc
parent3897f13410436e256d6391e2f0b9e02544b6cd91 (diff)
downloadgcc-6902e3a01d581156a8bbecb0837c1cc02b5ceec0.zip
gcc-6902e3a01d581156a8bbecb0837c1cc02b5ceec0.tar.gz
gcc-6902e3a01d581156a8bbecb0837c1cc02b5ceec0.tar.bz2
Fix gcc.dg/warn-abs-1.c for arm and aarch64-none-elf
This new test has some difficulties on the fabsl function. On arm this is because we don't support the _Float128 type which the test uses. This is handled in the patch by requiring a float128 target selector. On aarch64-none-elf, a Newlib target, it fails because fabsl is not available. long double support is known to be incomplete in newlib, and the fabsl function is not available for targets where long double is larger than a double. Therefore this patch skips the test on such targets. * gcc.dg/warn-abs-1.c: Require float128 target. Skip if large_long_double newlib target. From-SVN: r264392
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/warn-abs-1.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d1bc09f..cce1ac8 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * gcc.dg/warn-abs-1.c: Require float128 target.
+ Skip if large_long_double newlib target.
+
2018-09-18 Nathan Sidwell <nathan@acm.org>
PR c++/86881
diff --git a/gcc/testsuite/gcc.dg/warn-abs-1.c b/gcc/testsuite/gcc.dg/warn-abs-1.c
index 6aa937c..129a3af 100644
--- a/gcc/testsuite/gcc.dg/warn-abs-1.c
+++ b/gcc/testsuite/gcc.dg/warn-abs-1.c
@@ -1,4 +1,5 @@
-/* { dg-do compile } */
+/* { dg-do compile { target float128 } } */
+/* { dg-skip-if "incomplete long double support" { { newlib } && large_long_double } } */
/* { dg-options "-Wabsolute-value" } */
#include <stdlib.h>