preprocessor behavoir change with -ansi in assembly????

Sean McNeil sean@mcneil.com
Fri Nov 22 13:21:00 GMT 2002


OK, I agree.  Yet you can pass all kinds of other flags into gcc that
are not related to the assembler (-finline for example) and they do not
affect the way assembly files are parsed.  This, in my opinion, is a
bug.

The preprocessor behavior should not change when -ansi is used on an
assembly file.  I can no longer use the same flags to compile all my
code since I would have to remove -ansi on commands that process
assembly files.

Sean

On Fri, 2002-11-22 at 13:09, Neil Booth wrote:
> 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