This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor behavoir change with -ansi in assembly????
In case my statement is unclear... :)
Since there is no such thing as ANSI assembly, specifying -ansi in this
case should be a NOOP. Just like all cases using a flag that isn't
related to the particular language.
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.