From f75e1f1ee358b9beae2ec796930280fdd47a4eae Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Mon, 6 Jun 2011 13:24:39 +0000 Subject: [PATCH] re PR bootstrap/49270 (make BOOT_CFLAGS="-g -O3" CFLAGS_FOR_TARGET="-g -O3" CXXFLAGS_FOR_TARGET="-g -O3" failure) PR bootstrap/49270 * ipa-inline-analysis.c (read_predicate): Initialize all clauses. From-SVN: r174697 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline-analysis.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f01f25faf0..e635fe0a400 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-06 Alexandre Oliva + + PR bootstrap/49270 + * ipa-inline-analysis.c (read_predicate): Initialize all clauses. + 2011-06-06 Mikael Pettersson PR tree-optimization/49243 diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index ccda67de462..ad935440f68 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -2301,6 +2301,11 @@ read_predicate (struct lto_input_block *ib) clause = out.clause[k++] = lto_input_uleb128 (ib); } while (clause); + + /* Zero-initialize the remaining clauses in OUT. */ + while (k <= MAX_CLAUSES) + out.clause[k++] = 0; + return out; } -- 2.30.2