aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@gcc.gnu.org>2014-09-03 12:27:52 +0000
committerKaz Kojima <kkojima@gcc.gnu.org>2014-09-03 12:27:52 +0000
commita0d3407e32c20a47e43b861908df1bba6260f357 (patch)
tree875fbc1332af1b8a88e455996ce22c5175879444 /gcc
parent8d95fe25c52092393ae58669bc956fab9802e390 (diff)
downloadgcc-a0d3407e32c20a47e43b861908df1bba6260f357.zip
gcc-a0d3407e32c20a47e43b861908df1bba6260f357.tar.gz
gcc-a0d3407e32c20a47e43b861908df1bba6260f357.tar.bz2
pr39228.c: Use dg-add-options instead of dg-options.
* gcc.c-torture/execute/pr39228.c: Use dg-add-options instead of dg-options. Add "inline" keyword to test functions. From-SVN: r214872
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/pr39228.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5d1cf61..9886c99 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-03 Kaz Kojima <kkojima@gcc.gnu.org>
+
+ * 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 <polacek@redhat.com>
PR c/62024
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr39228.c b/gcc/testsuite/gcc.c-torture/execute/pr39228.c
index dcd8d53..2bc6006 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;