Bug#209152: gcc-3.3: Large array problem on 64 bit platforms
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
Reply to: