From 6902e3a01d581156a8bbecb0837c1cc02b5ceec0 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Tue, 18 Sep 2018 13:54:36 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/warn-abs-1.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d1bc09f618b..cce1ac8281a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-09-18 Kyrylo Tkachov + + * gcc.dg/warn-abs-1.c: Require float128 target. + Skip if large_long_double newlib target. + 2018-09-18 Nathan Sidwell PR c++/86881 diff --git a/gcc/testsuite/gcc.dg/warn-abs-1.c b/gcc/testsuite/gcc.dg/warn-abs-1.c index 6aa937c3a2e..129a3af8ac6 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 -- 2.30.2