aboutsummaryrefslogtreecommitdiff
path: root/lang/gcc48/files/patch-stackprotector-gcc_c-family
blob: ca1da8a3e08c1a35c05695d116b708e6d71ab3b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- UTC
--- gcc/c-family/c-cppbuiltin.c.orig
+++ gcc/c-family/c-cppbuiltin.c
@@ -888,6 +888,8 @@ c_cpp_builtins (cpp_reader *pfile)
   /* Make the choice of the stack protector runtime visible to source code.
      The macro names and values here were chosen for compatibility with an
      earlier implementation, i.e. ProPolice.  */
+  if (flag_stack_protect == 3)
+    cpp_define (pfile, "__SSP_STRONG__=3");
   if (flag_stack_protect == 2)
     cpp_define (pfile, "__SSP_ALL__=2");
   else if (flag_stack_protect == 1)