This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C preprocessor, mips assembler and #ident (root cause of PRs 2620 and 5789)
> Two possible fixes are:
>
> - adding an option to cpp0 to drop #ident directives and
> using this for .S files on irix
>
> - working around the problem when compiling .S files by:
> - passing the -Wp,-P to cpp so that line numbers are dropped -
> removing -nocpp from the assembler flags so that the irix
> cpp is run on the .s file.
> The irix cpp will strip out #ident directives, but chokes on gcc cpp
> #line directives
>
The second set of options is the easiest. Adding the additional on the
command line to the Irix assembler is quite easy.
-eric
> Are either of these viable for 3.1
I guess this is up to Mark.
-eric
--
I will not use abbrev.