Oleg Endo <oleg.e...@t-online.de> wrote: > -mieee should be the default on sh* and thus can be removed from the > dg-options line, or is it not? If -mieee is still needed (for alpha) maybe > it's better to use dg-additional-options instead?
Sure. The attached is a revised one. Regards, kaz -- * gcc.c-torture/execute/pr39228.c: Use dg-additional-options instead of dg-options and remove sh*-*-* from its target list. Add "inline" keyword to test functions. --- 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 14:16:23.313631715 +0900 @@ -1,23 +1,23 @@ -/* { dg-options "-mieee" { target sh*-*-* alpha*-*-* } } */ +/* { dg-additional-options "-mieee" { target alpha*-*-* } } */ /* { dg-skip-if "No Inf/NaN support" { spu-*-* } "*" "" } */ extern void abort (void); -static int __attribute__((always_inline)) testf (float b) +static inline int __attribute__((always_inline)) testf (float b) { float c = 1.01f * b; return __builtin_isinff (c); } -static int __attribute__((always_inline)) test (double b) +static inline int __attribute__((always_inline)) test (double b) { double c = 1.01 * b; return __builtin_isinf (c); } -static int __attribute__((always_inline)) testl (long double b) +static inline int __attribute__((always_inline)) testl (long double b) { long double c = 1.01L * b;