Hello all,

Sorry for my last patch that cause some test regressions. I have correct it, and it has been tested for arm-none-eabi on the model.

This patch will replace all explicit calls to gen_rtx_PLUS and GEN_INT with plus_constant.

OK for trunk?

Kind regards,
Renlin Li

gcc/ChangeLog:

2013-09-30  Renlin Li  <renlin...@arm.com>

    * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 2166001..256de81 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -25352,7 +25352,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,

Reply via email to