[Bug bootstrap/16865] False alarm about use of uninitialized variable breaks bootstrap at -O3

v dot haisman at sh dot cvut dot cz gcc-bugzilla@gcc.gnu.org
Thu Aug 19 09:03:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list