diff options
author | Kevin F. Quinn <kevquinn@gentoo.org> | 2005-12-08 17:15:26 +0000 |
---|---|---|
committer | Kevin F. Quinn <kevquinn@gentoo.org> | 2005-12-08 17:15:26 +0000 |
commit | 4caa9a8a95eca58d4089e6d1bf24780da8046062 (patch) | |
tree | 768e06f01ad20db703b9096958960406a5f5694a /3.3.6 | |
parent | initial 3.4.5 patchset based upon latest 3.4.4 patchset along with updates fr... (diff) | |
download | gcc-patches-4caa9a8a95eca58d4089e6d1bf24780da8046062.tar.gz gcc-patches-4caa9a8a95eca58d4089e6d1bf24780da8046062.tar.bz2 gcc-patches-4caa9a8a95eca58d4089e6d1bf24780da8046062.zip |
add __SSP__ and __SSP_ALL__ macro definitions
Diffstat (limited to '3.3.6')
-rw-r--r-- | 3.3.6/ssp/protector.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3.3.6/ssp/protector.patch b/3.3.6/ssp/protector.patch index 261451b..9904540 100644 --- a/3.3.6/ssp/protector.patch +++ b/3.3.6/ssp/protector.patch @@ -782,3 +782,19 @@ diff -Naurp gcc-3.3.5.orig/gcc/toplev.c gcc-3.3.5/gcc/toplev.c } /* Initialize the compiler back end. */ +diff -Naurp gcc-3.3.5.orig/gcc/c-common.c gcc-3.3.5/gcc/c-common.c +--- gcc-3.3.5.orig/gcc/c-common.c.orig 2005-11-09 16:40:18.000000000 +0100 ++++ gcc-3.3.5/gcc/c-common.c 2005-11-09 16:42:05.000000000 +0100 +@@ -5666,6 +5666,12 @@ cb_register_builtins (pfile) + if (flag_objc && flag_next_runtime) + cpp_define (pfile, "__NEXT_RUNTIME__"); + ++ /* Define indicator macros of stack-protector state. */ ++ if (flag_propolice_protection) ++ cpp_define (pfile, "__SSP__=1"); ++ if (flag_stack_protection) ++ cpp_define (pfile, "__SSP_ALL__=2"); ++ + /* A straightforward target hook doesn't work, because of problems + linking that hook's body when part of non-C front ends. */ + # define preprocessing_asm_p() (cpp_get_options (pfile)->lang == CLK_ASM) |