summaryrefslogtreecommitdiff
path: root/gcc/thumb.c
diff options
context:
space:
mode:
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
}