aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2013-11-19 22:13:49 +0000
committerTeresa Johnson <tejohnson@gcc.gnu.org>2013-11-19 22:13:49 +0000
commit32ad0f03298dd5edd015fa78dcfbb96d66c9a80d (patch)
tree0ee342f407ede127f48bbc6e9ebf78572744d167 /gcc/common
parent2ae367c1e7081c2ec9a47267551d197002e79b23 (diff)
downloadgcc-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/common')
-rw-r--r--gcc/common/config/i386/i386-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/common/config/i386/i386-common.c b/gcc/common/config/i386/i386-common.c
index 341637b..e07479d 100644
--- a/gcc/common/config/i386/i386-common.c
+++ b/gcc/common/config/i386/i386-common.c
@@ -789,6 +789,8 @@ static const struct default_options ix86_option_optimization_table[] =
{
/* Enable redundant extension instructions removal at -O2 and higher. */
{ OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 },
+ /* Enable function splitting at -O2 and higher. */
+ { OPT_LEVELS_2_PLUS, OPT_freorder_blocks_and_partition, NULL, 1 },
/* Turn off -fschedule-insns by default. It tends to make the
problem with not enough registers even worse. */
{ OPT_LEVELS_ALL, OPT_fschedule_insns, NULL, 0 },