]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, crts: Fix a build warning.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 1 Nov 2021 16:58:20 +0000 (16:58 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Nov 2021 20:48:05 +0000 (20:48 +0000)
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>
libgcc/config/darwin10-unwind-find-enc-func.c
libgcc/config/i386/darwin-lib.h

index 67c43757e50bff75622d65e06617c43e59e11db9..882ec3a2372fad23b92900915d29914c553cfc74 100644 (file)
@@ -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)
index e424b8820bb6f2b2289f8aff32d29f756c58a6ec..5aeee3353481338203c0848a2109d0af8adb7a93 100644 (file)
@@ -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 *);