From: Iain Sandoe Date: Mon, 1 Nov 2021 16:58:20 +0000 (+0000) Subject: Darwin, crts: Fix a build warning. X-Git-Tag: basepoints/gcc-13~3359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a300b413a62e1989bd89064fd5594aabe371d3a;p=thirdparty%2Fgcc.git 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 --- diff --git a/libgcc/config/darwin10-unwind-find-enc-func.c b/libgcc/config/darwin10-unwind-find-enc-func.c index 67c43757e50b..882ec3a2372f 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 e424b8820bb6..5aeee3353481 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 *);