0ec17281ad2fbb8f4d770286bd1e8690eda637ee
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / opts.c.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch,v 1.4 2005/03/22 23:58:32 joerg Exp $
2
3 ===================================================================
4 RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/opts.c,v
5 retrieving revision 1.1
6 diff -u -r1.1 opts.c
7 --- opts.c      20 Jun 2004 02:14:50 -0000      1.1
8 +++ opts.c      22 Mar 2005 23:54:25 -0000
9 @@ -125,6 +125,9 @@
10  bool warn_unused_variable;
11  bool warn_unused_value;
12  
13 +/* Warn when not issuing stack smashing protection for some reason */
14 +bool warn_stack_protector;
15 +
16  /* Hack for cooperation between set_Wunused and set_Wextra.  */
17  static bool maybe_warn_unused_parameter;
18  
19 @@ -142,6 +145,12 @@
20     write_symbols is set to DBX_DEBUG, XCOFF_DEBUG, or DWARF_DEBUG.  */
21  bool use_gnu_debug_info_extensions;
22  
23 +/* The default visibility for all symbols (unless overridden) */
24 +enum symbol_visibility default_visibility = VISIBILITY_DEFAULT;
25 +
26 +/* Global visibility options.  */
27 +struct visibility_flags visibility_options;
28 +
29  /* Columns of --help display.  */
30  static unsigned int columns = 80;
31  
32 @@ -560,7 +569,6 @@
33        flag_schedule_insns_after_reload = 1;
34  #endif
35        flag_regmove = 1;
36 -      flag_strict_aliasing = 1;
37        flag_delete_null_pointer_checks = 1;
38        flag_reorder_blocks = 1;
39        flag_reorder_functions = 1;
40 @@ -798,6 +806,10 @@
41        warn_unused_variable = value;
42        break;
43  
44 +    case OPT_Wstack_protector:
45 +      warn_stack_protector = value;
46 +      break;
47 +
48      case OPT_aux_info:
49      case OPT_aux_info_:
50        aux_info_file_name = arg;
51 @@ -1361,6 +1373,14 @@
52        stack_limit_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (arg));
53        break;
54  
55 +    case OPT_fstack_protector:
56 +      flag_propolice_protection = value;
57 +      break;
58 +
59 +    case OPT_fstack_protector_all:
60 +      flag_stack_protection = value;
61 +      break;
62 +
63      case OPT_fstrength_reduce:
64        flag_strength_reduce = value;
65        break;
66 @@ -1440,6 +1460,21 @@
67        flag_verbose_asm = value;
68        break;
69  
70 +    case OPT_fvisibility_:
71 +      {
72 +        if(!strcmp(arg, "default"))
73 +          default_visibility=VISIBILITY_DEFAULT;
74 +        else if(!strcmp(arg, "internal"))
75 +          default_visibility=VISIBILITY_INTERNAL;
76 +        else if(!strcmp(arg, "hidden"))
77 +          default_visibility=VISIBILITY_HIDDEN;
78 +        else if(!strcmp(arg, "protected"))
79 +          default_visibility=VISIBILITY_PROTECTED;
80 +        else
81 +          error("unrecognised visibility value \"%s\"", arg);
82 +      }
83 +      break;
84 +
85      case OPT_fweb:
86        flag_web = value;
87        break;