This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Tweak gcc.c-torture/execute/pr39228.c
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: ubizjak at gmail dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 03 Sep 2014 15:28:05 +0900 (JST)
- Subject: Re: [RFC] Tweak gcc.c-torture/execute/pr39228.c
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4ZgYRxvv-OGKwk=WmWu=VOMv99a-LOHAViMcVg6tNOJZg at mail dot gmail dot com>
Uros Bizjak <ubizjak@gmail.com> wrote:
> -/* { 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.
Thanks for your suggestion. Here is a take 3 patch.
I'll take a look at pr44683.c.
Regards,
kaz
--
* gcc.c-torture/execute/pr39228.c: Use dg-add-options instead
of dg-options. 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 15:23:15.219917354 +0900
@@ -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;