public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-4954] Darwin, crts: Fix a build warning. Date: Fri, 5 Nov 2021 20:48:30 +0000 (GMT) [thread overview] Message-ID: <20211105204830.2F1F1385840A@sourceware.org> (raw) https://gcc.gnu.org/g:7a300b413a62e1989bd89064fd5594aabe371d3a commit r12-4954-g7a300b413a62e1989bd89064fd5594aabe371d3a Author: Iain Sandoe <iain@sandoe.co.uk> Date: Mon Nov 1 16:58:20 2021 +0000 Darwin, crts: Fix a build warning. We have a shim crt for Darwin10 that implements functionality missing in libSystem. Provide this with a prototype to silence the warning about this. libgcc/ChangeLog: * config/darwin10-unwind-find-enc-func.c: Include libgcc_tm.h. * config/i386/darwin-lib.h: Declare Darwin10 crt function. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> Diff: --- libgcc/config/darwin10-unwind-find-enc-func.c | 1 + libgcc/config/i386/darwin-lib.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libgcc/config/darwin10-unwind-find-enc-func.c b/libgcc/config/darwin10-unwind-find-enc-func.c index 67c43757e50..882ec3a2372 100644 --- a/libgcc/config/darwin10-unwind-find-enc-func.c +++ b/libgcc/config/darwin10-unwind-find-enc-func.c @@ -1,6 +1,7 @@ #include "tconfig.h" #include "tsystem.h" #include "unwind-dw2-fde.h" +#include "libgcc_tm.h" void * _darwin10_Unwind_FindEnclosingFunction (void *pc) diff --git a/libgcc/config/i386/darwin-lib.h b/libgcc/config/i386/darwin-lib.h index e424b8820bb..5aeee335348 100644 --- a/libgcc/config/i386/darwin-lib.h +++ b/libgcc/config/i386/darwin-lib.h @@ -30,3 +30,5 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define DECLARE_LIBRARY_RENAMES \ asm(".text; ___divdc3: jmp ___ieee_divdc3 ; .globl ___divdc3"); #endif + +extern void * _darwin10_Unwind_FindEnclosingFunction (void *);
reply other threads:[~2021-11-05 20:48 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211105204830.2F1F1385840A@sourceware.org \ --to=iains@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).