From 710af8993d78c5d2989f0e2f3a7f46257aef0259 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sun, 2 Dec 2001 13:43:10 +0000 Subject: [PATCH] cfgrtl.c (purge_all_dead_edges): Initialize variable. * cfgrtl.c (purge_all_dead_edges): Initialize variable. * dwarf2out.c (is_cxx): Prototype. * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true' warning. * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning. From-SVN: r47528 --- gcc/ChangeLog | 8 ++++++++ gcc/cfgrtl.c | 2 +- gcc/dwarf2out.c | 1 + gcc/local-alloc.c | 4 ++-- gcc/objc/objc-act.c | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4d195ac91e..2a42e6a2db0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2001-12-02 Kaveh R. Ghazi + + * cfgrtl.c (purge_all_dead_edges): Initialize variable. + * dwarf2out.c (is_cxx): Prototype. + * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true' + warning. + * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning. + Sun Dec 2 07:12:30 2001 Richard Kenner * libgcc2.c (__bb_exit_func): Fix line wrap problems. diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 66dd7ffcf2a..f313d6ab822 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1944,7 +1944,7 @@ purge_all_dead_edges (update_life_p) int update_life_p; { int i, purged = false; - sbitmap blocks; + sbitmap blocks = 0; if (update_life_p) { diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 557730dc892..7d2ea7b8347 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3459,6 +3459,7 @@ static unsigned get_AT_unsigned PARAMS ((dw_die_ref, static inline dw_die_ref get_AT_ref PARAMS ((dw_die_ref, enum dwarf_attribute)); static int is_c_family PARAMS ((void)); +static int is_cxx PARAMS ((void)); static int is_java PARAMS ((void)); static int is_fortran PARAMS ((void)); static void remove_AT PARAMS ((dw_die_ref, diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 43f74bca175..e66761f3c7a 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1347,8 +1347,8 @@ block_alloc (b) if (hard_reg != NULL_RTX) { if (GET_CODE (hard_reg) == REG - && REGNO (hard_reg) >= 0 - && REGNO (hard_reg) < FIRST_PSEUDO_REGISTER + && IN_RANGE (REGNO (hard_reg), + 0, FIRST_PSEUDO_REGISTER - 1) && ! call_used_regs[REGNO (hard_reg)]) continue; } diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index c001a5d94a0..ff449c756f1 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -631,7 +631,7 @@ defer_fn (fn) void finish_file () { - int i; + size_t i; for (i = 0; i < VARRAY_ACTIVE_SIZE (deferred_fns); i++) /* Don't output the same function twice. We may run into such -- 2.30.2