aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-09-30 21:04:18 +0200
committerEric Botcazou <ebotcazou@adacore.com>2024-09-30 21:07:38 +0200
commit65073a5b90c00a1c47efae8a67b9c754e2287ee0 (patch)
tree02e93d3e999482afc0eedc7dff1914d2381d598e /gcc/cp/parser.cc
parent9c14f9a9c19957d9a45a7df97701bad475c80eea (diff)
downloadgcc-65073a5b90c00a1c47efae8a67b9c754e2287ee0.zip
gcc-65073a5b90c00a1c47efae8a67b9c754e2287ee0.tar.gz
gcc-65073a5b90c00a1c47efae8a67b9c754e2287ee0.tar.bz2
Fix internal error during inlining after ICF pass
The problem is that the ICF pass identifies two functions, one of which has a static chain while the other does not. The fix is simply to prevent this identification from occurring. gcc/ PR ipa/113996 * ipa-icf.cc (sem_function::get_hash): Hash DECL_STATIC_CHAIN. (sem_function::equals_wpa): Compare it. (sem_function::equals_private): Likewise. gcc/testsuite/ * gnat.dg/lto27.adb: New test.
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions