aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2024-01-10 13:46:22 +0000
committerTamar Christina <tamar.christina@arm.com>2024-01-10 13:46:40 +0000
commitf8a70fb21767883f6d3c13e22be8d307dd98f342 (patch)
treedc627ba99b6f4366706fe2b70fe7fbfc90e18b5b /gcc
parentbe2bf5dc93ca1ec148c605a5f25b3f7a3028bf3d (diff)
downloadgcc-f8a70fb21767883f6d3c13e22be8d307dd98f342.zip
gcc-f8a70fb21767883f6d3c13e22be8d307dd98f342.tar.gz
gcc-f8a70fb21767883f6d3c13e22be8d307dd98f342.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc
index d71522d..8ab98cc 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;