]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm.c (arm_output_mi_thunk): Use plus_constant.
authorRenlin Li <renlin.li@arm.com>
Wed, 9 Oct 2013 10:51:39 +0000 (10:51 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 9 Oct 2013 10:51:39 +0000 (10:51 +0000)
[gcc/]
2013-10-09  Renlin Li  <Renlin.Li@arm.com>

* config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.

From-SVN: r203309

gcc/ChangeLog
gcc/config/arm/arm.c

index d4560bcd5a500075a23718f9109af2226f0a4747..2c0cb798b8c1cb6d7581df363131c0d69e99dbf1 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-09  Renlin Li  <Renlin.Li@arm.com>
+
+       * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
+
 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
index 071c7024f1602bbe4a47a8eb69f1878d64ce3a13..1247854d69c667ae0b735146c3212356ea3d67d2 100644 (file)
@@ -27261,7 +27261,7 @@ arm_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
        {
          /* Output ".word .LTHUNKn-7-.LTHUNKPCn".  */
          rtx tem = XEXP (DECL_RTL (function), 0);
-         tem = gen_rtx_PLUS (GET_MODE (tem), tem, GEN_INT (-7));
+         tem = plus_constant (GET_MODE (tem), tem, -7);
          tem = gen_rtx_MINUS (GET_MODE (tem),
                               tem,
                               gen_rtx_SYMBOL_REF (Pmode,