From 167ab4b1534a0c9d3c3e8376462822ae47e6d10d Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 30 Nov 2020 15:02:57 +0100 Subject: [PATCH] ipa: dump symtab to emergency dump file gcc/ChangeLog: * passes.c (emergency_dump_function): Dump symtab when we are in an IPA pass. --- gcc/passes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/passes.c b/gcc/passes.c index f71f63918f4..973c958f769 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1837,6 +1837,9 @@ emergency_dump_function () fnotice (stderr, "dump file: %s\n", dump_file_name); fprintf (dump_file, "\n\n\nEMERGENCY DUMP:\n\n"); execute_function_dump (cfun, current_pass); + + if (symtab && current_pass->type == IPA_PASS) + symtab->dump (dump_file); } static struct profile_record *profile_record; -- 2.30.2