https://gcc.gnu.org/g:a73f2d80e909b67bbe3dc0abb48cf422810e1564
commit r11-11345-ga73f2d80e909b67bbe3dc0abb48cf422810e1564 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Fri Mar 4 12:39:03 2022 +0000 Darwin: Fix a type mismatch warning for a non-GCC bootstrap compiler. DECL_MD_FUNCTION_CODE() returns an int, on one particular compiler the code in darwin_fold_builtin() triggers a warning. Fixed thus. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk> gcc/ChangeLog: * config/darwin.c (darwin_fold_builtin): Make fcode an int to avoid a mismatch with DECL_MD_FUNCTION_CODE(). (cherry picked from commit 25587472ccd223c861fe77cfeca4ba33c3f6cd99) Diff: --- gcc/config/darwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index dedf84d6247..2371816e251 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -3620,7 +3620,7 @@ tree darwin_fold_builtin (tree fndecl, int n_args, tree *argp, bool ARG_UNUSED (ignore)) { - unsigned int fcode = DECL_MD_FUNCTION_CODE (fndecl); + int fcode = DECL_MD_FUNCTION_CODE (fndecl); if (fcode == darwin_builtin_cfstring) {