public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marek Polacek <polacek@redhat.com>
To: Qing Zhao <qing.zhao@oracle.com>
Cc: "joseph@codesourcery.com" <joseph@codesourcery.com>,
	gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: How to check -std=c89 or -std=gnu89 is set in C FE?
Date: Tue, 2 Aug 2022 12:34:56 -0400	[thread overview]
Message-ID: <YulSMFMMaVruJbgO@redhat.com> (raw)
In-Reply-To: <8A1C5AF0-9114-43C0-9FFF-E524A5B4AEE4@oracle.com>

On Tue, Aug 02, 2022 at 04:19:56PM +0000, Qing Zhao via Gcc-patches wrote:
> Hi, Joseph,
> 
> When -std=c89 or -std=gnu89 present in the command line, in C FE, which flags should be
> checked to decide it’s -std=c89 or -std=gnu89?

You should be able to check flag_iso and related.

Marek


  reply	other threads:[~2022-08-02 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02 16:19 Qing Zhao
2022-08-02 16:34 ` Marek Polacek [this message]
2022-08-02 16:53   ` Qing Zhao

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=YulSMFMMaVruJbgO@redhat.com \
    --to=polacek@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=joseph@codesourcery.com \
    --cc=qing.zhao@oracle.com \
    /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: link
Be 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).