------- Comment #14 from dominiq at lps dot ens dot fr 2009-11-16 16:25 ------- I don't know if this answer the question in comment 12. I have done the following experiment:
[ibook-dhum] f90/bug% rm -rf a.out* [ibook-dhum] f90/bug% rm complex-sign-add_red_1.* remove complex-sign-add_red_1.c? n remove complex-sign-add_red_1.o? y remove complex-sign-add_red_1.s? y [ibook-dhum] f90/bug% gcc45 complex-sign-add_red_1.c -O1 -g -S [ibook-dhum] f90/bug% as complex-sign-add_red_1.s -o complex-sign-add_red_1.o [ibook-dhum] f90/bug% gcc complex-sign-add_red_1.o [ibook-dhum] f90/bug% a.out [ibook-dhum] f90/bug% dsymutil a.out Assertion failed: (orig_str), function FixReferences, file /SourceCache/dwarf_utilities/dwarf_utilities-70/source/DWARFdSYM.cpp, line 3641. Abort [ibook-dhum] f90/bug% rm -rf a.out* [ibook-dhum] f90/bug% rm complex-sign-add_red_1.* remove complex-sign-add_red_1.c? n remove complex-sign-add_red_1.o? y remove complex-sign-add_red_1.s? y [ibook-dhum] f90/bug% gcc45 complex-sign-add_red_1.c -O0 -g -S [ibook-dhum] f90/bug% as complex-sign-add_red_1.s -o complex-sign-add_red_1.o [ibook-dhum] f90/bug% gcc complex-sign-add_red_1.o [ibook-dhum] f90/bug% a.out [ibook-dhum] f90/bug% dsymutil a.out [ibook-dhum] f90/bug% gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493) [ibook-dhum] f90/bug% as -v Apple Inc version cctools-698.1~1, GNU assembler version 1.38 ^CInterrupted by signal 2 [ibook-dhum] f90/bug% gcc45 -v Using built-in specs. COLLECT_GCC=gcc45 COLLECT_LTO_WRAPPER=/Volumes/MacBook/opt/gcc/gcc4.5w/bin/../libexec/gcc/i686-apple-darwin9/4.5.0/lto-wrapper Target: i686-apple-darwin9 Configured with: ../gcc-4.5-work/configure --prefix=/opt/gcc/gcc4.5w --mandir=/opt/gcc/gcc4.5w/share/man --infodir=/opt/gcc/gcc4.5w/share/info --build=i686-apple-darwin9 --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/usr --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --with-cloog=/sw --with-ppl=/sw --with-mpc=/opt/mpc/build Thread model: posix gcc version 4.5.0 20091110 (experimental) [trunk revision 154075p3] (GCC) So the problem seems contained in the assembly code. I had a look at the difference between the assembly generated with -O0 and -O1, but did not see anything obvious (I'll attach the files later). BTW is the test in comment 11 giving the same result on darwin10? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41473