aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-03-21 12:17:45 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-03-21 12:17:45 +0100
commit589c94da22ec71fe8518878e801e88b05deffe18 (patch)
treec5cc9390acb85e6608d5c7cf4ec8710aaffbbf4b /gcc/rust/backend/rust-compile-context.h
parent37ae2e055687a22974d7bcb9e618f258fa49ab1a (diff)
downloadgcc-589c94da22ec71fe8518878e801e88b05deffe18.zip
gcc-589c94da22ec71fe8518878e801e88b05deffe18.tar.gz
gcc-589c94da22ec71fe8518878e801e88b05deffe18.tar.bz2
fnsplit: Set musttail call during function splitting if there are musttail calls [PR119376]
The just posted inliner patch can regress musttail calls if we perform function splitting and then inline the outlined body back into the original (or inline both the small function and outlined large body into something else). If there are any musttail calls, I think we need to call the outlined body using a musttail call, so that the inliner will preserve musttail attributes in the body. 2025-03-21 Jakub Jelinek <jakub@redhat.com> PR ipa/119376 * ipa-split.cc (split_function): Call gimple_call_set_must_tail on the call to outlined partition if has_musttail and !add_tsan_func_exit. * g++.dg/opt/musttail1.C: New test.
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
0 files changed, 0 insertions, 0 deletions