GCC 2.95.3 generates syntax-error in arm-elf-as

AKubbat AKubbat@necelam.com
Tue Jun 29 19:05:00 GMT 2004


Hello,

I'd like to know if someone has encountered or fixed the following problem :
I'm building a GCC cross-compiler and during the process I see the
following error message :

-I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include \
  -c ../../gcc-2.95.3/gcc/cp/tinfo.cc
/tmp/ccEugNg3.s: Assembler messages:
/tmp/ccEugNg3.s:889: Error: junk at end of line, first unrecognized
character is `,'


This line causes the trouble :
	.section .gnu.linkonce.t.__tf9type_info,"ax",@progbits
	
`@` is the comment symbol for ARM assembler. So the line expands to 
 "[...], <nothing>".  Thus the error message about the `,`


Google found the following :
> And http://sources.redhat.com/ml/binutils/1999-10/msg00067.html
> > Re: Override arm-elf-as comment char
> >
> >    It also accepts `%' for precisely this reason.  There is matching gunk 
> >    in GCC to generate the right syntax.
> > 


Apparently I've stumbled into exactly this problem that GCC uses @ instead
of % when generating code for ARM-ELF. 
Does anyone know a proper patch to fix this issue ?



Best regards


Andreas 



More information about the Gcc-help mailing list