re PR bootstrap/49270 (make BOOT_CFLAGS="-g -O3" CFLAGS_FOR_TARGET="-g -O3" CXXFLAGS_...
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 6 Jun 2011 13:24:39 +0000 (13:24 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Mon, 6 Jun 2011 13:24:39 +0000 (13:24 +0000)
PR bootstrap/49270
* ipa-inline-analysis.c (read_predicate): Initialize all clauses.

From-SVN: r174697

gcc/ChangeLog
gcc/ipa-inline-analysis.c

index 3f01f25faf09d44bd7da695aca125931fed484db..e635fe0a400d63a3fb4f0ac21a57911cae737117 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR bootstrap/49270
+       * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
+
 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
 
        PR tree-optimization/49243
index ccda67de4627543675cf0960617d2ec31af3e7d1..ad935440f68ce609a3caf283810e505d447c56cd 100644 (file)
@@ -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;
 }