Skip to content

Commit 4dfbecb

Browse files
committed
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 <[email protected]> (cherry picked from commit 7a300b4)
1 parent 6d8e290 commit 4dfbecb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libgcc/config/darwin10-unwind-find-enc-func.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "tconfig.h"
22
#include "tsystem.h"
33
#include "unwind-dw2-fde.h"
4+
#include "libgcc_tm.h"
45

56
void *
67
_darwin10_Unwind_FindEnclosingFunction (void *pc)

libgcc/config/i386/darwin-lib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3030
#define DECLARE_LIBRARY_RENAMES \
3131
asm(".text; ___divdc3: jmp ___ieee_divdc3 ; .globl ___divdc3");
3232
#endif
33+
34+
extern void * _darwin10_Unwind_FindEnclosingFunction (void *);

0 commit comments

Comments
 (0)