pdp11: Fix signednedd warnings, remove "register" keywords

gcc/ChangeLog:
	* config/pdp11/pdp11.h (ASM_OUTPUT_SKIP): Fix signedness warning.
	* config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Remove
	"register" keyword.
	(pdp11_initial_elimination_offset) Remove unused variable.
	(pdp11_cmp_length) Ditto.
	(pdp11_insn_cost): Ditto, and fix signedness warning.
This commit is contained in:
Jan-Benedict Glaw 2021-06-29 09:23:07 +02:00
parent 095a01cf6e
commit dc6866b033
2 changed files with 18 additions and 19 deletions

View File

@ -829,9 +829,9 @@ pdp11_asm_print_operand_punct_valid_p (unsigned char c)
}
void
print_operand_address (FILE *file, register rtx addr)
print_operand_address (FILE *file, rtx addr)
{
register rtx breg;
rtx breg;
rtx offset;
int again = 0;
@ -1160,10 +1160,9 @@ pdp11_addr_cost (rtx addr, machine_mode mode, addr_space_t as ATTRIBUTE_UNUSED,
static int
pdp11_insn_cost (rtx_insn *insn, bool speed)
{
int base_cost, i;
int base_cost;
rtx pat, set, dest, src, src2;
machine_mode mode;
const char *fmt;
enum rtx_code op;
if (recog_memoized (insn) < 0)
@ -1479,7 +1478,7 @@ pushpop_regeq (rtx op, int regno)
case POST_INC:
case PRE_MODIFY:
case POST_MODIFY:
return REGNO (XEXP (addr, 0)) == regno;
return REGNO (XEXP (addr, 0)) == (unsigned) regno;
default:
return FALSE;
}
@ -1771,7 +1770,6 @@ int
pdp11_initial_elimination_offset (int from, int to)
{
/* Get the size of the register save area. */
int spoff;
if (from == FRAME_POINTER_REGNUM && to == STACK_POINTER_REGNUM)
return get_frame_size ();
@ -2106,7 +2104,6 @@ pdp11_cmp_length (rtx *operands, int words)
{
rtx inops[2];
rtx exops[4][2];
rtx lb[1];
int i, len = 0;
if (!reload_completed)

View File

@ -618,10 +618,12 @@ extern int current_first_parm_offset;
fprintf (FILE, "\t.even\n")
#define ASM_OUTPUT_SKIP(FILE,SIZE) \
if (TARGET_DEC_ASM) \
fprintf (FILE, "\t.blkb\t%o\n", (SIZE) & 0xffff); \
else \
fprintf (FILE, "\t.=.+ %#o\n", (SIZE) & 0xffff);
do { \
if (TARGET_DEC_ASM) \
fprintf (FILE, "\t.blkb\t%o\n", (int) ((SIZE) & 0xffff)); \
else \
fprintf (FILE, "\t.=.+ %#o\n", (int) ((SIZE) & 0xffff)); \
} while (0)
/* This says how to output an assembler line
to define a global common symbol. */