preprocessor behavoir change with -ansi in assembly????
Neil Booth
neil@daikokuya.co.uk
Fri Nov 22 13:11:00 GMT 2002
Sean McNeil wrote:-
> Hi,
>
> I've found that the preprocessor changes it's behavior of processing
> assembly files when I add the -ansi flag. Is this correct? I think
> I've tracked it down to where it appears the CPP_OPTION (pfile, lang) is
> no longer set to CLK_ASM when -ansi is specified.
There is no such thing as ANSI assembly 8-)
-ansi is equivalent to -std=c89; hence it ends up preprocessing C.
Neil.
More information about the Gcc-bugs
mailing list