From: "Uros Bizjak" <ubizjak@gmail.com>
To: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: [PATCH, dfp-testsuite]: Fix PR testsuite/33082
Date: Thu, 16 Aug 2007 07:11:00 -0000 [thread overview]
Message-ID: <5787cf470708160011p502b44i1e550ef8a4bd37f2@mail.gmail.com> (raw)
Hello!
-O is not enough to reliably test folding of various dfp values. It is
possible to fix the failure by moving lines of code around as has been
done a couple of weeks ago.
Attached patch fixes this annoyance by simply adding -O2 to folding tests.
Patch was tested on i686-pc-linux-gnu by running DFP testsuite. OK for mainline?
testsuite/ChangeLog:
2007-08-16 Uros Bizjak <ubizjak@gmail.com>
PR testsuite/33082
* gcc.dg/dfp/convert-dfp-fold.c: Use -O2 instead of -O in dg-options.
* gcc.dg/dfp/convert-bfp-fold.c: Ditto.
* gcc.dg/dfp/convert-int-fold.c: Ditto.
* gcc.dg/dfp/operator-arith-fold.c: Ditto.
Uros.
Index: convert-dfp-fold.c
===================================================================
--- convert-dfp-fold.c (revision 127532)
+++ convert-dfp-fold.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu99 -O" } */
+/* { dg-options "-std=gnu99 -O2" } */
/* N1150 5.2 Conversions among decimal floating types and between
decimal floating types and generic floating types.
Index: convert-int-fold.c
===================================================================
--- convert-int-fold.c (revision 127532)
+++ convert-int-fold.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu99 -O" } */
+/* { dg-options "-std=gnu99 -O2" } */
/* N1150 5.1 Conversion between decimal floating integer.
C99 6.3.1.4(1a) New.
Index: convert-bfp-fold.c
===================================================================
--- convert-bfp-fold.c (revision 127532)
+++ convert-bfp-fold.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu99 -O" } */
+/* { dg-options "-std=gnu99 -O2" } */
/* N1150 5.2 Conversions among decimal floating types and between
decimal floating types and generic floating types.
Index: operator-arith-fold.c
===================================================================
--- operator-arith-fold.c (revision 127532)
+++ operator-arith-fold.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-std=gnu99 -O" } */
+/* { dg-options "-std=gnu99 -O2" } */
/* C99 6.5.5: Multiplicative operators.
C99 6.5.6: Additive operators. */
next reply other threads:[~2007-08-16 7:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-16 7:11 Uros Bizjak [this message]
2007-08-16 16:52 ` Janis Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5787cf470708160011p502b44i1e550ef8a4bd37f2@mail.gmail.com \
--to=ubizjak@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).