Merge from vendor branch LESS:
[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.3 2004/12/21 13:10:48 joerg Exp $
2
3 ===================================================================
4 RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/flags.h,v
5 retrieving revision 1.1
6 diff -u -r1.1 flags.h
7 --- flags.h     20 Jun 2004 02:14:49 -0000      1.1
8 +++ flags.h     20 Dec 2004 20:49:31 -0000
9 @@ -60,6 +60,30 @@
10  /* Nonzero means emit debugging information only for symbols which are used.  */
11  extern int flag_debug_only_used_symbols;
12  
13 +/* Enumerate visibility settings.  */
14 +#ifndef SYMBOL_VISIBILITY_DEFINED
15 +#define SYMBOL_VISIBILITY_DEFINED
16 +enum symbol_visibility
17 +{
18 +  VISIBILITY_DEFAULT,
19 +  VISIBILITY_INTERNAL,
20 +  VISIBILITY_HIDDEN,
21 +  VISIBILITY_PROTECTED
22 +};
23 +#endif
24 +
25 +/* The default visibility for all symbols (unless overridden).  */
26 +extern enum symbol_visibility default_visibility;
27 +
28 +struct visibility_flags
29 +{
30 +  unsigned inpragma : 1;       /* True when in #pragma GCC visibility.  */
31 +  unsigned inlineshidden : 1;  /* True when -finlineshidden in effect.  */
32 +};
33 +
34 +/* Global visibility options.  */
35 +extern struct visibility_flags visibility_options;
36 +
37  /* Nonzero means do optimizations.  -opt.  */
38  
39  extern int optimize;
40 @@ -186,6 +210,10 @@
41  
42  extern bool warn_strict_aliasing;
43  
44 +/* Warn when not issuing stack smashing protection for some reason.  */
45 +
46 +extern bool warn_stack_protector;
47 +
48  /* Nonzero if generating code to do profiling.  */
49  
50  extern int profile_flag;
51 @@ -771,4 +799,12 @@
52  #define HONOR_SIGN_DEPENDENT_ROUNDING(MODE) \
53    (MODE_HAS_SIGN_DEPENDENT_ROUNDING (MODE) && flag_rounding_math)
54  
55 +/* Nonzero means use propolice as a stack protection method.  */
56 +
57 +extern int flag_propolice_protection;
58 +
59 +/* Nonzero means use a stack protection method for every function.  */
60 +
61 +extern int flag_stack_protection;
62 +
63  #endif /* ! GCC_FLAGS_H */