diff mbox

[testsuite] Patch to use c99 mode with two torture tests

Message ID 201011051738.oA5HclL14379@lucas.cup.hp.com
State New
Headers show

Commit Message

Steve Ellcey Nov. 5, 2010, 5:38 p.m. UTC
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.
diff mbox

Patch

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>