diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-05-03 18:14:32 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-05-03 16:14:32 +0000 |
commit | 5386abe0daa9f1cdc2a2ca07457500e155d24810 (patch) | |
tree | 6b686950258579a5a7a01776798eaa6f2ac284ed /gcc | |
parent | f47337aef62435fcaa2549a42bac21020507a2c8 (diff) | |
download | gcc-5386abe0daa9f1cdc2a2ca07457500e155d24810.zip gcc-5386abe0daa9f1cdc2a2ca07457500e155d24810.tar.gz gcc-5386abe0daa9f1cdc2a2ca07457500e155d24810.tar.bz2 |
re PR ipa/80609 (crash_signal in reset_inline_summary on ia64 bootstrap)
PR bootstrap/80609
* ipa-inline.h (inline_summary): Add ctor.
(create_ggc): Do not use ggc_cleared_alloc.
From-SVN: r247555
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-inline.h | 14 |
2 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92a4e39..5cb7dee 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> diff --git a/gcc/ipa-inline.h b/gcc/ipa-inline.h index c9720dc..9027100 100644 --- a/gcc/ipa-inline.h +++ b/gcc/ipa-inline.h @@ -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; |