aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2024-07-29 10:49:49 +0200
committerJan Hubicka <hubicka@ucw.cz>2024-07-29 10:49:49 +0200
commitb3176b620ff29a06c90992ca3d29f3cffd459537 (patch)
treea02091ca2d471e74324e3a6b980a98cb433c6c69
parent331f23540eec39fc1e665f573c4aac258bba6043 (diff)
downloadgcc-b3176b620ff29a06c90992ca3d29f3cffd459537.zip
gcc-b3176b620ff29a06c90992ca3d29f3cffd459537.tar.gz
gcc-b3176b620ff29a06c90992ca3d29f3cffd459537.tar.bz2
Fix ICE with -fdump-tree-moref
gcc/ChangeLog: PR ipa/116055 * ipa-modref.cc (analyze_function): Do not ICE when flags regress.
-rw-r--r--gcc/ipa-modref.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc
index f6a758b..59cfe91 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);