bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preprocessor/7947: cpp0 -std=gnu99 rejects # comments


From: Marcus Brinkmann
Subject: Re: preprocessor/7947: cpp0 -std=gnu99 rejects # comments
Date: Tue, 17 Sep 2002 20:46:42 +0200
User-agent: Mutt/1.4i

I have no idea if just replying to this works, with all those CC's, but I
hope for the best.

On Tue, Sep 17, 2002 at 06:22:20PM -0000, neil@gcc.gnu.org wrote:
> Synopsis: cpp0 -std=gnu99 rejects # comments
> 
> State-Changed-From-To: open->closed
> State-Changed-By: neil
> State-Changed-When: Tue Sep 17 11:22:20 2002
> State-Changed-Why:
>     Not a bug: -std=gnu99 overrides -lang-asm as it comes later;
>     it contains an implicit -lang-c.
>     
>     You might get away with reversing the order (if you can actually achieve 
> that - you may not be able to), but we won't
>     guarantee that this will always work.
>     
>     After all, there are no "standards" with assembler.

That is my fault for not being precise enough in my bug report, sorry.

The problem is that gcc calls the preprocessor with this ordering when
compiling an assembler file (foo.S) with the -std=gnu99 option.

Try "echo \# foo > foo.S" and "gcc -std=gnu99 -o foo foo.S", this triggers
the bug.  -v shows that gcc passes -std=gnu99 to cpp when preprocessing the
file.

Thanks,
Marcus


-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]