mirrored from git://gcc.gnu.org/git/gcc.git
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Darwin, libgcc : Adjust min version supported for the OS.
Tools from later versions of the OS deprecate or fail to support earlier OS revisions. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libgcc/ChangeLog: * config.host: Arrange to set min Darwin OS versions from the configured host version. * config/darwin10-unwind-find-enc-func.c: Do not use current headers, but declare the nexessary structures locally to the versions in use for Mac OSX 10.6. * config/t-darwin: Amend to handle configured min OS versions. * config/t-darwin-min-1: New. * config/t-darwin-min-5: New. * config/t-darwin-min-8: New.
- Loading branch information
Showing
6 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
#include "tconfig.h" | ||
#include "tsystem.h" | ||
#include "unwind-dw2-fde.h" | ||
#include "libgcc_tm.h" | ||
|
||
/* This shim is special, it needs to be built for Mac OSX 10.6 | ||
regardless of the current system version. | ||
We must also build it to use the unwinder layout that was | ||
present for 10.6 (and not update that). | ||
So we copy the referenced structures from unwind-dw2-fde.h | ||
to avoid pulling in newer system headers and/or changed | ||
layouts. */ | ||
struct dwarf_eh_bases | ||
{ | ||
void *tbase; | ||
void *dbase; | ||
void *func; | ||
}; | ||
|
||
typedef int sword __attribute__ ((mode (SI))); | ||
typedef unsigned int uword __attribute__ ((mode (SI))); | ||
|
||
/* The first few fields of an FDE. */ | ||
struct dwarf_fde | ||
{ | ||
uword length; | ||
sword CIE_delta; | ||
unsigned char pc_begin[]; | ||
} __attribute__ ((packed, aligned (__alignof__ (void *)))); | ||
|
||
typedef struct dwarf_fde fde; | ||
|
||
extern const fde * _Unwind_Find_FDE (void *, struct dwarf_eh_bases *); | ||
|
||
void * | ||
_darwin10_Unwind_FindEnclosingFunction (void *pc) | ||
{ | ||
struct dwarf_eh_bases bases; | ||
const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases); | ||
if (fde) | ||
return bases.func; | ||
return NULL; | ||
return (void *) 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Support building with -mmacosx-version-min back to 10.1. | ||
DARWIN_MIN_LIB_VERSION = -mmacosx-version-min=10.4 | ||
DARWIN_MIN_CRT_VERSION = -mmacosx-version-min=10.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Support building with -mmacosx-version-min back to 10.5. | ||
DARWIN_MIN_LIB_VERSION = -mmacosx-version-min=10.5 | ||
DARWIN_MIN_CRT_VERSION = -mmacosx-version-min=10.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Support building with -mmacosx-version-min back to 10.8. | ||
DARWIN_MIN_LIB_VERSION = -mmacosx-version-min=10.8 | ||
DARWIN_MIN_CRT_VERSION = -mmacosx-version-min=10.8 |