https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122947
liu zhenyu <lzy20000419 at outlook dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lzy20000419 at outlook dot com
--- Comment #6 from liu zhenyu <lzy20000419 at outlook dot com> ---
The gcc.dg/pr122947.c test from r16-5944 still aborts on the 14 and 15
branches. On x86_64-linux-gnu, with -O2 -fno-inline -fschedule-insns
-mno-accumulate-outgoing-args:
14.2.0, 14.3.0, 14.4.0, 15.1.0, 15.2.0, 15.3.0: Aborted
16.1.0, 16.2.0, trunk 17.0.0 20261126: OK
On 14.2.0 it also aborts without -mno-accumulate-outgoing-args. 14.4 already
has the PR117239 cselib change (pr117239.c passes there), so what remains on
the branches is the missing stack USE in CALL_INSN_FUNCTION_USAGE for
!ACCUMULATE_OUTGOING_ARGS calls, which only r16-5944 adds. Could that commit be
considered for the 15 and 14 branches?
Disclaimer: This test case was found with LLM-assisted targeted testing, and
the comment was written with LLM assistance.