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: Add a __nowarn__ keyword


> Full push/pop capabilities, on the other hand, would be hard (as DJ
> has explained above).

Obviously, I explained it poorly.

Adding push/pop to #pragma diagnostic is easy.

Semantically attaching the current state of the diagnostics to a
particular grammar construct, and having it apply consistently
throughout the various phases of the compilation, is hard.

I then conjectured that adding push/pop isn't useful until the
attachment problem is solved.

If we can solve a subset of the attachment problem, let's use the
push/pop technique I described.  It sets us up for all the things
we'll need if/when we solve the general attachment problem.


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