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: [C++ Patch] PR 50454


On 09/20/2011 03:45 PM, Paolo Carlini wrote:
On 09/20/2011 03:12 PM, Jason Merrill wrote:
No, I think we want to complain about __int128 when -pedantic unless we're in a system header, as C does. The right fix is to move the __int128 code out of the if (unsigned_p || ...) block, and to suppress the pedwarn when in_system_header.
Ok, I'll do it...
As a preview, something as simple as the below appears to do what we want. I'll test it later with testcases (I think we want two: one testing sane error messages for a normal run of the testsuite; one testing the in_system_header suppression with the snippet included as a *.h), repost...

Thanks,
Paolo.

Attachment: p
Description: Text document


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