aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-03-05 16:24:55 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-03-05 16:24:55 +0800
commit78a68e851a2f6f9d00367cd38eeedf670bb80f01 (patch)
tree5c2160260a756b7710dabba780337f890b2c1514 /gcc-4.6
parent125708b8e3afa6007ce3aa7132165d27b719ccc3 (diff)
downloadtoolchain_gcc-78a68e851a2f6f9d00367cd38eeedf670bb80f01.tar.gz
toolchain_gcc-78a68e851a2f6f9d00367cd38eeedf670bb80f01.tar.bz2
toolchain_gcc-78a68e851a2f6f9d00367cd38eeedf670bb80f01.zip
Fixed GCC 4.6/4.7 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 Change-Id: If4759a637e5fb6f9c351c11b79d7f9f682ca2ab2
Diffstat (limited to 'gcc-4.6')
-rw-r--r--gcc-4.6/gcc/config/arm/arm.h1
-rw-r--r--gcc-4.6/gcc/config/arm/arm.md2
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.6/gcc/config/arm/arm.h b/gcc-4.6/gcc/config/arm/arm.h
index c4f9de0c1..6245bb5bd 100644
--- a/gcc-4.6/gcc/config/arm/arm.h
+++ b/gcc-4.6/gcc/config/arm/arm.h
@@ -1214,6 +1214,7 @@ enum reg_class
(TARGET_32BIT ? (CLASS) : \
((CLASS) == GENERAL_REGS || (CLASS) == HI_REGS \
|| (CLASS) == NO_REGS || (CLASS) == STACK_REG \
+ || (CLASS) == CORE_REGS \
? LO_REGS : (CLASS)))
/* Must leave BASE_REGS reloads alone */
diff --git a/gcc-4.6/gcc/config/arm/arm.md b/gcc-4.6/gcc/config/arm/arm.md
index df2e63949..cc73aa2f3 100644
--- a/gcc-4.6/gcc/config/arm/arm.md
+++ b/gcc-4.6/gcc/config/arm/arm.md
@@ -5852,7 +5852,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)