This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.
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 },

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]