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 control] New #pragma GCC diagnostic


DJ Delorie <dj@redhat.com> writes:

| This is the second part of what I've talked about; this patch requires
| my previous diagnostic patch.
| 
| Note that this implementation is simplistic.  It requires the user
| take care to place the pragmas before anything that might generate the
| related warnings.  The syntax, however, allows for the diagnostic
| machinery to, in the future, keep track of the state of the diagnostic
| flags for each line and manage the diagnostics based on the reported
| line number.

I've already commented that that machinery is encouraging anarchic
code development, but I'll comment in the hope of limiting damages :-)

The pragma handler should check that the directive indeed appears at
non-local scope and diagnose the improper use, instead of deferring to
daemons flying out of nose :-)

-- Gaby


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