diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-08 09:20:12 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-08 09:20:12 +0000 |
commit | bf71920530faf499756ced19fcc694ab2bd5f399 (patch) | |
tree | 37a3ea3faf3717df59d1cd02c534ff87a21941d5 /gcc/ada/tracebak.c | |
parent | 051712674a082adb121dbfc217eaca6391f02a9a (diff) | |
download | gcc-bf71920530faf499756ced19fcc694ab2bd5f399.tar.gz |
part of restore of powerpc-darwin Ada bootstrap
* traceback.c (Darwin) USE_GCC_UNWINDER for Darwin
versions >= 8.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/tracebak.c')
-rw-r--r-- | gcc/ada/tracebak.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gcc/ada/tracebak.c b/gcc/ada/tracebak.c index a8a200d4486..ea7bbfe51c3 100644 --- a/gcc/ada/tracebak.c +++ b/gcc/ada/tracebak.c @@ -203,9 +203,23 @@ extern void (*Unlock_Task) (void); */ -/*--------------------------- PPC AIX/Darwin ----------------------------*/ +/*------------------- Darwin 8 (OSX 10.4) or newer ----------------------*/ +#if defined (__APPLE__) \ + && defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \ + && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1040 + +#define USE_GCC_UNWINDER + +#if defined (__i386__) || defined (__x86_64__) +#define PC_ADJUST -2 +#elif defined (__ppc__) || defined (__ppc64__) +#define PC_ADJUST -4 +#else +#error Unhandled darwin architecture. +#endif -#if ((defined (_POWER) && defined (_AIX)) || \ +/*------------------------ PPC AIX/Older Darwin -------------------------*/ +#elif ((defined (_POWER) && defined (_AIX)) || \ (defined (__ppc__) && defined (__APPLE__))) #define USE_GENERIC_UNWINDER |