From 226a357a5a2997141def33fca36aa2dd199bde7b Mon Sep 17 00:00:00 2001 From: kkojima Date: Wed, 3 Sep 2014 12:27:52 +0000 Subject: [PATCH] * gcc.c-torture/execute/pr39228.c: Use dg-add-options instead of dg-options. Add "inline" keyword to test functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214872 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.c-torture/execute/pr39228.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5d1cf61248a..9886c99968b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-09-03 Kaz Kojima + + * gcc.c-torture/execute/pr39228.c: Use dg-add-options instead + of dg-options. Add "inline" keyword to test functions. + 2014-09-03 Marek Polacek PR c/62024 diff --git a/gcc/testsuite/gcc.c-torture/execute/pr39228.c b/gcc/testsuite/gcc.c-torture/execute/pr39228.c index dcd8d53f7b5..2bc6006476e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr39228.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr39228.c @@ -1,23 +1,23 @@ -/* { dg-options "-mieee" { target sh*-*-* alpha*-*-* } } */ +/* { dg-add-options ieee } */ /* { 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; -- 2.11.4.GIT