From d206a0728f6c2bbfc467a39b40ad77f6ab16f4c8 Mon Sep 17 00:00:00 2001 From: wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Sat, 13 Aug 2005 20:58:02 +0000 Subject: [PATCH] Document compatibility with earlier ProPolice implementation. * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103058 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 3 +++ gcc/c-cppbuiltin.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6243ce294cc..77a51c62778f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -6,6 +6,9 @@ (-Wvariadic-macros): Alphabetize. (-fsched-stalled-insns-dep): Add missing 'f'. + * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect + macros. + 2005-08-13 David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 44c7a3797ddb..9020e0b49f94 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -440,7 +440,9 @@ c_cpp_builtins (cpp_reader *pfile) if (targetm.handle_pragma_extern_prefix) cpp_define (pfile, "__PRAGMA_EXTERN_PREFIX"); - /* Make the choice of the stack protector runtime visible to source code. */ + /* 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 == 2) cpp_define (pfile, "__SSP_ALL__=2"); else if (flag_stack_protect == 1) -- GitLab