http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46655
Summary: AIX6.1 native assembler requires '.line' numbers greater than zero Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: michael.haubenwall...@salomon.at Bootstrapping gcc-4.5.1 on AIX6.1 with recent native assembler fails with: /build/gcc/./gcc/xgcc -B/build/gcc/./gcc/ -B/install/powerpc-ibm-aix6.1.0.0/bin/ -B/install/powerpc-ibm-aix6.1.0.0/lib/ -isystem /install/powerpc-ibm-aix6.1.0.0/include -isystem /install/powerpc-ibm-aix6.1.0.0/sys-include -g -O2 -pthread -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -mlong-double-128 -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I/source/gcc-4.5.1/libgcc -I/source/gcc-4.5.1/libgcc/. -I/source/gcc-4.5.1/libgcc/../gcc -I/source/gcc-4.5.1/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _mul_sf.o -MT _mul_sf.o -MD -MP -MF _mul_sf.dep -DFINE_GRAINED_LIBRARIES -DL_mul_sf -c ../../.././gcc/fp-bit.c Assembler: /tmp//ccI8aKR8.s: line 160: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. gmake[5]: *** [_mul_sf.o] Error 1 gmake[5]: Leaving directory `/build/gcc/powerpc-ibm-aix6.1.0.0/pthread/libgcc' gmake[4]: *** [multi-do] Error 1 gmake[4]: Leaving directory `/build/gcc/powerpc-ibm-aix6.1.0.0/libgcc' gmake[3]: *** [all-multi] Error 2 gmake[3]: Leaving directory `/build/gcc/powerpc-ibm-aix6.1.0.0/libgcc' gmake[2]: *** [all-stage1-target-libgcc] Error 2 gmake[2]: Leaving directory `/build/gcc' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/build/gcc' gmake: *** [bootstrap] Error 2 Running that xgcc command with "-save-temps -v" tells: /build/gcc/./gcc/as -u -mppc -o _mul_sf.o fp-bit.s Assembler: fp-bit.s: line 160: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. The line 160 in fp-bit.s is: 160 .line 0 Although this was accepted before installing AIX patch SP6100-04-07-1036, it is questionable what a line-number zero is for. Also I've found this old message: http://gcc.gnu.org/ml/gcc-bugs/1999-12/msg00088.html