From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id 3DAA43858C42; Tue, 23 Apr 2024 14:15:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DAA43858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713881702; bh=lKeBOmvLuLGuAz4cCfwaJrf8YTHywmC+gjjTbgsmHD0=; h=From:To:Subject:Date:From; b=aGdpNYXhQuKV9FmgLVhOgiymJYsSyN7S/pd5ACuw3iv/OrRE7/KkonTYUu9Q0CkzV co9ec+hMZV3nwJedEZFeC2SfhroxyO0aI/jNWR3Q+D9gvISXmcVv2yJkucM2iCRATn Y2U+O7MBJLwOciGNeaW2UK7JJXNP+mj+fD/CMKV0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r11-11345] Darwin: Fix a type mismatch warning for a non-GCC bootstrap compiler. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: 4a0e4f68a39c19c27456c9925c9dc85a3617ebad X-Git-Newrev: a73f2d80e909b67bbe3dc0abb48cf422810e1564 Message-Id: <20240423141502.3DAA43858C42@sourceware.org> Date: Tue, 23 Apr 2024 14:15:02 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a73f2d80e909b67bbe3dc0abb48cf422810e1564 commit r11-11345-ga73f2d80e909b67bbe3dc0abb48cf422810e1564 Author: Iain Sandoe 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 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) {