This is the mail archive of the gcc@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: named warnings & individual warning control


> I think passing the parameter to "error" is a good idea too.

The initial patch (mechanically adding "0" to all calls) is going to
be HUGE.

> For example, in the case that the user requests that diagnostics
> contain links back to the relevant standard, you could use the tag
> passed in to find that information.  (At first, we will not have
> enough specificity to do that, but later...)

I was thinking that the value passed should be one of the OPT_*
values.  I wonder how we would tie in error() calls with this, since
we normally don't have command line options for errors.  I suppose we
could have options that don't correspond to command line options, or
some way of appending OPT_* values for non-option options (sigh).

Or perhaps a separate enum that starts with N_OPTS and counts up?

But yeah, I can see the benefit of having some ID tag passed with each
message, error or otherwise.


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