From d1cb3194bb20a44eecafe4186cf4e368f2a4d5b8 Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Sat, 30 Apr 2016 04:57:33 -0700 Subject: build libgcc with older version of compiler and add install script --- gcc/thumb.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/thumb.c') 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 } -- cgit v1.2.3