[Bug target/122925] [16 Regression] sh: function is miscompiled
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 13:07:09 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122925
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <hjl@gcc.gnu.org>:
https://gcc.gnu.org/g:f5c98d0c8c48a80d5cf82011d981e161e19cf7e6
commit r16-8037-gf5c98d0c8c48a80d5cf82011d981e161e19cf7e6
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Wed Mar 11 08:43:01 2026 -0700
sh: Remove TARGET_PROMOTE_PROTOTYPES
TARGET_PROMOTE_PROTOTYPES is an optimization, not an ABI requirement.
TARGET_PROMOTE_FUNCTION_MODE should be used for ABI requirement, which
is properly defined for sh. Remove TARGET_PROMOTE_PROTOTYPES from sh.
gcc/
PR target/122925
PR target/119979
* config/sh/sh.cc (TARGET_PROMOTE_PROTOTYPES): Removed.
gcc/testsuite/
PR target/122925
PR target/119979
* gcc.dg/pr122925.c: New test.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
More information about the Gcc-bugs
mailing list