From c693c24ad184594fab766d2b9f76f8c58dac93d3 Mon Sep 17 00:00:00 2001 From: ktkachov 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264392 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 d1bc09f618b5..cce1ac8281a9 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 6aa937c3a2e9..129a3af8ac69 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.47.2