]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/118174 - bogus TER of tailcall
authorRichard Biener <rguenther@suse.de>
Tue, 31 Dec 2024 13:47:03 +0000 (14:47 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 1 Jan 2025 14:31:43 +0000 (15:31 +0100)
commitf8b559626025d2466c2780af6b62560dda468647
tree654341b19c48164d01d723acd774501805510669
parentf8cd181e2d1d5541681ea7e3e92c8da46b048979
middle-end/118174 - bogus TER of tailcall

The following avoids applying TER to direct internal functions that
are tailcall since the involved expansion code path doesn't honor
TER constraints.

PR middle-end/118174
* tree-outof-ssa.cc (ssa_is_replaceable_p): Exclude tailcalls.

* gcc.dg/torture/pr118174.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr118174.c [new file with mode: 0644]
gcc/tree-outof-ssa.cc