pragma-like warning turn off ?

Robert Dewar dewar@adacore.com
Wed Aug 22 23:53:00 GMT 2007


DJ Delorie wrote:
> Ian Lance Taylor <iant@google.com> writes:
>> Let's do that.
> 
> We've already talked about keeping track of the source location of
> each #pragma, and searching them for the "state" at a given line.  The
> diagnostic machinery seems to be able to tell what file/line each
> diagnostic is for, we should be able to scan the pragma list to see
> what right thing to do is.  I think this would be far easier than
> trying to queue up all the diagnostics and *then* scan the list.

How do you know that code motion will not move things across the
pragmas in a backwards direction?
> 
> Assuming we've fully converted to the single-integer source location.



More information about the Gcc mailing list