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 14, 2008, at 2:40 AM, Manuel López-Ibáñez wrote:


2008/8/13 Tom Tromey <tromey@redhat.com>:

Failing implementation of the full dream perhaps we can keep just two locations -- one for the start of the top-level macro expansion and one for the original location of the token. This information is already available to libcpp users -- just not really inside libcpp itself. This is a bizarre consequence of a hack needed to get mapped locations working well enough to enable.

I think that two locations would be enough for 99% of our purposes. AFAIK, that is what clang does (Chris?). They encode two locations per location cookie.

Yep exactly. The Clang design inherently depends on this location information being correct as well in the lexer and several other low- level pieces.


-Chris


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