summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch
new file mode 100644
index 0000000000..cbdd2df093
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0318-config-sparc-sparc.c-sparc_option_override-If-not-se.patch
@@ -0,0 +1,27 @@
1From c270038da4551bed55d36f8b51337a03bce0e1b2 Mon Sep 17 00:00:00 2001
2From: ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Tue, 24 May 2011 22:29:40 +0000
4Subject: [PATCH] * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5 force flag_ira_share_save_slots to 0.
6
7git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174149 138bc75d-0d04-0410-961f-82ee72b054a4
8
9index 8ad374a..c6a2047 100644
10--- a/gcc/config/sparc/sparc.c
11+++ b/gcc/config/sparc/sparc.c
12@@ -970,6 +970,12 @@ sparc_option_override (void)
13 ? 64 : 32),
14 global_options.x_param_values,
15 global_options_set.x_param_values);
16+
17+ /* Disable save slot sharing for call-clobbered registers by default.
18+ The IRA sharing algorithm works on single registers only and this
19+ pessimizes for double floating-point registers. */
20+ if (!global_options_set.x_flag_ira_share_save_slots)
21+ flag_ira_share_save_slots = 0;
22 }
23
24 /* Miscellaneous utilities. */
25--
261.7.0.4
27