diff options
author | Teresa Johnson <tejohnson@google.com> | 2013-11-19 22:13:49 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2013-11-19 22:13:49 +0000 |
commit | 32ad0f03298dd5edd015fa78dcfbb96d66c9a80d (patch) | |
tree | 0ee342f407ede127f48bbc6e9ebf78572744d167 /gcc/opts.c | |
parent | 2ae367c1e7081c2ec9a47267551d197002e79b23 (diff) | |
download | gcc-32ad0f03298dd5edd015fa78dcfbb96d66c9a80d.zip gcc-32ad0f03298dd5edd015fa78dcfbb96d66c9a80d.tar.gz gcc-32ad0f03298dd5edd015fa78dcfbb96d66c9a80d.tar.bz2 |
i386-common.c: Enable -freorder-blocks-and-partition at -O2 and up for x86.
2013-11-19 Teresa Johnson <tejohnson@google.com>
* common/config/i386/i386-common.c: Enable
-freorder-blocks-and-partition at -O2 and up for x86.
* doc/invoke.texi: Update -freorder-blocks-and-partition default.
* opts.c (finish_options): Only warn if -freorder-blocks-and-
partition was set on command line.
From-SVN: r205058
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -737,9 +737,10 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, && opts->x_flag_reorder_blocks_and_partition && (ui_except == UI_SJLJ || ui_except >= UI_TARGET)) { - inform (loc, - "-freorder-blocks-and-partition does not work " - "with exceptions on this architecture"); + if (opts_set->x_flag_reorder_blocks_and_partition) + inform (loc, + "-freorder-blocks-and-partition does not work " + "with exceptions on this architecture"); opts->x_flag_reorder_blocks_and_partition = 0; opts->x_flag_reorder_blocks = 1; } @@ -752,9 +753,10 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, && opts->x_flag_reorder_blocks_and_partition && (ui_except == UI_SJLJ || ui_except >= UI_TARGET)) { - inform (loc, - "-freorder-blocks-and-partition does not support " - "unwind info on this architecture"); + if (opts_set->x_flag_reorder_blocks_and_partition) + inform (loc, + "-freorder-blocks-and-partition does not support " + "unwind info on this architecture"); opts->x_flag_reorder_blocks_and_partition = 0; opts->x_flag_reorder_blocks = 1; } @@ -769,9 +771,10 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, && targetm_common.unwind_tables_default && (ui_except == UI_SJLJ || ui_except >= UI_TARGET)))) { - inform (loc, - "-freorder-blocks-and-partition does not work " - "on this architecture"); + if (opts_set->x_flag_reorder_blocks_and_partition) + inform (loc, + "-freorder-blocks-and-partition does not work " + "on this architecture"); opts->x_flag_reorder_blocks_and_partition = 0; opts->x_flag_reorder_blocks = 1; } |