summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-20 20:40:57 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-20 20:40:57 +0000
commit21650cc994a43fac762639a8db5a9fbc4cf97176 (patch)
tree83f8133b6228547ef015add3e1f4b7b5346a972f /gcc
parent9bdcc1e551e8e1d66c83e6849a590e884003772b (diff)
downloadppe42-gcc-21650cc994a43fac762639a8db5a9fbc4cf97176.tar.gz
ppe42-gcc-21650cc994a43fac762639a8db5a9fbc4cf97176.zip
* config/h8300/h8300.c (dosize): Remove warnings.
(print_operand): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.c26
2 files changed, 18 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 19fee5850f1..1fd0beb6492 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-20 Kazu Hirata <kazu@cs.umass.edu>
+
+ * config/h8300/h8300.c (dosize): Remove warnings.
+ (print_operand): Likewise.
+
2002-12-20 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (decl_has_samegp): New.
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index a01db55a4c9..2d372dd8526 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -413,7 +413,7 @@ dosize (file, sign, size)
&& sign < 0))
{
const char *op = (sign > 0) ? "add" : "sub";
- unsigned HOST_WIDE_INT amount;
+ unsigned int amount;
/* Try different amounts in descending order. */
for (amount = (TARGET_H8300H || TARGET_H8300S) ? 4 : 2;
@@ -1303,7 +1303,7 @@ print_operand (file, x, code)
fprintf (file, "%sl", names_big[REGNO (x)]);
break;
case CONST_INT:
- fprintf (file, "#%d", (-INTVAL (x)) & 0xff);
+ fprintf (file, "#%ld", (-INTVAL (x)) & 0xff);
break;
default:
abort ();
@@ -1316,7 +1316,7 @@ print_operand (file, x, code)
fprintf (file, "%sh", names_big[REGNO (x)]);
break;
case CONST_INT:
- fprintf (file, "#%d", ((-INTVAL (x)) & 0xff00) >> 8);
+ fprintf (file, "#%ld", ((-INTVAL (x)) & 0xff00) >> 8);
break;
default:
abort ();
@@ -1325,7 +1325,7 @@ print_operand (file, x, code)
case 'G':
if (GET_CODE (x) != CONST_INT)
abort ();
- fprintf (file, "#%d", 0xff & (-INTVAL (x)));
+ fprintf (file, "#%ld", 0xff & (-INTVAL (x)));
break;
case 'S':
if (GET_CODE (x) == REG)
@@ -1400,7 +1400,7 @@ print_operand (file, x, code)
print_operand (file, x, 0);
break;
case CONST_INT:
- fprintf (file, "#%d", ((INTVAL (x) >> 16) & 0xffff));
+ fprintf (file, "#%ld", ((INTVAL (x) >> 16) & 0xffff));
break;
case CONST_DOUBLE:
{
@@ -1430,7 +1430,7 @@ print_operand (file, x, code)
print_operand (file, x, 0);
break;
case CONST_INT:
- fprintf (file, "#%d", INTVAL (x) & 0xffff);
+ fprintf (file, "#%ld", INTVAL (x) & 0xffff);
break;
case CONST_DOUBLE:
{
@@ -1453,44 +1453,44 @@ print_operand (file, x, code)
break;
case 's':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", (INTVAL (x)) & 0xff);
+ fprintf (file, "#%ld", (INTVAL (x)) & 0xff);
else
fprintf (file, "%s", byte_reg (x, 0));
break;
case 't':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", (INTVAL (x) >> 8) & 0xff);
+ fprintf (file, "#%ld", (INTVAL (x) >> 8) & 0xff);
else
fprintf (file, "%s", byte_reg (x, 1));
break;
case 'u':
if (GET_CODE (x) != CONST_INT)
abort ();
- fprintf (file, "%d", INTVAL (x));
+ fprintf (file, "%ld", INTVAL (x));
break;
case 'w':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", INTVAL (x) & 0xff);
+ fprintf (file, "#%ld", INTVAL (x) & 0xff);
else
fprintf (file, "%s",
byte_reg (x, TARGET_H8300 ? 2 : 0));
break;
case 'x':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", (INTVAL (x) >> 8) & 0xff);
+ fprintf (file, "#%ld", (INTVAL (x) >> 8) & 0xff);
else
fprintf (file, "%s",
byte_reg (x, TARGET_H8300 ? 3 : 1));
break;
case 'y':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", (INTVAL (x) >> 16) & 0xff);
+ fprintf (file, "#%ld", (INTVAL (x) >> 16) & 0xff);
else
fprintf (file, "%s", byte_reg (x, 0));
break;
case 'z':
if (GET_CODE (x) == CONST_INT)
- fprintf (file, "#%d", (INTVAL (x) >> 24) & 0xff);
+ fprintf (file, "#%ld", (INTVAL (x) >> 24) & 0xff);
else
fprintf (file, "%s", byte_reg (x, 1));
break;
OpenPOWER on IntegriCloud