[Bug target/115255] sibcall at -O0 causes ICE in df_refs_verify on arm
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 18 04:27:11 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115255
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andi Kleen <ak@gcc.gnu.org>:
https://gcc.gnu.org/g:983daf0e5fdaada5b930374c21455d42d34350be
commit r15-2123-g983daf0e5fdaada5b930374c21455d42d34350be
Author: Andi Kleen <ak@linux.intel.com>
Date: Sat Jun 1 22:04:41 2024 -0700
Fix pro_and_epilogue for sibcalls at -O0 (PR115255)
Some of the cfg fixups in pro_and_epilogue for sibcalls were dependent on
"optimize".
Make them check cfun->tail_call_marked instead to handle the -O0 musttail
case. This fixes the musttail test cases on arm targets.
gcc/ChangeLog:
PR target/115255
* function.cc (thread_prologue_and_epilogue_insns): Check
cfun->tail_call_marked for sibcalls too.
(rest_of_handle_thread_prologue_and_epilogue): Dito.
More information about the Gcc-bugs
mailing list