From: DJ Delorie Date: Sat, 6 Jun 2015 05:15:16 +0000 (-0400) Subject: msp430.c (msp430_asm_integer): Support addition and subtraction too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bc43588affbcf4370c8f82e8797618e37dbe90d;p=gcc.git 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 --- 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);