arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned warning.

* arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
	warning.
	* emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
	init_emit_once): Likewise.
	* flow.c (mark_regs_live_at_end, calculate_global_regs_live):
	Likewise.
	* function.c (assign_stack_temp_for_type): Likewise.
	* loop.c (loop_invariant_p): Likewise.
	* recog.c (push_operand): Likewise.
	* regclass.c (init_reg_sets_1): Likewise.
	* reload.c (update_auto_inc_notes): Likewise.
	* reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
	* stmt.c (expand_asm_operands): Likewise.
	* stor-layout.c (start_record_layout): Likewise.

cp:
	* class.c (layout_virtual_bases): Avoid signed/unsigned warning.

java:
	* jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned
	warning.

From-SVN: r61389
This commit is contained in:
Kaveh R. Ghazi 2003-01-16 15:13:33 +00:00 committed by Kaveh Ghazi
parent faca036b47
commit fc55537052
16 changed files with 44 additions and 18 deletions

View File

@ -1,3 +1,20 @@
2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
warning.
* emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
init_emit_once): Likewise.
* flow.c (mark_regs_live_at_end, calculate_global_regs_live):
Likewise.
* function.c (assign_stack_temp_for_type): Likewise.
* loop.c (loop_invariant_p): Likewise.
* recog.c (push_operand): Likewise.
* regclass.c (init_reg_sets_1): Likewise.
* reload.c (update_auto_inc_notes): Likewise.
* reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
* stmt.c (expand_asm_operands): Likewise.
* stor-layout.c (start_record_layout): Likewise.
2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
* config/c4x/c4x.md (epilogue): Correct last patch.

View File

@ -818,7 +818,7 @@ extern const char * structure_size_string;
regno <= LAST_ARM_FP_REGNUM; ++regno) \
fixed_regs[regno] = call_used_regs[regno] = 1; \
} \
if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM) \
if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM) \
{ \
fixed_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \
call_used_regs[PIC_OFFSET_TABLE_REGNUM] = 1; \

View File

@ -1,3 +1,7 @@
2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* class.c (layout_virtual_bases): Avoid signed/unsigned warning.
2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* decl2.c (check_classfn): Fix uninitialized warning.

View File

@ -4841,7 +4841,7 @@ layout_virtual_bases (record_layout_info rli, splay_tree offsets)
#ifdef STRUCTURE_SIZE_BOUNDARY
/* Packed structures don't need to have minimum size. */
if (! TYPE_PACKED (t))
TYPE_ALIGN (t) = MAX (TYPE_ALIGN (t), STRUCTURE_SIZE_BOUNDARY);
TYPE_ALIGN (t) = MAX (TYPE_ALIGN (t), (unsigned) STRUCTURE_SIZE_BOUNDARY);
#endif
rli->offset = TYPE_SIZE_UNIT (t);
rli->bitpos = bitsize_zero_node;

View File

@ -533,7 +533,7 @@ gen_rtx_REG (mode, regno)
if (regno == RETURN_ADDRESS_POINTER_REGNUM)
return return_address_pointer_rtx;
#endif
if (regno == PIC_OFFSET_TABLE_REGNUM
if (regno == (unsigned) PIC_OFFSET_TABLE_REGNUM
&& fixed_regs[PIC_OFFSET_TABLE_REGNUM])
return pic_offset_table_rtx;
if (regno == STACK_POINTER_REGNUM)
@ -1849,7 +1849,7 @@ set_mem_attributes_minus_bitpos (ref, t, objectp, bitpos)
HOST_WIDE_INT ioff = tree_low_cst (off_tree, 1);
HOST_WIDE_INT aoff = (ioff & -ioff) * BITS_PER_UNIT;
align = DECL_ALIGN (t);
if (aoff && aoff < align)
if (aoff && (unsigned HOST_WIDE_INT) aoff < align)
align = aoff;
offset = GEN_INT (ioff);
apply_bitpos = bitpos;
@ -5493,7 +5493,7 @@ init_emit_once (line_numbers)
#endif
#endif
if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM)
pic_offset_table_rtx = gen_raw_REG (Pmode, PIC_OFFSET_TABLE_REGNUM);
}

View File

@ -1005,7 +1005,7 @@ mark_regs_live_at_end (set)
/* Many architectures have a GP register even without flag_pic.
Assume the pic register is not in use, or will be handled by
other means, if it is not fixed. */
if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
&& fixed_regs[PIC_OFFSET_TABLE_REGNUM])
SET_REGNO_REG_SET (set, PIC_OFFSET_TABLE_REGNUM);
#endif
@ -1234,7 +1234,7 @@ calculate_global_regs_live (blocks_in, blocks_out, flags)
/* Any constant, or pseudo with constant equivalences, may
require reloading from memory using the pic register. */
if (PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
if ((unsigned) PIC_OFFSET_TABLE_REGNUM != INVALID_REGNUM
&& fixed_regs[PIC_OFFSET_TABLE_REGNUM])
SET_REGNO_REG_SET (new_live_at_end, PIC_OFFSET_TABLE_REGNUM);
}

View File

@ -733,7 +733,7 @@ assign_stack_temp_for_type (mode, size, keep, type)
abort ();
p->slot = assign_stack_local (mode,
(mode == BLKmode
? CEIL_ROUND (size, align / BITS_PER_UNIT)
? CEIL_ROUND (size, (int) align / BITS_PER_UNIT)
: size),
align);

View File

@ -1,3 +1,8 @@
2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned
warning.
2003-01-14 Tom Tromey <tromey@redhat.com>
* class.c (make_class_data): Check that super is compiled before

View File

@ -1692,7 +1692,7 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state)
something like Integer.MIN_VALUE. That is why delta is
unsigned. */
delta = sw_state.max_case - sw_state.min_case;
if (2 * sw_state.num_cases >= delta)
if (2 * (unsigned) sw_state.num_cases >= delta)
{ /* Use tableswitch. */
int index = 0;
RESERVE (13 + 4 * (sw_state.max_case - sw_state.min_case + 1));

View File

@ -3269,7 +3269,7 @@ loop_invariant_p (loop, x)
These have always been created by the unroller and are set in
the loop, hence are never invariant. */
if (REGNO (x) >= regs->num)
if (REGNO (x) >= (unsigned) regs->num)
return 0;
if (regs->array[REGNO (x)].set_in_loop < 0)

View File

@ -1316,7 +1316,7 @@ push_operand (op, mode)
#ifdef STACK_GROWS_DOWNWARD
|| INTVAL (XEXP (XEXP (op, 1), 1)) != - (int) rounded_size
#else
|| INTVAL (XEXP (XEXP (op, 1), 1)) != rounded_size
|| INTVAL (XEXP (XEXP (op, 1), 1)) != (int) rounded_size
#endif
)
return 0;

View File

@ -459,7 +459,7 @@ init_reg_sets_1 ()
;
#endif
#ifndef PIC_OFFSET_TABLE_REG_CALL_CLOBBERED
else if (i == PIC_OFFSET_TABLE_REGNUM && fixed_regs[i])
else if (i == (unsigned) PIC_OFFSET_TABLE_REGNUM && fixed_regs[i])
;
#endif
else if (0

View File

@ -5176,7 +5176,7 @@ update_auto_inc_notes (insn, regno, reloadnum)
for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
if (REG_NOTE_KIND (link) == REG_INC
&& REGNO (XEXP (link, 0)) == regno)
&& (int) REGNO (XEXP (link, 0)) == regno)
push_replacement (&XEXP (link, 0), reloadnum, VOIDmode);
#endif
}

View File

@ -3984,7 +3984,7 @@ reload_as_needed (live_known)
REGNO (rld[i].reg_rtx))
/* Make sure it is the inc/dec pseudo, and not
some other (e.g. output operand) pseudo. */
&& (reg_reloaded_contents[REGNO (rld[i].reg_rtx)]
&& ((unsigned) reg_reloaded_contents[REGNO (rld[i].reg_rtx)]
== REGNO (XEXP (in_reg, 0))))
{
@ -4051,7 +4051,7 @@ reload_as_needed (live_known)
REGNO (rld[i].reg_rtx))
/* Make sure it is the inc/dec pseudo, and not
some other (e.g. output operand) pseudo. */
&& (reg_reloaded_contents[REGNO (rld[i].reg_rtx)]
&& ((unsigned) reg_reloaded_contents[REGNO (rld[i].reg_rtx)]
== REGNO (XEXP (in_reg, 0))))
{
SET_HARD_REG_BIT (reg_is_output_reload,
@ -6260,7 +6260,7 @@ emit_input_reload_insns (chain, rl, old, j)
or memory. */
if (oldequiv != 0
&& ((REGNO_REG_CLASS (regno) != rl->class
&& (((enum reg_class) REGNO_REG_CLASS (regno) != rl->class
&& (REGISTER_MOVE_COST (mode, REGNO_REG_CLASS (regno),
rl->class)
>= MEMORY_MOVE_COST (mode, rl->class, 1)))

View File

@ -1526,7 +1526,7 @@ expand_asm_operands (string, outputs, inputs, clobbers, vol, filename, line)
if (i >= 0)
{
/* Clobbering the PIC register is an error */
if ((unsigned) i == PIC_OFFSET_TABLE_REGNUM)
if (i == (int) PIC_OFFSET_TABLE_REGNUM)
{
error ("PIC register `%s' clobbered in `asm'", regname);
return;

View File

@ -509,7 +509,7 @@ start_record_layout (t)
#ifdef STRUCTURE_SIZE_BOUNDARY
/* Packed structures don't need to have minimum size. */
if (! TYPE_PACKED (t))
rli->record_align = MAX (rli->record_align, STRUCTURE_SIZE_BOUNDARY);
rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY);
#endif
rli->offset = size_zero_node;