Skip to content

Commit 98baaa1

Browse files
committed
Fix ICE with -fdump-tree-moref
gcc/ChangeLog: PR ipa/116055 * ipa-modref.cc (analyze_function): Do not ICE when flags regress.
1 parent affb2e8 commit 98baaa1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gcc/ipa-modref.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,7 +3291,8 @@ analyze_function (bool ipa)
32913291
fprintf (dump_file, " Flags for param %i improved:",
32923292
(int)i);
32933293
else
3294-
gcc_unreachable ();
3294+
fprintf (dump_file, " Flags for param %i changed:",
3295+
(int)i);
32953296
dump_eaf_flags (dump_file, old_flags, false);
32963297
fprintf (dump_file, " -> ");
32973298
dump_eaf_flags (dump_file, new_flags, true);
@@ -3307,7 +3308,7 @@ analyze_function (bool ipa)
33073308
|| (summary->retslot_flags & EAF_UNUSED))
33083309
fprintf (dump_file, " Flags for retslot improved:");
33093310
else
3310-
gcc_unreachable ();
3311+
fprintf (dump_file, " Flags for retslot changed:");
33113312
dump_eaf_flags (dump_file, past_retslot_flags, false);
33123313
fprintf (dump_file, " -> ");
33133314
dump_eaf_flags (dump_file, summary->retslot_flags, true);
@@ -3322,7 +3323,7 @@ analyze_function (bool ipa)
33223323
|| (summary->static_chain_flags & EAF_UNUSED))
33233324
fprintf (dump_file, " Flags for static chain improved:");
33243325
else
3325-
gcc_unreachable ();
3326+
fprintf (dump_file, " Flags for static chain changed:");
33263327
dump_eaf_flags (dump_file, past_static_chain_flags, false);
33273328
fprintf (dump_file, " -> ");
33283329
dump_eaf_flags (dump_file, summary->static_chain_flags, true);

0 commit comments

Comments
 (0)