ipa: dump symtab to emergency dump file
authorMartin Liska <mliska@suse.cz>
Mon, 30 Nov 2020 14:02:57 +0000 (15:02 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 30 Nov 2020 16:30:34 +0000 (17:30 +0100)
gcc/ChangeLog:

* passes.c (emergency_dump_function): Dump symtab when
we are in an IPA pass.

gcc/passes.c

index f71f63918f4046b976f05f2a3ec0cc9eb8041a7d..973c958f769b567f436a9e5f112bd054cced8dce 100644 (file)
@@ -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;