This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, dfp-testsuite]: Fix PR testsuite/33082


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]