[Bug tree-optimization/110652] [14 Regression] bootstrap failure on tree-vect-stmts.cc with --enable-checking=release: error: 'new_temp' may be used uninitialized
linkw at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 14 06:04:06 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110652
Kewen Lin <linkw at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--- Comment #5 from Kewen Lin <linkw at gcc dot gnu.org> ---
I can reproduce this on cfarm x86 machine, the complained line is exactly the
one in comment #c4, I believe it's a false positive.
How do we work around this normally? Just initializing new_temp with NULL_TREE
as below?
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index c08d0ef951f..124caab5c1f 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -9297,7 +9297,7 @@ vectorizable_load (vec_info *vinfo,
class loop *containing_loop = gimple_bb (stmt_info->stmt)->loop_father;
bool nested_in_vect_loop = false;
tree elem_type;
- tree new_temp;
+ tree new_temp = NULL_TREE;
machine_mode mode;
tree dummy;
tree dataref_ptr = NULL_TREE;
More information about the Gcc-bugs
mailing list