aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-07-16 23:54:45 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-07-16 23:54:45 -0700
commit6d5f49b2f498c67dab768689c5c8c9451b7b5d44 (patch)
tree4c57fc5459fa32c64720b9d38a042d4462f834e4
parent0021de69a61e2562e356284718444c1182d1f942 (diff)
downloadgcc-6d5f49b2f498c67dab768689c5c8c9451b7b5d44.zip
gcc-6d5f49b2f498c67dab768689c5c8c9451b7b5d44.tar.gz
gcc-6d5f49b2f498c67dab768689c5c8c9451b7b5d44.tar.bz2
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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/m68k/m68k.c16
2 files changed, 12 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 439e841..c704023 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index ffe7ed9..54e4d37 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -33,6 +33,8 @@ Boston, MA 02111-1307, USA. */
#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"
@@ -3828,23 +3830,17 @@ print_operand_address (file, addr)
#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)
{