mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-24 03:14:08 +08:00
Fix ICE with -fdump-tree-moref
gcc/ChangeLog: PR ipa/116055 * ipa-modref.cc (analyze_function): Do not ICE when flags regress.
This commit is contained in:
parent
331f23540e
commit
b3176b620f
@ -3297,7 +3297,8 @@ analyze_function (bool ipa)
|
|||||||
fprintf (dump_file, " Flags for param %i improved:",
|
fprintf (dump_file, " Flags for param %i improved:",
|
||||||
(int)i);
|
(int)i);
|
||||||
else
|
else
|
||||||
gcc_unreachable ();
|
fprintf (dump_file, " Flags for param %i changed:",
|
||||||
|
(int)i);
|
||||||
dump_eaf_flags (dump_file, old_flags, false);
|
dump_eaf_flags (dump_file, old_flags, false);
|
||||||
fprintf (dump_file, " -> ");
|
fprintf (dump_file, " -> ");
|
||||||
dump_eaf_flags (dump_file, new_flags, true);
|
dump_eaf_flags (dump_file, new_flags, true);
|
||||||
@ -3313,7 +3314,7 @@ analyze_function (bool ipa)
|
|||||||
|| (summary->retslot_flags & EAF_UNUSED))
|
|| (summary->retslot_flags & EAF_UNUSED))
|
||||||
fprintf (dump_file, " Flags for retslot improved:");
|
fprintf (dump_file, " Flags for retslot improved:");
|
||||||
else
|
else
|
||||||
gcc_unreachable ();
|
fprintf (dump_file, " Flags for retslot changed:");
|
||||||
dump_eaf_flags (dump_file, past_retslot_flags, false);
|
dump_eaf_flags (dump_file, past_retslot_flags, false);
|
||||||
fprintf (dump_file, " -> ");
|
fprintf (dump_file, " -> ");
|
||||||
dump_eaf_flags (dump_file, summary->retslot_flags, true);
|
dump_eaf_flags (dump_file, summary->retslot_flags, true);
|
||||||
@ -3328,7 +3329,7 @@ analyze_function (bool ipa)
|
|||||||
|| (summary->static_chain_flags & EAF_UNUSED))
|
|| (summary->static_chain_flags & EAF_UNUSED))
|
||||||
fprintf (dump_file, " Flags for static chain improved:");
|
fprintf (dump_file, " Flags for static chain improved:");
|
||||||
else
|
else
|
||||||
gcc_unreachable ();
|
fprintf (dump_file, " Flags for static chain changed:");
|
||||||
dump_eaf_flags (dump_file, past_static_chain_flags, false);
|
dump_eaf_flags (dump_file, past_static_chain_flags, false);
|
||||||
fprintf (dump_file, " -> ");
|
fprintf (dump_file, " -> ");
|
||||||
dump_eaf_flags (dump_file, summary->static_chain_flags, true);
|
dump_eaf_flags (dump_file, summary->static_chain_flags, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user