aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadovan Obradovic <robradovic@mips.com>2014-05-28 09:43:32 +0000
committerTom de Vries <vries@gcc.gnu.org>2014-05-28 09:43:32 +0000
commit5c989bbf879aeb9cb772bbc52188ba5b31d77f7f (patch)
treec423067a5caca6fb1adad10b6cd7f0e8d2a3bd8e
parentc2ba7e7a62c63106e1e811d31b27df26bdae0169 (diff)
downloadgcc-5c989bbf879aeb9cb772bbc52188ba5b31d77f7f.zip
gcc-5c989bbf879aeb9cb772bbc52188ba5b31d77f7f.tar.gz
gcc-5c989bbf879aeb9cb772bbc52188ba5b31d77f7f.tar.bz2
-fuse-caller-save - Enable by default at O2 and higher
2014-05-28 Radovan Obradovic <robradovic@mips.com> Tom de Vries <tom@codesourcery.com> * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with OPT_fuse_caller_save. Co-Authored-By: Tom de Vries <tom@codesourcery.com> From-SVN: r211008
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/opts.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7e0f532..e6ddd99 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,12 @@
2014-05-28 Radovan Obradovic <robradovic@mips.com>
Tom de Vries <tom@codesourcery.com>
+ * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
+ OPT_fuse_caller_save.
+
+2014-05-28 Radovan Obradovic <robradovic@mips.com>
+ Tom de Vries <tom@codesourcery.com>
+
* df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
* caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
get_call_reg_set_usage.
diff --git a/gcc/opts.c b/gcc/opts.c
index 2f4f913..2b1280a 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -497,6 +497,7 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_foptimize_strlen, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_fisolate_erroneous_paths_dereference, NULL, 1 },
+ { OPT_LEVELS_2_PLUS, OPT_fuse_caller_save, NULL, 1 },
/* -O3 optimizations. */
{ OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },