public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: preprocessor/7947: cpp0 -std=gnu99 rejects # comments Date: Tue, 17 Sep 2002 11:56:00 -0000 [thread overview] Message-ID: <20020917185601.12165.qmail@sources.redhat.com> (raw) The following reply was made to PR preprocessor/7947; it has been noted by GNATS. From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> To: neil@gcc.gnu.org, bug-hurd@gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: preprocessor/7947: cpp0 -std=gnu99 rejects # comments Date: Tue, 17 Sep 2002 20:46:42 +0200 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/
next reply other threads:[~2002-09-17 18:56 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-17 11:56 Marcus Brinkmann [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-09-17 12:46 Marcus Brinkmann 2002-09-17 12:26 Neil Booth 2002-09-17 11:22 neil 2002-09-17 6:36 marcus
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020917185601.12165.qmail@sources.redhat.com \ --to=marcus.brinkmann@ruhr-uni-bochum.de \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).