From c270038da4551bed55d36f8b51337a03bce0e1b2 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Tue, 24 May 2011 22:29:40 +0000 Subject: [PATCH] * config/sparc/sparc.c (sparc_option_override): If not set by the user, force flag_ira_share_save_slots to 0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174149 138bc75d-0d04-0410-961f-82ee72b054a4 index 8ad374a..c6a2047 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -970,6 +970,12 @@ sparc_option_override (void) ? 64 : 32), global_options.x_param_values, global_options_set.x_param_values); + + /* Disable save slot sharing for call-clobbered registers by default. + The IRA sharing algorithm works on single registers only and this + pessimizes for double floating-point registers. */ + if (!global_options_set.x_flag_ira_share_save_slots) + flag_ira_share_save_slots = 0; } /* Miscellaneous utilities. */ -- 1.7.0.4