Commit b47900aa by Kazu Hirata Committed by Kazu Hirata

h8300.c (dosize): Remove warnings.

	* config/h8300/h8300.c (dosize): Remove warnings.
	(print_operand): Likewise.

From-SVN: r60374
parent 3094247f
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> 2002-12-20 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (decl_has_samegp): New. * config/alpha/alpha.c (decl_has_samegp): New.
......
...@@ -413,7 +413,7 @@ dosize (file, sign, size) ...@@ -413,7 +413,7 @@ dosize (file, sign, size)
&& sign < 0)) && sign < 0))
{ {
const char *op = (sign > 0) ? "add" : "sub"; const char *op = (sign > 0) ? "add" : "sub";
unsigned HOST_WIDE_INT amount; unsigned int amount;
/* Try different amounts in descending order. */ /* Try different amounts in descending order. */
for (amount = (TARGET_H8300H || TARGET_H8300S) ? 4 : 2; for (amount = (TARGET_H8300H || TARGET_H8300S) ? 4 : 2;
...@@ -1303,7 +1303,7 @@ print_operand (file, x, code) ...@@ -1303,7 +1303,7 @@ print_operand (file, x, code)
fprintf (file, "%sl", names_big[REGNO (x)]); fprintf (file, "%sl", names_big[REGNO (x)]);
break; break;
case CONST_INT: case CONST_INT:
fprintf (file, "#%d", (-INTVAL (x)) & 0xff); fprintf (file, "#%ld", (-INTVAL (x)) & 0xff);
break; break;
default: default:
abort (); abort ();
...@@ -1316,7 +1316,7 @@ print_operand (file, x, code) ...@@ -1316,7 +1316,7 @@ print_operand (file, x, code)
fprintf (file, "%sh", names_big[REGNO (x)]); fprintf (file, "%sh", names_big[REGNO (x)]);
break; break;
case CONST_INT: case CONST_INT:
fprintf (file, "#%d", ((-INTVAL (x)) & 0xff00) >> 8); fprintf (file, "#%ld", ((-INTVAL (x)) & 0xff00) >> 8);
break; break;
default: default:
abort (); abort ();
...@@ -1325,7 +1325,7 @@ print_operand (file, x, code) ...@@ -1325,7 +1325,7 @@ print_operand (file, x, code)
case 'G': case 'G':
if (GET_CODE (x) != CONST_INT) if (GET_CODE (x) != CONST_INT)
abort (); abort ();
fprintf (file, "#%d", 0xff & (-INTVAL (x))); fprintf (file, "#%ld", 0xff & (-INTVAL (x)));
break; break;
case 'S': case 'S':
if (GET_CODE (x) == REG) if (GET_CODE (x) == REG)
...@@ -1400,7 +1400,7 @@ print_operand (file, x, code) ...@@ -1400,7 +1400,7 @@ print_operand (file, x, code)
print_operand (file, x, 0); print_operand (file, x, 0);
break; break;
case CONST_INT: case CONST_INT:
fprintf (file, "#%d", ((INTVAL (x) >> 16) & 0xffff)); fprintf (file, "#%ld", ((INTVAL (x) >> 16) & 0xffff));
break; break;
case CONST_DOUBLE: case CONST_DOUBLE:
{ {
...@@ -1430,7 +1430,7 @@ print_operand (file, x, code) ...@@ -1430,7 +1430,7 @@ print_operand (file, x, code)
print_operand (file, x, 0); print_operand (file, x, 0);
break; break;
case CONST_INT: case CONST_INT:
fprintf (file, "#%d", INTVAL (x) & 0xffff); fprintf (file, "#%ld", INTVAL (x) & 0xffff);
break; break;
case CONST_DOUBLE: case CONST_DOUBLE:
{ {
...@@ -1453,44 +1453,44 @@ print_operand (file, x, code) ...@@ -1453,44 +1453,44 @@ print_operand (file, x, code)
break; break;
case 's': case 's':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", (INTVAL (x)) & 0xff); fprintf (file, "#%ld", (INTVAL (x)) & 0xff);
else else
fprintf (file, "%s", byte_reg (x, 0)); fprintf (file, "%s", byte_reg (x, 0));
break; break;
case 't': case 't':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", (INTVAL (x) >> 8) & 0xff); fprintf (file, "#%ld", (INTVAL (x) >> 8) & 0xff);
else else
fprintf (file, "%s", byte_reg (x, 1)); fprintf (file, "%s", byte_reg (x, 1));
break; break;
case 'u': case 'u':
if (GET_CODE (x) != CONST_INT) if (GET_CODE (x) != CONST_INT)
abort (); abort ();
fprintf (file, "%d", INTVAL (x)); fprintf (file, "%ld", INTVAL (x));
break; break;
case 'w': case 'w':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", INTVAL (x) & 0xff); fprintf (file, "#%ld", INTVAL (x) & 0xff);
else else
fprintf (file, "%s", fprintf (file, "%s",
byte_reg (x, TARGET_H8300 ? 2 : 0)); byte_reg (x, TARGET_H8300 ? 2 : 0));
break; break;
case 'x': case 'x':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", (INTVAL (x) >> 8) & 0xff); fprintf (file, "#%ld", (INTVAL (x) >> 8) & 0xff);
else else
fprintf (file, "%s", fprintf (file, "%s",
byte_reg (x, TARGET_H8300 ? 3 : 1)); byte_reg (x, TARGET_H8300 ? 3 : 1));
break; break;
case 'y': case 'y':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", (INTVAL (x) >> 16) & 0xff); fprintf (file, "#%ld", (INTVAL (x) >> 16) & 0xff);
else else
fprintf (file, "%s", byte_reg (x, 0)); fprintf (file, "%s", byte_reg (x, 0));
break; break;
case 'z': case 'z':
if (GET_CODE (x) == CONST_INT) if (GET_CODE (x) == CONST_INT)
fprintf (file, "#%d", (INTVAL (x) >> 24) & 0xff); fprintf (file, "#%ld", (INTVAL (x) >> 24) & 0xff);
else else
fprintf (file, "%s", byte_reg (x, 1)); fprintf (file, "%s", byte_reg (x, 1));
break; break;
......
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