Redo the ProPolice patches, there were partly broken.
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / flags.h.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/flags.h.patch,v 1.2 2004/06/20 00:10:52 joerg Exp $
2
3 diff -u ../gcc.orig/flags.h flags.h
4 --- ../gcc.orig/flags.h 2004-06-19 22:27:11.000000000 +0200
5 +++ flags.h     2004-06-20 01:16:04.000000000 +0200
6 @@ -186,6 +186,10 @@
7  
8  extern bool warn_strict_aliasing;
9  
10 +/* Warn when not issuing stack smashing protection for some reason.  */
11 +
12 +extern bool warn_stack_protector;
13 +
14  /* Nonzero if generating code to do profiling.  */
15  
16  extern int profile_flag;
17 @@ -771,4 +775,12 @@
18  #define HONOR_SIGN_DEPENDENT_ROUNDING(MODE) \
19    (MODE_HAS_SIGN_DEPENDENT_ROUNDING (MODE) && flag_rounding_math)
20  
21 +/* Nonzero means use propolice as a stack protection method.  */
22 +
23 +extern int flag_propolice_protection;
24 +
25 +/* Nonzero means use a stack protection method for every function.  */
26 +
27 +extern int flag_stack_protection;
28 +
29  #endif /* ! GCC_FLAGS_H */