aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2023-12-25 10:58:40 +0000
committerTamar Christina <tamar.christina@arm.com>2023-12-25 10:58:40 +0000
commitfd032cce216e003d58b2394f7e61b03dee27e81a (patch)
tree42c1bea6362f625124bf42ff4927a4da577ad921 /gcc
parent1bbb169fe6f91451a2754f0b86301551db76ceba (diff)
downloadgcc-fd032cce216e003d58b2394f7e61b03dee27e81a.zip
gcc-fd032cce216e003d58b2394f7e61b03dee27e81a.tar.gz
gcc-fd032cce216e003d58b2394f7e61b03dee27e81a.tar.bz2
middle-end: explicitly initialize vec_stmts [PR113132]
when configured with --enable-checking=release we get a false positive on the use of vec_stmts as the compiler seems unable to notice it gets initialized through the pass-by-reference. This explicitly initializes the local. gcc/ChangeLog: PR bootstrap/113132 * tree-vect-loop.cc (vect_create_epilog_for_reduction): Initialize vec_stmts;
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vect-loop.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 88261a3..f51ae3e 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo,
exit_bb = loop_exit->dest;
exit_gsi = gsi_after_labels (exit_bb);
reduc_inputs.create (slp_node ? vec_num : ncopies);
- vec <gimple *> vec_stmts;
+ vec <gimple *> vec_stmts = vNULL;
for (unsigned i = 0; i < vec_num; i++)
{
gimple_seq stmts = NULL;