This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13722] [3.4/3.5 regression] [ia64] ICE in push_secondary_reload
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2004 21:33:01 -0000
- Subject: [Bug target/13722] [3.4/3.5 regression] [ia64] ICE in push_secondary_reload
- References: <20040117230657.13722.schwab@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2004-01-23 21:32 -------
Subject: Re: PR 13722 candidate fix
"Zack Weinberg" <zack@codesourcery.com> writes:
> Re-revised patch.
Seems to miscompile the stage2 compiler.
$ stage2/xgcc -Bstage2/ -B/usr/local/ia64-suse-linux/bin/ -c -g -O2 -gnatpg -gnata -I- -I. -Iada -I../../gcc/ada ../../gcc/ada/ada.ads -o ada/ada.o -v
Reading specs from stage2/specs
Configured with: ../configure --host=ia64-suse-linux --enable-shared --enable-threads --with-system-zlib
Thread model: posix
gcc version 3.5.0 20040123 (experimental)
stage2/gnat1 -I- -I. -Iada -I../../gcc/ada -quiet -dumpbase ada.ads -g -gnatpg -gnata -O2 -gnatO ada/ada.o ../../gcc/ada/ada.ads -o /tmp/ccR0NvnR.s
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
strace shows that gnat1 wants to stat() "" three times, whereas the stage1
compiler searches for "./system.ads", "ada/system.ads",
"../../gcc/ada/system.ads" in that order. Looking at the contents of the
empty strings shows that they actually point to "\0/system.ads",
"\0\0\0/system.ads" and "\0\0\0\0\0\0\0\0\0\0\0\0\0/system.ads", ie. the
characters before "/system.ads" are replaced by '\0'.
Andreas.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13722