This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add a __nowarn__ keyword
> Eventually, when the pragma states are linked to ranges of source
> locations so that diagnostics issued after the front end can be correctly
> handled (mapped-location might help here),
I can certainly store the mapped-location in the classification tree,
and look up the state as of that mapping. Is that universally
available to the diagnostics machinery?
> full conversion to OPT_*. (I suspect restoring the warn_foo variables
> when state is popped, but I don't know how hard that is.)
The pragma only deals with options passed with OPT_* anyway. I
suppose what we can do at the moment is check to see if the initial
table has "unspecified", and if so, set it to ignore, warn, or error
as appropriate.