1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/opts.c.patch,v 1.5 2005/05/13 17:40:44 joerg Exp $
3 ===================================================================
4 RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/opts.c,v
5 retrieving revision 1.1
7 --- opts.c 20 Jun 2004 02:14:50 -0000 1.1
8 +++ opts.c 22 Mar 2005 23:54:25 -0000
10 bool warn_unused_variable;
11 bool warn_unused_value;
13 +/* Warn when not issuing stack smashing protection for some reason */
14 +bool warn_stack_protector;
16 /* Hack for cooperation between set_Wunused and set_Wextra. */
17 static bool maybe_warn_unused_parameter;
20 write_symbols is set to DBX_DEBUG, XCOFF_DEBUG, or DWARF_DEBUG. */
21 bool use_gnu_debug_info_extensions;
23 +/* The default visibility for all symbols (unless overridden) */
24 +enum symbol_visibility default_visibility = VISIBILITY_DEFAULT;
26 +/* Global visibility options. */
27 +struct visibility_flags visibility_options;
29 /* Columns of --help display. */
30 static unsigned int columns = 80;
33 flag_schedule_insns_after_reload = 1;
36 - flag_strict_aliasing = 1;
37 flag_delete_null_pointer_checks = 1;
38 flag_reorder_blocks = 1;
39 flag_reorder_functions = 1;
40 - flag_unit_at_a_time = 1;
41 + if (!flag_propolice_protection)
42 + flag_unit_at_a_time = 1;
47 warn_unused_variable = value;
50 + case OPT_Wstack_protector:
51 + warn_stack_protector = value;
56 aux_info_file_name = arg;
57 @@ -1361,6 +1373,14 @@
58 stack_limit_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (arg));
61 + case OPT_fstack_protector:
62 + flag_propolice_protection = value;
65 + case OPT_fstack_protector_all:
66 + flag_stack_protection = value;
69 case OPT_fstrength_reduce:
70 flag_strength_reduce = value;
72 @@ -1440,6 +1460,21 @@
73 flag_verbose_asm = value;
76 + case OPT_fvisibility_:
78 + if(!strcmp(arg, "default"))
79 + default_visibility=VISIBILITY_DEFAULT;
80 + else if(!strcmp(arg, "internal"))
81 + default_visibility=VISIBILITY_INTERNAL;
82 + else if(!strcmp(arg, "hidden"))
83 + default_visibility=VISIBILITY_HIDDEN;
84 + else if(!strcmp(arg, "protected"))
85 + default_visibility=VISIBILITY_PROTECTED;
87 + error("unrecognised visibility value \"%s\"", arg);