summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-28 09:43:32 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-28 09:43:32 +0000
commitec0d1d643fa3b5a0a4bb6cdc6e5bad494b84cb7e (patch)
treec423067a5caca6fb1adad10b6cd7f0e8d2a3bd8e
parent754158d9189fd020e9cde6a16c55d0340035f503 (diff)
downloadgcc-ec0d1d643fa3b5a0a4bb6cdc6e5bad494b84cb7e.tar.gz
-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211008 138bc75d-0d04-0410-961f-82ee72b054a4
-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 7e0f5328e47..e6ddd99e549 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 2f4f913ca9f..2b1280a76ff 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 },