Patchwork [testsuite] Require C99 runtime in gcc.dg/builtins-67.c, gcc.target/i386/conversion.c

login
register
mail settings
Submitter Rainer Orth
Date Aug. 19, 2011, 1:12 p.m.
Message ID <ydd4o1dzgsb.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/110594/
State New
Headers show

Comments

Rainer Orth - Aug. 19, 2011, 1:12 p.m.
Uros' two new testcases were failing on Solaris (both SPARC and x86)
like this:

FAIL: gcc.dg/builtins-67.c (test for excess errors)

Excess errors:
In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/builtins-67.c:6:0:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/builtins-config.h:48:2: error: #error forgot to set -std=c99.

Both tests need C99 flags.  Fixed as follows, tested with the
appropriate runtest invocations on i386-pc-solaris2.8 and
x86_64-unknown-linux-gnu, installed on mainline.

	Rainer


2011-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/builtins-67.c: Use dg-add-options c99_runtime.
	* gcc.target/i386/conversion.c: Likewise.

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@ 
+2011-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+	* gcc.dg/builtins-67.c: Use dg-add-options c99_runtime.
+	* gcc.target/i386/conversion.c: Likewise.
+
 2011-08-19  Richard Guenther  <rguenther@suse.de>
 
 	* gcc.dg/torture/pr50067-1.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/builtins-67.c b/gcc/testsuite/gcc.dg/builtins-67.c
--- a/gcc/testsuite/gcc.dg/builtins-67.c
+++ b/gcc/testsuite/gcc.dg/builtins-67.c
@@ -2,6 +2,7 @@ 
 
 /* { dg-do link } */
 /* { dg-options "-ffast-math -lm" }  */
+/* { dg-add-options c99_runtime } */
 
 #include "builtins-config.h"
 
diff --git a/gcc/testsuite/gcc.target/i386/conversion.c b/gcc/testsuite/gcc.target/i386/conversion.c
--- a/gcc/testsuite/gcc.target/i386/conversion.c
+++ b/gcc/testsuite/gcc.target/i386/conversion.c
@@ -2,6 +2,7 @@ 
 
 /* { dg-do link } */
 /* { dg-options "-ffast-math" }  */
+/* { dg-add-options c99_runtime } */
 
 #include "../../gcc.dg/builtins-config.h"