[cfe-commits] r74405 - in /cfe/trunk: include/clang/Basic/LangOptions.h include/clang/Driver/ArgList.h include/clang/Driver/Options.def lib/Basic/Targets.cpp lib/CodeGen/CGCall.cpp lib/Driver/ArgList.cpp lib/Driver/Tools.cpp lib/Frontend/InitPreprocessor.cpp test/CodeGen/stack-protector.c tools/clang-cc/clang-cc.cpp

Bill Wendling isanbard at gmail.com
Sun Jun 28 16:01:06 PDT 2009


On Jun 28, 2009, at 11:34 AM, Anders Carlsson wrote:

> 28 jun 2009 kl. 00.36 skrev Bill Wendling:
>
>> Author: void
>> Date: Sun Jun 28 02:36:13 2009
>> New Revision: 74405
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=74405&view=rev
>> Log:
>> Add stack protector support to clang. This generates the 'ssp' and  
>> 'sspreq'
>> function attributes. There are predefined macros that are defined  
>> when stack
>> protectors are used: __SSP__=1 with -fstack-protector and  
>> __SSP_ALL__=2 with
>> -fstack-protector-all.
>>
>
> Nice!
>
>>
>>  unsigned OpenCL            : 1; // OpenCL C99 language extensions.
>>
>> +  unsigned StackProtector    : 2; // Whether stack protectors are  
>> on:
>> +                                  //   0 - None
>> +                                  //   1 - On
>> +                                  //   2 - All
>>
>
> I know that the bitfield can't be an enum because of MSVC, but could  
> you add getters and setters with an enum instead? (Like getGCMode/ 
> setGCMode)
>
Done. Thanks! :)

-bw



More information about the cfe-commits mailing list