From e7336b8e23f93d73be60850d11b1830753b13e0f Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Thu, 11 Oct 2018 10:53:49 +0200 Subject: [PATCH] [testsuite] Further fixes to warn-abs-1.c 2018-10-11 Martin Jambor testsuite/ * gcc.dg/warn-abs-1.c: Guard tests assuming size of long double is greater that the size of double by target large_long double. From-SVN: r265035 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/warn-abs-1.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 90cb091207a..a0a5dbb55f2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-10-11 Martin Jambor + + * gcc.dg/warn-abs-1.c: Guard tests assuming size of long double is + greater that the size of double by target large_long double. + 2018-10-11 Jakub Jelinek * g++.dg/cpp2a/feat-cxx2a.C: New test. diff --git a/gcc/testsuite/gcc.dg/warn-abs-1.c b/gcc/testsuite/gcc.dg/warn-abs-1.c index 1c487270042..c016ff620c4 100644 --- a/gcc/testsuite/gcc.dg/warn-abs-1.c +++ b/gcc/testsuite/gcc.dg/warn-abs-1.c @@ -43,7 +43,7 @@ void tst_float_size (double *pd, long double *pld) { *pd = fabsf (*pd); /* { dg-warning "may cause truncation of value" } */ - *pld = fabs (*pld); /* { dg-warning "may cause truncation of value" } */ + *pld = fabs (*pld); /* { dg-warning "may cause truncation of value" "fabs trunc" { target { large_long_double } } } */ *pld = fabs ((double) *pld); } @@ -57,7 +57,7 @@ void tst_notcomplex (int *pi, long *pl, long double *pld) void tst_cplx_size (complex double *pcd, complex long double *pcld) { *pcd = cabsf (*pcd); /* { dg-warning "may cause truncation of value" } */ - *pcld = cabs (*pcld); /* { dg-warning "may cause truncation of value" } */ + *pcld = cabs (*pcld); /* { dg-warning "may cause truncation of value" "cabs trunc" { target { large_long_double } } } */ *pcld = cabs ((complex double) *pcld); } -- 2.30.2