[llvm-commits] [llvm-gcc-4.2] r58724 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Tue Nov 4 13:54:08 PST 2008
Author: void
Date: Tue Nov 4 15:54:08 2008
New Revision: 58724
URL: http://llvm.org/viewvc/llvm-project?rev=58724&view=rev
Log:
Update to use the enumerated values for --enable-stack-protector option.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=58724&r1=58723&r2=58724&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Nov 4 15:54:08 2008
@@ -167,9 +167,16 @@
}
if (flag_stack_protect > 0) {
- std::string Arg("--enable-stack-protector=" + utostr(flag_stack_protect));
+ std::string Arg("--enable-stack-protector=");
+
+ if (flag_stack_protect == 1)
+ Arg += "some";
+ else
+ Arg += "all";
+
ArgStrings.push_back(Arg);
- Arg = "--ssp-buffer-size=" + utostr(PARAM_VALUE(PARAM_SSP_BUFFER_SIZE));
+ Arg = "--stack-protector-buffer-size=" +
+ utostr(PARAM_VALUE(PARAM_SSP_BUFFER_SIZE));
ArgStrings.push_back(Arg);
}
More information about the llvm-commits
mailing list