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] Patch to use c99 mode with two torture tests


The tests gcc.dg/torture/pr45982.c and gcc.dg/torture/pr45623.c use
C99 types (uintptr_t, uint64_t) and so should be compiled in c99
mode.  Without the -std=c99 these tests fail on IA64 HP-UX because
the C99 types are only defined if you specifically request C99
compilation.

Tested on IA64 HP-UX and Linux and x86 linux, OK for checkin?

I will check them in as obvious in a few days if I don't hear
any negative feedback.

Steve Ellcey
sje@cup.hp.com



2010-11-05  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/torture/pr45982.c: Add -std=c99
	* gcc.dg/torture/pr45623.c: Ditto.
	

Index: gcc.dg/torture/pr45982.c
===================================================================
--- gcc.dg/torture/pr45982.c	(revision 166346)
+++ gcc.dg/torture/pr45982.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-options "-std=c99" } */
 
 #include <stdint.h>
 
Index: gcc.dg/torture/pr45623.c
===================================================================
--- gcc.dg/torture/pr45623.c	(revision 166346)
+++ gcc.dg/torture/pr45623.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-options "-std=c99" } */
 
 #include <stdint.h>
 


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