Bug#209152: gcc-3.3: Large array problem on 64 bit platforms
The referenced fix was checked in on the hammer branch by Jan Hubicka, which was
merged to the mainline branch (at least I don't see the bug in the
gcc-snapshot package (20030815)). It is not a regression (seeing the
bug with 2.96, 3.0 and 3.2), so I doubt it will be fixed on the stable
3.3 branch (which Debian uses).
Ian Wienand writes:
> Package: gcc-3.3
> Version: 1:3.3.2-0pre1
> Severity: normal
>
> Try this simple test program on IA64
>
> --- test.c ---
> #define SZ (1L<<32)
>
> char x[SZ];
> char y[SZ-1];
> --- end ---
>
> you will see that gcc wraps the array size around
>
> --- test.s ---
> .file "test.c"
> .pred.safe_across_calls p1-p5,p16-p63
> ----> .common x#,0,8
> .common y#,4294967295,8
> .ident "GCC: (GNU) 3.3.2 20030812 (Debian prerelease)"
> --- end ---
>
> This appears to be fixed in gcc CVS thanks to the checkin
> you can see from this :
>
> http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/varasm.c?rev=1.318.2.7&content-type=text/x-cvsweb-markup
>
> I am in the dark as to how the branching system works with gcc
> and what Debian is using; this bug report is requesting the changes
> to properly output HOST_WIDE_INT from that CVS log be integrated, but
> if someone could explain how it works that would be great too.
>
> -i
> ianw@gelato.unsw.edu.au
> http://www.gelato.unsw.edu.au
>
> -- System Information:
> Debian Release: testing/unstable
> Architecture: ia64
> Kernel: Linux tartufi 2.6.0-test4 #2 SMP Wed Aug 27 13:09:22 EST 2003 ia64
> Locale: LANG=C, LC_CTYPE=C
>
> Versions of packages gcc-3.3 depends on:
> ii binutils 2.14.90.0.5-0.2 The GNU assembler, linker and bina
> ii cpp-3.3 1:3.3.2-0pre1 The GNU C preprocessor
> ii gcc-3.3-base 1:3.3.2-0pre1 The GNU Compiler Collection (base
> ii libc6.1 2.3.2-3 GNU C Library: Shared libraries an
> ii libgcc1 1:3.3.2-0pre1 GCC support library
>
> -- no debconf information
>
>
>
> --
> To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: