This is the mail archive of the gcc-bugs@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]

[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants



------- Comment #11 from manu at gcc dot gnu dot org  2008-08-10 19:25 -------
(In reply to comment #10)
> I think this should be fixable now that mapped locations have gone in.
> The key is to have c_lex_with_flags return a value for in_system_header
> which comes from the token's "original" location, not the macro expansion
> location.  I am not sure if this will do the right thing with token pasting.

I am not sure how that will work. How do you specify a different value of
system_header for a single location? My understanding is that sysp is for a
whole line_map, so you cannot just change its value for a single location.

We could handle this for each error but that is not ideal either. This would be
trivial if tokens expanded from macros carried two locations around but I guess
that is too expensive, isn't it?


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263


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