preprocessor/7263: __extension__ keyword doesn't suppress warning on LL or ULL constants

Neil Booth neil@daikokuya.co.uk
Mon Dec 9 16:26:00 GMT 2002


The following reply was made to PR preprocessor/7263; it has been noted by GNATS.

From: Neil Booth <neil@daikokuya.co.uk>
To: ehrhardt@mathematik.uni-ulm.de, andrew@andypo.net, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: preprocessor/7263: __extension__ keyword doesn't suppress warning on LL or ULL constants
Date: Tue, 10 Dec 2002 00:22:56 +0000

 ehrhardt@mathematik.uni-ulm.de wrote:-
 
 >     I can confirm this on recent 3.3. The warning is from the preprocessor
 >     where we don't know about __extension__. Maybe the fix is to just
 >     document this. Anyway: Category changed to preprocessor and priority
 >     raised to medium because this is technically a regression.
 
 I think we just document __extension__ as only applying to non-CPP issues;
 we can't reasonably expect CPP to interact with a parser in all situations
 and under all future code changes.  I imagine we could enhance existing
 code so that we don't have this problem in cases where it is the C front
 end requesting the number interpretation, since it could easily pass a
 "don't warn about foo" flag to cpplib.  However expecting cpplib to get
 it right for #if is not reasonable, seeing as #if can occur between any
 two tokens.
 
 Neil.



More information about the Gcc-prs mailing list