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 testsuite RFA] Tweak a few test cases for SH


Hi,

SH requires ieee compatible options for a few tests added
recently.  The attached patch is tested on i686-pc-linux-gnu.
OK for trunk?

Regards,
	kaz
--
2010-07-05  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gcc.c-torture/execute/pr44683.x: New.
	* gcc.dg/torture/builtin-cproj-1.c: Add dg-add-options ieee.

diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x
--- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x	1970-01-01 09:00:00.000000000 +0900
+++ trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x	2010-06-30 19:09:19.000000000 +0900
@@ -0,0 +1,6 @@
+if { [istarget "sh*-*-*"] } {
+	# SH require -mieee for this test.
+	set additional_flags "-mieee"
+}
+
+return 0
diff -uprN ORIG/trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c
--- ORIG/trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c	2010-04-22 09:51:10.000000000 +0900
+++ trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c	2010-06-30 08:09:20.000000000 +0900
@@ -6,6 +6,7 @@
    Origin: Kaveh R. Ghazi,  April 9, 2010.  */
 
 /* { dg-do link } */
+/* { dg-add-options ieee } */
 
 /* All references to link_error should go away at compile-time.  The
    argument is the __LINE__ number.  It appears in the tree dump file


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