diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Driver/CC1Options.td | 2 | ||||
-rw-r--r-- | include/clang/Frontend/CodeGenOptions.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index 6e4d7f2d31..86b9bdec6c 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -415,6 +415,8 @@ def static_define : Flag<"-static-define">, HelpText<"Should __STATIC__ be defined">; def stack_protector : Separate<"-stack-protector">, HelpText<"Enable stack protectors">; +def stack_protector_buffer_size : Separate<"-stack-protector-buffer-size">, + HelpText<"Lower bound for a buffer to be considered for stack protection">; def fvisibility : Separate<"-fvisibility">, HelpText<"Default symbol visibility">; def ftemplate_depth : Separate<"-ftemplate-depth">, diff --git a/include/clang/Frontend/CodeGenOptions.h b/include/clang/Frontend/CodeGenOptions.h index 3e34093352..8610b8a89b 100644 --- a/include/clang/Frontend/CodeGenOptions.h +++ b/include/clang/Frontend/CodeGenOptions.h @@ -185,6 +185,9 @@ public: /// The run-time penalty for bounds checking, or 0 to disable. unsigned char BoundsChecking; + /// The lower bound for a buffer to be considered for stack protection. + unsigned SSPBufferSize; + /// The default TLS model to use. TLSModel DefaultTLSModel; @@ -241,6 +244,7 @@ public: StackRealignment = 0; StackAlignment = 0; BoundsChecking = 0; + SSPBufferSize = 8; UseInitArray = 0; DebugInfo = NoDebugInfo; |