diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-06-12 20:56:57 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-14 15:29:15 +0100 |
commit | ec9b6d061b8495b9316ae90e5a71a499ef2873ee (patch) | |
tree | dc922c9ddd98f937eb2095b07f6c3b5043e3a491 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch | |
parent | fbc60cc5ba2284bfcaea8c82001a49b7795cc2a2 (diff) | |
download | poky-ec9b6d061b8495b9316ae90e5a71a499ef2873ee.tar.gz |
gcc-4.6.0: Bring in patches from FSF 4.6 branch
This brings in new patches from 4.6 release branch
updates the comment section of existing branch to not
contain patch numbers.
Tested build on qemu for arm ppc mips x86 and x86_64
(From OE-Core rev: 3968f33b6542cf20cf63cf49bfbc033bd2486295)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch new file mode 100644 index 0000000000..e740b72f18 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0271-config-rx-rx.c-rx_memory_move_cost-Include-cost-of-r.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From af42375ce311b2bab14f7b4eb83a2060a71d73f4 Mon Sep 17 00:00:00 2001 | ||
2 | From: nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Tue, 17 May 2011 08:59:10 +0000 | ||
4 | Subject: [PATCH] * config/rx/rx.c (rx_memory_move_cost): Include cost of register | ||
5 | moves. | ||
6 | |||
7 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173825 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
8 | |||
9 | index e0bd176..a2d48ab 100644 | ||
10 | --- a/gcc/config/rx/rx.c | ||
11 | +++ b/gcc/config/rx/rx.c | ||
12 | @@ -2592,9 +2592,11 @@ rx_trampoline_init (rtx tramp, tree fndecl, rtx chain) | ||
13 | } | ||
14 | |||
15 | static int | ||
16 | -rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in) | ||
17 | +rx_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, | ||
18 | + reg_class_t regclass ATTRIBUTE_UNUSED, | ||
19 | + bool in) | ||
20 | { | ||
21 | - return (in ? 2:0) + memory_move_secondary_cost (mode, regclass, in); | ||
22 | + return (in ? 2 : 0) + REGISTER_MOVE_COST (mode, regclass, regclass); | ||
23 | } | ||
24 | |||
25 | /* Convert a CC_MODE to the set of flags that it represents. */ | ||
26 | -- | ||
27 | 1.7.0.4 | ||
28 | |||