reorder bug in 3.0

Andreas Schwab schwab@suse.de
Mon Oct 8 10:34:00 GMT 2001


Andrew Macleod <amacleod@cygnus.com> writes:

|>   This patch is required to get various IA64 OS packages to compile with 3.0.x
|> The problem is fixed in mainline 3.1, but it depends on all the dwarf2.1
|> work that rth did during the summer. 
|> 
|> When reorder blocks moves things around, the dwarf debug
|> generation loses track of what moved block belongs where. It handles 
|> this by calling abort and an internal compiler error ensues.  It causes 
|> something like 40 different packages to fail compilation 
|> when -O and -g are used together.
|> 
|> I took rth's patch from July 29, and kept just the bare minimum required
|> to fix the problem. I have bootstrapped a 3.0 branch with this patch 
|> on an ia64 machine. 

Unfortunately, this is not enough.  The attached source still fails to
compile on ia64-linux when applying the patch to the current snapshot as
of 20011007.

$ gcc -O2 -g -c -v ld-collate.i 
Reading specs from /usr/lib/gcc-lib/ia64-suse-linux/3.0.2/specs
Configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --enable-shared ia64-suse-linux
Thread model: posix
gcc version 3.0.2 20011007 (prerelease)
 /usr/lib/gcc-lib/ia64-suse-linux/3.0.2/cc1 -fpreprocessed ld-collate.i -quiet -dumpbase ld-collate.i -g -O2 -version -o /tmp/ccU0XsPe.s
GNU CPP version 3.0.2 20011007 (prerelease) (cpplib) (IA-64)
GNU C version 3.0.2 20011007 (prerelease) (ia64-suse-linux)
        compiled by GNU C version 3.0.2 20011007 (prerelease).
programs/ld-collate.c:3758: Internal compiler error in dwarf2out_finish, at dwarf2out.c:11405
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

-- 
Andreas Schwab                                  "And now for something
Andreas.Schwab@suse.de				completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-collate.i.gz
Type: application/x-gzip
Size: 42727 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20011008/34c21573/attachment.bin>


More information about the Gcc-bugs mailing list