aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-04-02 19:51:54 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-04-02 20:36:33 +0800
commit9c289590d1f9e5c75fc4e7ba33ab4a86244972a9 (patch)
tree86464bfcfea12dbad3c741ee21491942e6500ba8 /gcc-4.8
parent8648b5263208a4e894d9ceaacedb72d48be70c55 (diff)
downloadtoolchain_gcc-9c289590d1f9e5c75fc4e7ba33ab4a86244972a9.tar.gz
toolchain_gcc-9c289590d1f9e5c75fc4e7ba33ab4a86244972a9.tar.bz2
toolchain_gcc-9c289590d1f9e5c75fc4e7ba33ab4a86244972a9.zip
[4.8] Fixed GCC 4.8 ICE gen_thumb_movhi_clobber at config/arm/arm.md:5832
See issue https://code.google.com/p/android/issues/detail?id=52732, and fix http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00732.html Also see 78a68e851a2f6f9d00367cd38eeedf670bb80f01 Change-Id: Iad4deda17414f3165714da0b60f9f8cb2a6ef052
Diffstat (limited to 'gcc-4.8')
-rw-r--r--gcc-4.8/gcc/config/arm/arm.c3
-rw-r--r--gcc-4.8/gcc/config/arm/arm.md2
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc-4.8/gcc/config/arm/arm.c b/gcc-4.8/gcc/config/arm/arm.c
index 2077b97c9..dd88f0bcc 100644
--- a/gcc-4.8/gcc/config/arm/arm.c
+++ b/gcc-4.8/gcc/config/arm/arm.c
@@ -6355,7 +6355,8 @@ arm_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
if (rclass == GENERAL_REGS
|| rclass == HI_REGS
|| rclass == NO_REGS
- || rclass == STACK_REG)
+ || rclass == STACK_REG
+ || rclass == CORE_REGS)
return LO_REGS;
else
return rclass;
diff --git a/gcc-4.8/gcc/config/arm/arm.md b/gcc-4.8/gcc/config/arm/arm.md
index f3c59f37c..a532e56ce 100644
--- a/gcc-4.8/gcc/config/arm/arm.md
+++ b/gcc-4.8/gcc/config/arm/arm.md
@@ -6365,7 +6365,7 @@
(define_expand "reload_inhi"
[(parallel [(match_operand:HI 0 "s_register_operand" "=r")
(match_operand:HI 1 "arm_reload_memory_operand" "o")
- (match_operand:DI 2 "s_register_operand" "=&r")])]
+ (match_operand:DI 2 "s_register_operand" "=&l")])]
"TARGET_EITHER"
"
if (TARGET_ARM)