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++0x PATCH] "long long" support in C++0x mode


Doug Gregor wrote:

>> Is it a good idea to use cxx_dialect even for C/ObjC?
>> It works for now, because cxx_dialect defaults to cxx98 and for C
>> nothing changes it, but what if cxx_dialect changes to default to cxx0x?
>> Shouldn't that be instead
>>     = warn_long_long
>>       && ((pedantic && (c_dialect_cxx ()
>>                         ? cxx_dialect == cxx98
>>                         : !flag_isoc99)) || warn_traditional);
>> ?
> 
> That's the safer alternative, sure.

With Jakub's change (in both places), the patch is OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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