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: PR cpp/7263 pragma system_header doesn't suppress warning on LL or ULL constants



On Aug 13, 2008, at 12:45 PM, Tom Tromey wrote:


"Manuel" == Manuel López-Ibáñez <lopezibanez@gmail.com> writes:

Manuel> One for the real location of the problem (the macro Manuel> definition) and another for the place where the macro was Manuel> instantiated. Then we can use those locations to check Manuel> cpp_inhibit_warnings_at from within cpp_error.

Ideally I'd like to encode macro expansion history in a
source_location.  This is more like a dream than a plan, though, since
I have not tried to figure out exactly how to implement this encoding,
or whether it can be done inexpensively enough.

Clang already tracks this in its preprocessor, and does so efficiently. If you're interested, you can grab the source from http://clang.llvm.org/ for ideas.


-Chris


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