[Bug middle-end/87162] [6.2.0] Internal compiler error: Error reporting routines re-entered.
yellowriver2010 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 5 10:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87162
--- Comment #7 from Wen Yang <yellowriver2010 at hotmail dot com> ---
This patch will make it more robust:
# git diff
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index 1d4eb80..326e1c4 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -2099,6 +2099,9 @@ gate_tm_init (void)
if (!flag_tm)
return false;
+ if (!cfun->cfg)
+ return false;
+
calculate_dominance_info (CDI_DOMINATORS);
bitmap_obstack_initialize (&tm_obstack);
More information about the Gcc-bugs
mailing list