[dragonegg] r191023 - Map GCC's flag_stack_protect == 3 to LLVM's StackProtectStrong.
Duncan Sands
baldrick at free.fr
Thu Sep 19 11:19:46 PDT 2013
Author: baldrick
Date: Thu Sep 19 13:19:46 2013
New Revision: 191023
URL: http://llvm.org/viewvc/llvm-project?rev=191023&view=rev
Log:
Map GCC's flag_stack_protect == 3 to LLVM's StackProtectStrong.
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=191023&r1=191022&r2=191023&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Thu Sep 19 13:19:46 2013
@@ -1030,6 +1030,8 @@ void TreeToLLVM::StartFunctionBody() {
Fn->addFnAttr(Attribute::StackProtect);
else if (flag_stack_protect == 2)
Fn->addFnAttr(Attribute::StackProtectReq);
+ else if (flag_stack_protect == 3)
+ Fn->addFnAttr(Attribute::StackProtectStrong);
if (flag_stack_protect)
Fn->addFnAttr("stack-protector-buffer-size",
utostr(PARAM_VALUE(PARAM_SSP_BUFFER_SIZE)));
More information about the llvm-commits
mailing list