aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-01-16 15:13:33 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-01-16 15:13:33 +0000
commitfc5553705286d244d9cb6b6447ddb93d0ed6e5fa (patch)
treeb6bfa10c09235d9c777bc65f4eb59e74ae0e4eec
parentfaca036b47943d855a9cba0a319680fcbcbf4988 (diff)
downloadgcc-fc5553705286d244d9cb6b6447ddb93d0ed6e5fa.zip
gcc-fc5553705286d244d9cb6b6447ddb93d0ed6e5fa.tar.gz
gcc-fc5553705286d244d9cb6b6447ddb93d0ed6e5fa.tar.bz2
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
-rw-r--r--gcc/ChangeLog17
-rw-r--r--gcc/config/arm/arm.h2
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/class.c2
-rw-r--r--gcc/emit-rtl.c6
-rw-r--r--gcc/flow.c4
-rw-r--r--gcc/function.c2
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-write.c2
-rw-r--r--gcc/loop.c2
-rw-r--r--gcc/recog.c2
-rw-r--r--gcc/regclass.c2
-rw-r--r--gcc/reload.c2
-rw-r--r--gcc/reload1.c6
-rw-r--r--gcc/stmt.c2
-rw-r--r--gcc/stor-layout.c2
16 files changed, 44 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 23c1afa..c31014b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h
index 14d4d6f..7349449 100644
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -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; \
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2f9d10b..826d736 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 6d492f9..40dad12 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -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;
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index eb1814a..bacbf03 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -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);
}
diff --git a/gcc/flow.c b/gcc/flow.c
index 0d31076..7046290 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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);
}
diff --git a/gcc/function.c b/gcc/function.c
index 1c972d2..d40801c 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -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);
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 73577ed..649a172 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -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
diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c
index fe00812..ebd842e 100644
--- a/gcc/java/jcf-write.c
+++ b/gcc/java/jcf-write.c
@@ -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));
diff --git a/gcc/loop.c b/gcc/loop.c
index b0ce7cd..8c3ddc7 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -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)
diff --git a/gcc/recog.c b/gcc/recog.c
index 6a20e86..d7618b9 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -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;
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 94744a3..4612f71 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -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
diff --git a/gcc/reload.c b/gcc/reload.c
index 5c0aabe..866cd25 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -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
}
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 979847d..d4d13aa 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -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)))
diff --git a/gcc/stmt.c b/gcc/stmt.c
index e2679a9..6f122c4 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -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;
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 70eecc0..f3f9b54 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -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;