From 2bc43588affbcf4370c8f82e8797618e37dbe90d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sat, 6 Jun 2015 01:15:16 -0400 Subject: [PATCH] msp430.c (msp430_asm_integer): Support addition and subtraction too. * config/msp430/msp430.c (msp430_asm_integer): Support addition and subtraction too. From-SVN: r224182 --- gcc/ChangeLog | 5 +++++ gcc/config/msp430/msp430.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c388eb5db7c..faaf7b22837 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-06 DJ Delorie + + * config/msp430/msp430.c (msp430_asm_integer): Support addition + and subtraction too. + 2015-06-05 Kaz Kojima PR target/66410 diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index 1c18047807d..0fc7d50d810 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -976,7 +976,8 @@ msp430_asm_integer (rtx x, unsigned int size, int aligned_p) switch (size) { case 4: - if (c == SYMBOL_REF || c == CONST || c == LABEL_REF || c == CONST_INT) + if (c == SYMBOL_REF || c == CONST || c == LABEL_REF || c == CONST_INT + || c == PLUS || c == MINUS) { fprintf (asm_out_file, "\t.long\t"); output_addr_const (asm_out_file, x); -- 2.30.2