Skip to content

Commit

Permalink
Darwin, crts: Fix a build warning.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
iains committed Nov 5, 2021
1 parent 2627e3b commit 7a300b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libgcc/config/darwin10-unwind-find-enc-func.c
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 2 additions & 0 deletions libgcc/config/i386/darwin-lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);

0 comments on commit 7a300b4

Please sign in to comment.