https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120888
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Max Filippov <jcmvb...@gcc.gnu.org>: https://gcc.gnu.org/g:2a6ac385076a0d43a529e84e7f7ebcbfc3831437 commit r16-2069-g2a6ac385076a0d43a529e84e7f7ebcbfc3831437 Author: H.J. Lu <hjl.to...@gmail.com> Date: Tue Jul 1 04:46:31 2025 +0800 xtensa: Remove TARGET_PROMOTE_PROTOTYPES xtensa ABI requires sign extension of signed 8/16-bit arguments to 32 bits and zero extension of unsigned 8/16-bit arguments to 32 bits. TARGET_PROMOTE_PROTOTYPES is an optimization, not an ABI requirement. Remove TARGET_PROMOTE_PROTOTYPES and define xtensa_promote_function_mode to properly extend 8/16-bit arguments to 32 bits. gcc/ PR target/120888 * config/xtensa/xtensa.cc (xtensa_promote_function_mode): New. (TARGET_PROMOTE_FUNCTION_MODE): Use. (TARGET_PROMOTE_PROTOTYPES): Removed. gcc/testsuite/ PR target/120888 * gcc.target/xtensa/pr120888-1.c: New test. * gcc.target/xtensa/pr120888-2.c: Likewise. Signed-off-by: H.J. Lu <hjl.to...@gmail.com>