[gcc r14-7107] c++ frontend: initialize ivdep value
Tamar Christina
tnfchris@gcc.gnu.org
Wed Jan 10 13:47:04 GMT 2024
https://gcc.gnu.org/g:f8a70fb21767883f6d3c13e22be8d307dd98f342
commit r14-7107-gf8a70fb21767883f6d3c13e22be8d307dd98f342
Author: Tamar Christina <tamar.christina@arm.com>
Date: Wed Jan 10 13:46:22 2024 +0000
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:
---
gcc/cp/parser.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc
index d71522dcd74..8ab98cc0c23 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;
More information about the Gcc-cvs
mailing list