* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
@ 2004-08-03 20:44 ` pinskia at gcc dot gnu dot org
2004-08-03 21:13 ` cvs-commit at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03 20:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-03 20:44 -------
Confirmed and the reason why it does not trigger at -O2 is because altered_reg_used does not get
inlined so the variable is consided to take the address of so we cannot warn about that.
I will commit the obvious fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Keywords| |build
Last reconfirmed|0000-00-00 00:00:00 |2004-08-03 20:44:19
date| |
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
2004-08-03 20:44 ` [Bug bootstrap/16865] " pinskia at gcc dot gnu dot org
@ 2004-08-03 21:13 ` cvs-commit at gcc dot gnu dot org
2004-08-03 21:13 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-03 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-03 21:13 -------
Subject: Bug 16865
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-08-03 21:13:15
Modified files:
gcc : ChangeLog loop-iv.c
Log message:
2004-08-03 Andrew Pinski <apinski@apple.com>
PR bootstrap/16865
* loop-iv.c (simplify_using_assignment): Initialize lhs.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4784&r2=2.4785
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop-iv.c.diff?cvsroot=gcc&r1=2.13&r2=2.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
2004-08-03 20:44 ` [Bug bootstrap/16865] " pinskia at gcc dot gnu dot org
2004-08-03 21:13 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-03 21:13 ` pinskia at gcc dot gnu dot org
2004-08-03 21:49 ` v dot haisman at sh dot cvut dot cz
` (8 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03 21:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-03 21:13 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (2 preceding siblings ...)
2004-08-03 21:13 ` pinskia at gcc dot gnu dot org
@ 2004-08-03 21:49 ` v dot haisman at sh dot cvut dot cz
2004-08-03 22:00 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-08-03 21:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2004-08-03 21:49 -------
I posted the PR too early. There were some more:
../../srcdir/gcc/var-tracking.c:2500: warning: 'offset' may be used
uninitialized in this function
../../srcdir/gcc/var-tracking.c:2499: warning: 'decl' may be used uninitialized
in this function
../../srcdir/gcc/cp/parser.c:6742: warning: 'token2$type' may be used
uninitialized in this function
../../srcdir/gcc/cp/parser.c:6742: warning: 'token2$keyword' may be used
uninitialized in this function
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (3 preceding siblings ...)
2004-08-03 21:49 ` v dot haisman at sh dot cvut dot cz
@ 2004-08-03 22:00 ` pinskia at gcc dot gnu dot org
2004-08-19 9:03 ` v dot haisman at sh dot cvut dot cz
` (6 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-03 22:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-03 22:00 -------
The var-tracking ones look like a real bug in the compiler code (not in this var-tracking one though):
if (!vt_get_decl_and_offset (incoming, &decl, &offset))
if (!vt_get_decl_and_offset (decl_rtl, &decl, &offset))
continue;
Now the cp/parser one is really a true posiable use of the uninitialized variable.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (4 preceding siblings ...)
2004-08-03 22:00 ` pinskia at gcc dot gnu dot org
@ 2004-08-19 9:03 ` v dot haisman at sh dot cvut dot cz
2004-10-18 0:26 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: v dot haisman at sh dot cvut dot cz @ 2004-08-19 9:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From v dot haisman at sh dot cvut dot cz 2004-08-19 09:03 -------
Bootstrap of yesterday's CVS sources showed some more of these. Worked around
with patch bellow:
Index: gcc/tree-vectorizer.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-vectorizer.c,v
retrieving revision 2.2
diff -c -p -r2.2 tree-vectorizer.c
*** gcc/tree-vectorizer.c 19 Aug 2004 07:16:55 -0000 2.2
--- gcc/tree-vectorizer.c 19 Aug 2004 08:44:21 -0000
*************** vect_create_index_for_array_ref (tree st
*** 591,597 ****
loop_vec_info loop_info = loop->aux;
int vectorization_factor = LOOP_VINFO_VECT_FACTOR (loop_info);
tree vf;
! tree array_first_index;
tree indx_before_incr, indx_after_incr;
int loopnum = loop->num;
bool ok;
--- 591,597 ----
loop_vec_info loop_info = loop->aux;
int vectorization_factor = LOOP_VINFO_VECT_FACTOR (loop_info);
tree vf;
! tree array_first_index = NULL_TREE;
tree indx_before_incr, indx_after_incr;
int loopnum = loop->num;
bool ok;
*************** vect_compute_data_ref_alignment (struct
*** 2248,2254 ****
tree init;
tree scalar_type;
tree misalign;
! tree array_first_index;
tree array_base = DR_BASE_NAME (dr);
tree base_decl = NULL_TREE;
tree bit_offset = size_zero_node;
--- 2248,2254 ----
tree init;
tree scalar_type;
tree misalign;
! tree array_first_index = NULL_TREE;
tree array_base = DR_BASE_NAME (dr);
tree base_decl = NULL_TREE;
tree bit_offset = size_zero_node;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (5 preceding siblings ...)
2004-08-19 9:03 ` v dot haisman at sh dot cvut dot cz
@ 2004-10-18 0:26 ` pinskia at gcc dot gnu dot org
2005-01-23 13:33 ` steven at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-18 0:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-18 00:26 -------
Here is some more with --enable-intermodule which means a huge amount more inlining:
/Users/pinskia/src/local/gcc/gcc/cfgbuild.c: In function 'make_edges':
/Users/pinskia/src/local/gcc/gcc/cfgbuild.c:289: warning: 'tmp' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/jump.c: In function 'delete_related_insns':
/Users/pinskia/src/local/gcc/gcc/jump.c:1390: warning: 'lab_next' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c: In function 'cfg_layout_delete_block':
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:369: warning: 'tmp' may be used uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c: In function 'rtl_delete_block':
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:369: warning: 'tmp' may be used uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c: In function 'simplify_cond_and_lookup_avail_expr':
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c:1912: warning: 'cond_inverted' may be used
uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c:1911: warning: 'cond_low' may be used uninitialized
in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c:1911: warning: 'cond_high' may be used
uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c:2015: warning: 'tmp_low' may be used uninitialized
in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-dom.c:2015: warning: 'tmp_high' may be used uninitialized
in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-loop-ivopts.c: In function 'get_computation_at':
/Users/pinskia/src/local/gcc/gcc/tree-ssa-loop-ivopts.c:2158: warning: 'ratioi' may be used
uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/var-tracking.c: In function 'vt_initialize':
/Users/pinskia/src/local/gcc/gcc/var-tracking.c:2500: warning: 'decl' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/var-tracking.c:2501: warning: 'offset' may be used uninitialized in
this function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c: In function 'try_crossjump_to_edge':
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1358: warning: 'table1' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1357: warning: 'label1' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1358: warning: 'table2' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1357: warning: 'label2' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1572: warning: 'label1' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:1572: warning: 'label2' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c: In function 'redirect_branch_edge':
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:871: warning: 'tmp' may be used uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c: In function 'force_nonfallthru_and_redirect':
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:993: warning: 'note' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c: In function 'try_redirect_by_replacing_jump':
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:772: warning: 'table' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgrtl.c:772: warning: 'label' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c: In function 'try_optimize_cfg':
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:729: warning: 'table' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cfgcleanup.c:729: warning: 'label' may be used uninitialized in this
function
/Users/pinskia/src/local/gcc/gcc/cse.c: In function 'fold_rtx':
/Users/pinskia/src/local/gcc/gcc/cse.c:3224: warning: 'next' may be used uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/tree-ssa-loop-ivopts.c: In function 'get_computation_cost_at':
/Users/pinskia/src/local/gcc/gcc/tree-ssa-loop-ivopts.c:2802: warning: 'ratio' may be used
uninitialized in this function
/Users/pinskia/src/local/gcc/gcc/value-prof.c: In function 'rtl_value_profile_transformations':
/Users/pinskia/src/local/gcc/gcc/value-prof.c:929: warning: 'write' may be used uninitialized in this
function
Most of these come from inlining tablejump_p.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (6 preceding siblings ...)
2004-10-18 0:26 ` pinskia at gcc dot gnu dot org
@ 2005-01-23 13:33 ` steven at gcc dot gnu dot org
2005-01-23 15:26 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-01-23 13:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-01-23 13:33 -------
What is the status on this one?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (7 preceding siblings ...)
2005-01-23 13:33 ` steven at gcc dot gnu dot org
@ 2005-01-23 15:26 ` pinskia at gcc dot gnu dot org
2005-04-21 5:05 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-23 15:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-23 15:26 -------
Well it still happens.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Last reconfirmed|2005-01-17 00:32:43 |2005-01-23 15:26:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (8 preceding siblings ...)
2005-01-23 15:26 ` pinskia at gcc dot gnu dot org
@ 2005-04-21 5:05 ` mmitchel at gcc dot gnu dot org
2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:21 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-04-21 5:05 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (9 preceding siblings ...)
2005-04-21 5:05 ` mmitchel at gcc dot gnu dot org
@ 2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:21 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3
2004-08-03 20:31 [Bug bootstrap/16865] New: " v dot haisman at sh dot cvut dot cz
` (10 preceding siblings ...)
2005-07-08 1:45 ` mmitchel at gcc dot gnu dot org
@ 2005-09-27 18:21 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-27 18:21 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.2 |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16865
^ permalink raw reply [flat|nested] 15+ messages in thread