aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2018-10-11 10:53:49 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2018-10-11 10:53:49 +0200
commite7336b8e23f93d73be60850d11b1830753b13e0f (patch)
tree343d505b8844c379b8210fea53d8703958279ff6
parent46c6269045731c2a13aa2f0d227f90c34d5d3edd (diff)
downloadgcc-e7336b8e23f93d73be60850d11b1830753b13e0f.zip
gcc-e7336b8e23f93d73be60850d11b1830753b13e0f.tar.gz
gcc-e7336b8e23f93d73be60850d11b1830753b13e0f.tar.bz2
[testsuite] Further fixes to warn-abs-1.c
2018-10-11 Martin Jambor <mjambor@suse.cz> 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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/warn-abs-1.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 90cb091..a0a5dbb 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-11 Martin Jambor <mjambor@suse.cz>
+
+ * 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 <jakub@redhat.com>
* 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 1c48727..c016ff6 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);
}