This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed, testsuite] Add -std=c99 to gcc.dg/torture/pr41555.c
- From: <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Oct 2009 08:44:02 -0700
- Subject: [patch, committed, testsuite] Add -std=c99 to gcc.dg/torture/pr41555.c
- Reply-to: sje at cup dot hp dot com
The test gcc.dg/torture/pr41555.c was failing on ia64-hp-hpux11.23 because
the *_MAX and *_MIN macros (like INT8_MAX) were not defined unless the
-std=c99 option was used. This patch adds that option. Approved by
Richard Guenther in the comments to PR41555.
I tested it on IA64 HP-UX and Linux and checked it in.
Steve Ellcey
sje@cup.hp.com
2009-10-15 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/torture/pr41555.c: Add -std=c99 option.
Index: gcc.dg/torture/pr41555.c
===================================================================
--- gcc.dg/torture/pr41555.c (revision 152794)
+++ gcc.dg/torture/pr41555.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do run } */
+/* { dg-options "-std=c99" } */
#include <stdint.h>
#include <limits.h>