]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] Further fixes to warn-abs-1.c
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 08:53:49 +0000 (08:53 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Oct 2018 08:53:49 +0000 (08:53 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265035 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/warn-abs-1.c

index 90cb091207a40a8fd84f27be4f65c77cdea7522f..a0a5dbb55f256f64abf0b45ba3ae811b578a1175 100644 (file)
@@ -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.
index 1c487270042681998abf5c1c4e49aee7126a9f93..c016ff620c4cee4259f7174988862a6e1163191d 100644 (file)
@@ -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);
 }