public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* How to check -std=c89 or -std=gnu89 is set in C FE?
@ 2022-08-02 16:19 Qing Zhao
  2022-08-02 16:34 ` Marek Polacek
  0 siblings, 1 reply; 3+ messages in thread
From: Qing Zhao @ 2022-08-02 16:19 UTC (permalink / raw)
  To: joseph; +Cc: gcc-patches Paul A Clarke via

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?

Thanks a lot for your help.

Qing

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to check -std=c89 or -std=gnu89 is set in C FE?
  2022-08-02 16:19 How to check -std=c89 or -std=gnu89 is set in C FE? Qing Zhao
@ 2022-08-02 16:34 ` Marek Polacek
  2022-08-02 16:53   ` Qing Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Polacek @ 2022-08-02 16:34 UTC (permalink / raw)
  To: Qing Zhao; +Cc: joseph, gcc-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to check -std=c89 or -std=gnu89 is set in C FE?
  2022-08-02 16:34 ` Marek Polacek
@ 2022-08-02 16:53   ` Qing Zhao
  0 siblings, 0 replies; 3+ messages in thread
From: Qing Zhao @ 2022-08-02 16:53 UTC (permalink / raw)
  To: Marek Polacek; +Cc: joseph, gcc-patches



> On Aug 2, 2022, at 12:34 PM, Marek Polacek <polacek@redhat.com> wrote:
> 
> 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.

Got it, thank you!

Qing
> 
> Marek
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-02 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 16:19 How to check -std=c89 or -std=gnu89 is set in C FE? Qing Zhao
2022-08-02 16:34 ` Marek Polacek
2022-08-02 16:53   ` Qing Zhao

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).