Patchwork [08/10] -fuse-caller-save - Enable by default at O2 and higher

login
register
mail settings
Submitter Tom de Vries
Date March 29, 2013, 1:06 p.m.
Message ID <20130329130612.3C94B4213AB@build1-lucid-cs>
Download mbox | patch
Permalink /patch/232404/
State New
Headers show

Comments

Tom de Vries - March 29, 2013, 1:06 p.m.
Vladimir,



This patch enables the -fuse-caller-save optimization by default.



Thanks,

  -Tom



2013-03-29  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.

Patch

diff --git a/gcc/opts.c b/gcc/opts.c

index 45b12fe..52a42b9 100644

--- a/gcc/opts.c

+++ b/gcc/opts.c

@@ -486,6 +486,7 @@  static const struct default_options default_options_table[] =

     { OPT_LEVELS_2_PLUS, OPT_ftree_tail_merge, NULL, 1 },

     { 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_fuse_caller_save, NULL, 1 },

 

     /* -O3 optimizations.  */

     { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },