re PR ipa/80609 (crash_signal in reset_inline_summary on ia64 bootstrap)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 3 May 2017 16:14:32 +0000 (18:14 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 3 May 2017 16:14:32 +0000 (16:14 +0000)
PR bootstrap/80609
* ipa-inline.h (inline_summary): Add ctor.
(create_ggc): Do not use ggc_cleared_alloc.

From-SVN: r247555

gcc/ChangeLog
gcc/ipa-inline.h

index 92a4e39..5cb7dee 100644 (file)
@@ -1,3 +1,9 @@
+2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR bootstrap/80609
+       * ipa-inline.h (inline_summary): Add ctor.
+       (create_ggc): Do not use ggc_cleared_alloc.
+
 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
            Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
index c9720dc..9027100 100644 (file)
@@ -175,6 +175,18 @@ struct GTY(()) inline_summary
   int growth;
   /* Number of SCC on the beginning of inlining process.  */
   int scc_no;
+
+  /* Keep all field empty so summary dumping works during its computation.
+     This is useful for debugging.  */
+  inline_summary ()
+    : estimated_self_stack_size (0), self_size (0), self_time (0), min_size (0),
+      inlinable (false), contains_cilk_spawn (false), single_caller (false),
+      fp_expressions (false), estimated_stack_size (false),
+      stack_frame_offset (false), time (0), size (0), conds (NULL),
+      entry (NULL), loop_iterations (NULL), loop_stride (NULL),
+      array_index (NULL), growth (0), scc_no (0)
+    {
+    }
 };
 
 class GTY((user)) inline_summary_t: public function_summary <inline_summary *>
@@ -185,7 +197,7 @@ public:
 
   static inline_summary_t *create_ggc (symbol_table *symtab)
   {
-    struct inline_summary_t *summary = new (ggc_cleared_alloc <inline_summary_t> ())
+    struct inline_summary_t *summary = new (ggc_alloc <inline_summary_t> ())
       inline_summary_t(symtab, true);
     summary->disable_insertion_hook ();
     return summary;