From: Tamar Christina Date: Wed, 10 Jan 2024 13:46:22 +0000 (+0000) Subject: c++ frontend: initialize ivdep value X-Git-Tag: basepoints/gcc-15~3032 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a70fb21767883f6d3c13e22be8d307dd98f342;p=thirdparty%2Fgcc.git c++ frontend: initialize ivdep value Should control enter the switch from one of the cases other than the IVDEP one then the variable remains uninitialized. This fixes it by initializing it to false. gcc/cp/ChangeLog: * parser.cc (cp_parser_pragma): Initialize to false. --- diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index d71522dcd74d..8ab98cc0c231 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -50971,7 +50971,7 @@ cp_parser_pragma (cp_parser *parser, enum pragma_context context, bool *if_p) case PRAGMA_UNROLL: case PRAGMA_NOVECTOR: { - bool ivdep; + bool ivdep = false; tree unroll = NULL_TREE; bool novector = false; const char *pragma_str;