public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11345] Darwin: Fix a type mismatch warning for a non-GCC bootstrap compiler.
@ 2024-04-23 14:15 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-23 14:15 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a73f2d80e909b67bbe3dc0abb48cf422810e1564
commit r11-11345-ga73f2d80e909b67bbe3dc0abb48cf422810e1564
Author: Iain Sandoe <iain@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 <iain@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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-23 14:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23 14:15 [gcc r11-11345] Darwin: Fix a type mismatch warning for a non-GCC bootstrap compiler Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).