This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][RFC] -Wno-... option to suppress builtin macro redefined warnings
- From: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: tromey at redhat dot com
- Cc: "Simon Baldwin" <simonb at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 8 Aug 2008 18:00:23 +0200
- Subject: Re: [PATCH][RFC] -Wno-... option to suppress builtin macro redefined warnings
- References: <20080730140920.0F9CF3FE1B9@localhost> <m3wsirec2f.fsf@fleche.redhat.com>
2008/8/8 Tom Tromey <tromey@redhat.com>:
>>>>>> "Simon" == Simon Baldwin <simonb@google.com> writes:
>
> Simon> This patch adds a warning suppression flag,
> Simon> -Wno-builtin-macro-redefined, to silence gcc warnings where
> Simon> builtin macros such as __TIME__ are undefined or redefined,
> Simon> either on the command line or by directives.
>
> This seems like a reasonable thing to want to do.
>
Do we need an option? Why not allow redefinition of (some) builtin
macros by default?
Cheers,
Manuel.