Andrew Pinski - Re: [patch] for the lost size of a large array in x86-64 assembly output (original) (raw)
This is the mail archive of the gcc-patches@gcc.gnu.orgmailing 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] |
- From: Andrew Pinski
- To: hm dot chang at apple dot com (Hui-May Chang)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 Feb 2007 13:11:17 -0500 (EST)
- Subject: Re: [patch] for the lost size of a large array in x86-64 assembly output
gcc/testsuite/ChangeLog: * gcc.target/i386/large-size-array-3.c: New.
Index: testsuite/gcc.target/i386/large-size-array-3.c
--- testsuite/gcc.target/i386/large-size-array-3.c (revision 0) +++ testsuite/gcc.target/i386/large-size-array-3.c (revision 0) @@ -0,0 +1,4 @@ +/* { dg-do compile { target i?86-- x86_64-- } } / +/ { dg-options "-m64" } / +/ { dg-final { scan-assembler "8589934592" } } */ +int bigarray[2147483647];
This testcase will not work on the plain target i686-linux-gnu as 64bit compiling is not included by default. The dg-do command should instead be something like: /* { dg-do compile { target { { i?86-- x86_64-- } && lp64 } } } */
-- Pinski
- References:
- [patch] for the lost size of a large array in x86-64 assembly output
* From: Hui-May Chang
- [patch] for the lost size of a large array in x86-64 assembly output
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |