This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2008 19:25:22 -0000
- Subject: [Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants
- References: <bug-7263-1664@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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