+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>
Richard Henderson <rth@redhat.com>
#include "insn-attr.h"
#include "recog.h"
#include "toplev.h"
+#include "expr.h"
+#include "reload.h"
#include "tm_p.h"
#include "target.h"
#include "target-def.h"
#ifdef MOTOROLA
#ifdef SGS
/* Many SGS assemblers croak on size specifiers for constants. */
- fprintf (file, "%d", INTVAL (addr));
+ fprintf (file, "%d", (int) INTVAL (addr));
#else
- fprintf (file, "%d.w", INTVAL (addr));
+ fprintf (file, "%d.w", (int) INTVAL (addr));
#endif
#else
- fprintf (file, "%d:w", INTVAL (addr));
+ fprintf (file, "%d:w", (int) INTVAL (addr));
#endif
}
else if (GET_CODE (addr) == CONST_INT)
{
- fprintf (file,
-#if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_INT
- "%d",
-#else
- "%ld",
-#endif
- INTVAL (addr));
+ fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (addr));
}
else if (TARGET_PCREL)
{