gas crashes on IRIX 5.2
Alexandre Oliva
oliva@lsd.ic.unicamp.br
Fri Dec 3 10:17:00 GMT 1999
On Dec 3, 1999, hjl@lucon.org (H.J. Lu) wrote:
>> FYI, there may be something wrong on AIX4.1.5.0/rs6000's assembler of
>> release 2.9.5.0.21, that isn't wrong in binutils CVS.
> I didn't touch anything in PPC. Please try 2.9.5.0.22. The bug
> may be fixed from the CVS update.
Nope, I spoke too soon. The bug has just come up with CVS binutils
too :-(
> If you can send me the asm code and tell me how to configure the
> cross assembler, I will fix it.
Thanks, but it won't build as a cross toolchain :-(
The exact error message is:
test x"yes" != xyes || /tmp/install-gnu-gcc-2.95.2-libg++-2.8.1.3-libgcj-2.95.1-visconde-11094/libg++-2.8.1.3/gcc/xgcc -B/tmp/install-gnu-gcc-2.95.2-libg++-2.8.1.3-libgcj-2.95.1-visconde-11094/libg++-2.8.1.3/gcc/ -B/n/gnu/gcc-2.95.2-libg++-2.8.1.3-libgcj-2.95.1/powerpc-ibm-aix4.1.5.0/bin/ -c -g -O2 -fno-implicit-templates -I. -I. -nostdinc++ streambuf.cc -o pic/streambuf.o
/tmp/ccJPpGNZ.s: Assembler messages:
/tmp/ccJPpGNZ.s:1971: Error: Line numbers must be positive integers
/tmp/ccJPpGNZ.s:1983: Error: Line numbers must be positive integers
The problem is that gcc 2.95.2, configured --with-gnu-as
--with-gnu-ld, is generating `.line 0' debugging directives.
It's most definitely a bug in gcc, since the code in
gas/config/obj-coff.c says line 0 is used as an end marker. The
following patch causes gas to accept `.line 0', as does the native
assembler:
More information about the Gcc-bugs
mailing list