This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: warning message control: jumbo patch so far


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]