* Fix ICE with -fdump-tree-moref
@ 2024-07-29 8:55 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2024-07-29 8:55 UTC (permalink / raw)
To: gcc-patches
Hi,
this patch fixes sanity check in modref dumping which is no longer
correct now when we give up on parameters being readonly after store
merging.
Bootstrapped/regtested x86_64-linux, comitted.
gcc/ChangeLog:
PR ipa/116055
* ipa-modref.cc (analyze_function): Do not ICE when flags regress.
diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc
index f6a758b5f42..59cfe91f987 100644
--- a/gcc/ipa-modref.cc
+++ b/gcc/ipa-modref.cc
@@ -3297,7 +3297,8 @@ analyze_function (bool ipa)
fprintf (dump_file, " Flags for param %i improved:",
(int)i);
else
- gcc_unreachable ();
+ fprintf (dump_file, " Flags for param %i changed:",
+ (int)i);
dump_eaf_flags (dump_file, old_flags, false);
fprintf (dump_file, " -> ");
dump_eaf_flags (dump_file, new_flags, true);
@@ -3313,7 +3314,7 @@ analyze_function (bool ipa)
|| (summary->retslot_flags & EAF_UNUSED))
fprintf (dump_file, " Flags for retslot improved:");
else
- gcc_unreachable ();
+ fprintf (dump_file, " Flags for retslot changed:");
dump_eaf_flags (dump_file, past_retslot_flags, false);
fprintf (dump_file, " -> ");
dump_eaf_flags (dump_file, summary->retslot_flags, true);
@@ -3328,7 +3329,7 @@ analyze_function (bool ipa)
|| (summary->static_chain_flags & EAF_UNUSED))
fprintf (dump_file, " Flags for static chain improved:");
else
- gcc_unreachable ();
+ fprintf (dump_file, " Flags for static chain changed:");
dump_eaf_flags (dump_file, past_static_chain_flags, false);
fprintf (dump_file, " -> ");
dump_eaf_flags (dump_file, summary->static_chain_flags, true);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-29 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-29 8:55 Fix ICE with -fdump-tree-moref Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).