Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / c-cppbuiltin.c.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/c-cppbuiltin.c.patch,v 1.1 2005/08/27 21:03:51 joerg Exp $
2
3 Index: c-cppbuiltin.c
4 ===================================================================
5 RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/c-cppbuiltin.c,v
6 retrieving revision 1.1
7 diff -u -r1.1 c-cppbuiltin.c
8 --- c-cppbuiltin.c      20 Jun 2004 02:14:48 -0000      1.1
9 +++ c-cppbuiltin.c      27 Aug 2005 16:40:43 -0000
10 @@ -408,6 +408,12 @@
11    if (c_dialect_objc () && flag_next_runtime)
12      cpp_define (pfile, "__NEXT_RUNTIME__");
13  
14 +  /* Make the choice of the stack protector runtime visible to source code.  */
15 +  if (flag_propolice_protection)
16 +    cpp_define (pfile, "__SSP__=1");
17 +  if (flag_stack_protection)
18 +    cpp_define (pfile, "__SSP_ALL__=2");
19 +
20    /* A straightforward target hook doesn't work, because of problems
21       linking that hook's body when part of non-C front ends.  */
22  # define preprocessing_asm_p() (cpp_get_options (pfile)->lang == CLK_ASM)