Commit 6d5f49b2 by Richard Henderson Committed by Richard Henderson

m68k.c: Include expr.h and reload.h.

        * config/m68k/m68k.c: Include expr.h and reload.h.
        (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
        [general int]: Use HOST_WIDE_INT_PRINT_DEC.

From-SVN: r44065
parent 0021de69
2001-07-16 Richard Henderson <rth@redhat.com>
* config/m68k/m68k.c: Include expr.h and reload.h.
(print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
[general int]: Use HOST_WIDE_INT_PRINT_DEC.
2001-07-16 Daniel Berlin <dan@cgsoftware.com> 2001-07-16 Daniel Berlin <dan@cgsoftware.com>
Richard Henderson <rth@redhat.com> Richard Henderson <rth@redhat.com>
......
...@@ -33,6 +33,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -33,6 +33,8 @@ Boston, MA 02111-1307, USA. */
#include "insn-attr.h" #include "insn-attr.h"
#include "recog.h" #include "recog.h"
#include "toplev.h" #include "toplev.h"
#include "expr.h"
#include "reload.h"
#include "tm_p.h" #include "tm_p.h"
#include "target.h" #include "target.h"
#include "target-def.h" #include "target-def.h"
...@@ -3828,23 +3830,17 @@ print_operand_address (file, addr) ...@@ -3828,23 +3830,17 @@ print_operand_address (file, addr)
#ifdef MOTOROLA #ifdef MOTOROLA
#ifdef SGS #ifdef SGS
/* Many SGS assemblers croak on size specifiers for constants. */ /* Many SGS assemblers croak on size specifiers for constants. */
fprintf (file, "%d", INTVAL (addr)); fprintf (file, "%d", (int) INTVAL (addr));
#else #else
fprintf (file, "%d.w", INTVAL (addr)); fprintf (file, "%d.w", (int) INTVAL (addr));
#endif #endif
#else #else
fprintf (file, "%d:w", INTVAL (addr)); fprintf (file, "%d:w", (int) INTVAL (addr));
#endif #endif
} }
else if (GET_CODE (addr) == CONST_INT) else if (GET_CODE (addr) == CONST_INT)
{ {
fprintf (file, fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (addr));
#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
"%d",
#else
"%ld",
#endif
INTVAL (addr));
} }
else if (TARGET_PCREL) else if (TARGET_PCREL)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment