diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-10-16 13:12:24 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-10-16 13:12:24 +0100 |
commit | 0a587f65653b553099daff424f1d2d1dca7393cb (patch) | |
tree | 5a90da10cf91370aa3787b1e46e470a8af99dea4 /gcc/opts.c | |
parent | e1dbd4c88c3772f8eb616cf2b52a67265cd389de (diff) | |
download | gcc-0a587f65653b553099daff424f1d2d1dca7393cb.zip gcc-0a587f65653b553099daff424f1d2d1dca7393cb.tar.gz gcc-0a587f65653b553099daff424f1d2d1dca7393cb.tar.bz2 |
arm.c (arm_option_optimization): Set flag_section_anchors to 1 not 2.
* config/arm/arm.c (arm_option_optimization): Set
flag_section_anchors to 1 not 2.
* config/i386/i386.c (ix86_option_override_internal): Check
global_options_set.x_flag_zee and
global_options_set.x_flag_omit_frame_pointer.
(ix86_option_optimization): Don't set flag_omit_frame_pointer and
flag_zee to 2.
* config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
global_options_set.x_flag_omit_frame_pointer.
* config/rs6000/rs6000.c (rs6000_option_init_struct): Set
opts->x_flag_section_anchors to 1 not 2.
* config/sh/sh.c (sh_option_optimization): Don't set
flag_schedule_insns to 2.
(sh_option_override): Check
global_options_set.x_flag_schedule_insns.
* opts.c (finish_options): Check opts_set->x_flag_section_anchors.
From-SVN: r165539
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1005,7 +1005,7 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set) section-anchors. */ if (!flag_unit_at_a_time) { - if (flag_section_anchors == 1) + if (flag_section_anchors && opts_set->x_flag_section_anchors) error ("Section anchors must be disabled when unit-at-a-time " "is disabled."); flag_section_anchors = 0; @@ -1022,14 +1022,16 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set) /* Unless the user has asked for section anchors, we disable toplevel reordering at -O0 to disable transformations that might be surprising to end users and to get -fno-toplevel-reorder tested. */ - if (!optimize && flag_toplevel_reorder == 2 && flag_section_anchors != 1) + if (!optimize + && flag_toplevel_reorder == 2 + && !(flag_section_anchors && opts_set->x_flag_section_anchors)) { flag_toplevel_reorder = 0; flag_section_anchors = 0; } if (!flag_toplevel_reorder) { - if (flag_section_anchors == 1) + if (flag_section_anchors && opts_set->x_flag_section_anchors) error ("section anchors must be disabled when toplevel reorder" " is disabled"); flag_section_anchors = 0; |