summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch
new file mode 100644
index 0000000000..b8358eaf44
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0248-config-rx-rx.c-rx_memory_move_cost-Reduce-the-cost-f.patch
@@ -0,0 +1,23 @@
1From 072020dc11d2dc8871ea399055d1a5490b736550 Mon Sep 17 00:00:00 2001
2From: nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Tue, 10 May 2011 11:24:14 +0000
4Subject: [PATCH] * config/rx/rx.c (rx_memory_move_cost): Reduce the cost for
5 stores.
6
7git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173616 138bc75d-0d04-0410-961f-82ee72b054a4
8
9index f56e779..6fd1153 100644
10--- a/gcc/config/rx/rx.c
11+++ b/gcc/config/rx/rx.c
12@@ -2595,7 +2595,7 @@ rx_trampoline_init (rtx tramp, tree fndecl, rtx chain)
13 static int
14 rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in)
15 {
16- return 2 + memory_move_secondary_cost (mode, regclass, in);
17+ return (in ? 2:0) + memory_move_secondary_cost (mode, regclass, in);
18 }
19
20 /* Convert a CC_MODE to the set of flags that it represents. */
21--
221.7.0.4
23