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????
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Sean McNeil <sean at mcneil dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 22 Nov 2002 21:09:03 +0000
- Subject: Re: preprocessor behavoir change with -ansi in assembly????
- References: <1037990359.25708.3.camel@achille>
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.