summaryrefslogtreecommitdiff
path: root/gcc/thumb.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-30 04:57:33 -0700
committerYamaArashi <shadow962@live.com>2016-04-30 04:57:33 -0700
commitd1cb3194bb20a44eecafe4186cf4e368f2a4d5b8 (patch)
treed0f27aa47b8f124d7e92b2e2747cc8c05da676b0 /gcc/thumb.c
parent0dfd357a5116b3d76fbaa9bcdd16902c28f60d2b (diff)
build libgcc with older version of compiler and add install script
Diffstat (limited to 'gcc/thumb.c')
-rwxr-xr-xgcc/thumb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/thumb.c b/gcc/thumb.c
index 0310a51..a513436 100755
--- a/gcc/thumb.c
+++ b/gcc/thumb.c
@@ -1512,6 +1512,7 @@ arm_valid_machine_decl_attribute(tree decl, tree attributes, tree attr, tree arg
int
s_register_operand(rtx op, enum machine_mode mode)
{
+#ifndef OLD_COMPILER
if (GET_MODE(op) != mode && mode != VOIDmode)
return 0;
@@ -1524,4 +1525,7 @@ s_register_operand(rtx op, enum machine_mode mode)
return (GET_CODE(op) == REG
&& (REGNO(op) >= FIRST_PSEUDO_REGISTER
|| REGNO_REG_CLASS(REGNO(op)) != NO_REGS));
+#else
+ return register_operand(op, mode);
+#endif
}