------- Comment #11 from mikpe at it dot uu dot se  2010-05-27 21:35 -------
Created an attachment (id=20763)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20763&action=view)
preprocessed source for libiberty/cp-demangle.c

Here's the preprocessed source for libiberty/cp-demangle.c as generated by
gcc-4.6-20100522 on sparc64-unknown-linux.  The same 4.6 snapshot built on x86
as a cross to sparc64-unknown-linux also fails with -m32 -g -fcompare-debug
-O2:

> sparc64-unknown-linux-gcc -m32 -g -fcompare-debug -O2 -c cp-demangle.i
sparc64-unknown-linux-gcc: cp-demangle.i: -fcompare-debug failure

If you compile cp-demangle.i to .o first with -g0 and then with -g and compare
the objdump -d output from those two object files, you'll find a single
instruction difference at or near address 0x5080 in function
cplus_demangle_type ().


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44255

Reply via email to