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]

Fix gcc.target/i386/large-size-array-3.c failure


Hello!

This test case has wrong dg-do directive and compile flags. The testcase is valid on all lp64 x86 targets, as -mcmodel is valid everywhere for these targets. Patch was tested by running the testcase and committed as obvious.

BTW: I can't find the discussion or an approval for the patch that introduced this test case. If it was committed as obvious, then IMO it must be at least tested on all targets and double-checked for correctness.

2007-06-22 Uros Bizjak <ubizjak@gmail.com>

       * gcc.target/i386/large-size-array-3.c: Fix dg-do compile directive.
       Remove -m64 from dg-options.

Uros.

Index: gcc.target/i386/large-size-array-3.c
===================================================================
--- gcc.target/i386/large-size-array-3.c (revision 125955)
+++ gcc.target/i386/large-size-array-3.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } || { i?86-*-* x86_64-*-darwin* } } } } */
-/* { dg-options "-m64 -mcmodel=medium" } */
+/* { dg-do compile { target { { i?86-*-* x86_64-*-* } && lp64 } } } */
+/* { dg-options "-mcmodel=medium" } */
/* { dg-final { scan-assembler "8589934592|8589934588" } } */
int bigarray[2147483647];



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