This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/83506] [8 Regression] ICE: Segmentation fault in force_nonfallthru_and_redirect
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Dec 2017 10:05:45 +0000
- Subject: [Bug ipa/83506] [8 Regression] ICE: Segmentation fault in force_nonfallthru_and_redirect
- Auto-submitted: auto-generated
- References: <bug-83506-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83506
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
--- cgraphunit.c.jj 2017-12-19 18:09:05.000000000 +0100
+++ cgraphunit.c 2017-12-20 11:00:55.141899011 +0100
@@ -354,6 +354,7 @@ symbol_table::process_new_functions (voi
case EXPANSION:
/* Functions created during expansion shall be compiled
directly. */
+ gimple_register_cfg_hooks ();
node->process = 0;
call_cgraph_insertion_hooks (node);
node->expand ();
fixes this, while node->expand (); calls gimple_register_cfg_hooks (), if we
need the cfg hooks before, such as in the insertion hooks, it is too late.