diff options
| author | Martin Jambor <mjambor@suse.cz> | 2026-02-06 22:49:43 +0100 |
|---|---|---|
| committer | Martin Jambor <jamborm@gcc.gnu.org> | 2026-02-06 22:53:05 +0100 |
| commit | f7e335aa007f32a003dde88a7500e326b1dcef65 (patch) | |
| tree | b5aa9852145852fbae5b74878aaf2743323891da /libjava/classpath/gnu | |
| parent | a8df3d91a9ce8aae936d9486b9806149bf57a0a0 (diff) | |
| download | gcc-f7e335aa007f32a003dde88a7500e326b1dcef65.zip gcc-f7e335aa007f32a003dde88a7500e326b1dcef65.tar.gz gcc-f7e335aa007f32a003dde88a7500e326b1dcef65.tar.bz2 | |
ipa-cp: Fix assert triggering with -fno-toplevel-reorder (PR 106260)
with -fno-toplevel-reorder (and -fwhole-program), there apparently can
be local functions without any callers. This is something that IPA-CP
does not like because its propagation verifier checks that local
functions do not end up with TOP in their lattices. Therefore there
is an assert checking that all call-less unreachable functions have
been removed, which tigers in PR 106260 with these two options.
This patch detects the situation and marks the lattices as variable,
thus avoiding both the assert trigger and the verification failure.
gcc/ChangeLog:
2022-07-13 Martin Jambor <mjambor@suse.cz>
PR ipa/106260
* ipa-cp.cc (initialize_node_lattices): Replace assert that there are
callers with handling that situation when -fno-toplevel_reorder.
gcc/testsuite/ChangeLog:
2022-07-13 Martin Jambor <mjambor@suse.cz>
PR ipa/106260
* g++.dg/ipa/pr106260.C: New test.
Diffstat (limited to 'libjava/classpath/gnu')
0 files changed, 0 insertions, 0 deletions
