From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27640 invoked by alias); 22 Apr 2008 15:27:21 -0000 Received: (qmail 15831 invoked by uid 48); 22 Apr 2008 15:24:46 -0000 Date: Tue, 22 Apr 2008 15:27:00 -0000 Message-ID: <20080422152446.15830.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug preprocessor/7263] __extension__ keyword doesn't suppress warning on LL or ULL constants In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-04/txt/msg01556.txt.bz2 ------- Comment #10 from tromey at gcc dot gnu dot org 2008-04-22 15:24 ------- 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. And, it probably will not work for something like: /* system */ #define F(x) x /* user */ F(somethingToCauseAWarning) It isn't clear to me whether we would want the warning here or not. -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263