[tree-ssa, obvious] Silence uninitialized warnings
Jan Hubicka
jh@suse.cz
Thu Dec 18 01:17:00 GMT 2003
Hi,
the attached patch silence uninitialized warnings produced by
bootstrapping with -O3. Also bootstrapped/regtested with -O2
and committed as obvious.
Honza
2003-12-18 Jan Hubicka <jh@suse.cz>
* c-common.c (handle_nonnull_attribute, check_function_nonnull):
Initialize arg_num.
* c-format.c (handle_format_attribute): Initialize format_num.
* rtlanal.c (get_related_value): Initialize get_jump_table_offset
Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.344.2.55
diff -c -3 -p -r1.344.2.55 c-common.c
*** c-common.c 10 Dec 2003 21:43:50 -0000 1.344.2.55
--- c-common.c 18 Dec 2003 00:55:52 -0000
*************** handle_nonnull_attribute (tree *node, tr
*** 5492,5498 ****
for (attr_arg_num = 1; args; args = TREE_CHAIN (args))
{
tree argument;
! unsigned HOST_WIDE_INT arg_num, ck_num;
if (! get_nonnull_operand (TREE_VALUE (args), &arg_num))
{
--- 5492,5498 ----
for (attr_arg_num = 1; args; args = TREE_CHAIN (args))
{
tree argument;
! unsigned HOST_WIDE_INT arg_num = 0, ck_num;
if (! get_nonnull_operand (TREE_VALUE (args), &arg_num))
{
*************** check_function_nonnull (tree attrs, tree
*** 5574,5580 ****
static bool
nonnull_check_p (tree args, unsigned HOST_WIDE_INT param_num)
{
! unsigned HOST_WIDE_INT arg_num;
for (; args; args = TREE_CHAIN (args))
{
--- 5574,5580 ----
static bool
nonnull_check_p (tree args, unsigned HOST_WIDE_INT param_num)
{
! unsigned HOST_WIDE_INT arg_num = 0;
for (; args; args = TREE_CHAIN (args))
{
Index: c-format.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-format.c,v
retrieving revision 1.24.2.12
diff -c -3 -p -r1.24.2.12 c-format.c
*** c-format.c 13 Nov 2003 02:37:35 -0000 1.24.2.12
--- c-format.c 18 Dec 2003 00:55:52 -0000
*************** handle_format_arg_attribute (tree *node,
*** 86,92 ****
{
tree type = *node;
tree format_num_expr = TREE_VALUE (args);
! unsigned HOST_WIDE_INT format_num;
tree argument;
if (!get_constant (format_num_expr, &format_num, 0))
--- 86,92 ----
{
tree type = *node;
tree format_num_expr = TREE_VALUE (args);
! unsigned HOST_WIDE_INT format_num = 0;
tree argument;
if (!get_constant (format_num_expr, &format_num, 0))
Index: rtlanal.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtlanal.c,v
retrieving revision 1.135.2.17
diff -c -3 -p -r1.135.2.17 rtlanal.c
*** rtlanal.c 9 Nov 2003 09:51:14 -0000 1.135.2.17
--- rtlanal.c 18 Dec 2003 00:55:52 -0000
*************** get_related_value (rtx x)
*** 445,452 ****
rtx
get_jump_table_offset (rtx insn, rtx *earliest)
{
! rtx label;
! rtx table;
rtx set;
rtx old_insn;
rtx x;
--- 445,452 ----
rtx
get_jump_table_offset (rtx insn, rtx *earliest)
{
! rtx label = NULL;
! rtx table = NULL;
rtx set;
rtx old_insn;
rtx x;
More information about the Gcc-patches
mailing list