This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Tweak gcc.c-torture/execute/pr39228.c


Hello!

> It looks that alpha has the similar issue:
> https://gcc.gnu.org/ml/gcc-testresults/2014-08/msg02660.html
>
> alpha and sh redefine dg-options to "-mieee" in the test case
> instead of the default dg-options "-w" and get the above warning.
> The patch below tweaks the test to fix it.  Perhaps the first
> two lines are enough to avoid the error but avoiding the root cause
> of warnings would be better.  Tested on i686-linux and sh4-linux.

--- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.c
2014-08-26 09:26:20.000000000 +0900
+++ trunk/gcc/testsuite/gcc.c-torture/execute/pr39228.c 2014-09-03
07:42:30.085524983 +0900
@@ -1,23 +1,23 @@
-/* { dg-options "-mieee" { target sh*-*-* alpha*-*-* } } */
+/* { dg-options "-w -mieee" { target sh*-*-* alpha*-*-* } } */
 /* { dg-skip-if "No Inf/NaN support" { spu-*-* } "*" "" } */

Please use /* { dg-add-options ieee } */ directive here. There is
another one possible in pr44683.c.

Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]