aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2002-12-20 20:40:57 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-12-20 20:40:57 +0000
commitb47900aa0b511c57af99f2a7c88063e108b46dbc (patch)
tree83f8133b6228547ef015add3e1f4b7b5346a972f /gcc
parent3094247fd2404373d9bd706ede23ecef45d60b84 (diff)
downloadgcc-b47900aa0b511c57af99f2a7c88063e108b46dbc.zip
gcc-b47900aa0b511c57af99f2a7c88063e108b46dbc.tar.gz
gcc-b47900aa0b511c57af99f2a7c88063e108b46dbc.tar.bz2
h8300.c (dosize): Remove warnings.
* config/h8300/h8300.c (dosize): Remove warnings. (print_operand): Likewise. From-SVN: r60374
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 19fee58..1fd0beb 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 a01db55..2d372dd 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;