This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: warning message control: jumbo patch so far
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: DJ Delorie <dj at redhat dot com>
- Cc: mark at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Date: 03 May 2005 09:26:15 +0200
- Subject: Re: warning message control: jumbo patch so far
- References: <200504230001.j3N01RR8016620@greed.delorie.com><4269966E.1020708@codesourcery.com><200504230039.j3N0dWvp017120@greed.delorie.com><4269A6B7.7070402@codesourcery.com><200504232138.j3NLcscP001625@greed.delorie.com><200504252153.j3PLr5X9026266@greed.delorie.com><200504292255.j3TMtSFY013487@greed.delorie.com><m3k6mkjtai.fsf@uniton.integrable-solutions.net><200505022127.j42LRpgL001732@greed.delorie.com>
DJ Delorie <dj@redhat.com> writes:
| This patch is the so-far for all my pending warning control patches:
|
| * Lets warning() itself decide if the warning is printed.
| * Amends each warning with the option which controls it.
This is much better and I like it.
In order not to hold it indefinitely, I would like you apply it but
follow up with a patch
* that adds a field "show_options" to diagnostic_context, that
consistently play the role of diagnostic_show_options;
* that has this
| + if (opt && ! option_enabled (opt))
| + return;
| +
done by report_diagnostic. That for example,
ensures that any diagnostic kind (error, warning, note, ...) has
it checked properly.
Thanks!
-- Gaby
-- Gaby