diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-08-17 14:54:10 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-08-17 14:54:10 +0000 |
commit | e2a1fcf0add4aaa44ac743278eacf623d9f39f62 (patch) | |
tree | 6a46c3798cdc661bf0271c9a57d55f4961210cbb /libjava | |
parent | 2642f659a685886012ce45f1e04b82232878fc5a (diff) | |
download | gcc-e2a1fcf0add4aaa44ac743278eacf623d9f39f62.zip gcc-e2a1fcf0add4aaa44ac743278eacf623d9f39f62.tar.gz gcc-e2a1fcf0add4aaa44ac743278eacf623d9f39f62.tar.bz2 |
only use _darwin10_Unwind_FindEnclosingFunction on darwin >= 10
gcc:
* unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
Dunmmy function with NULL return unless the target is
OSX >= 10.6 (Darwin10).
libjava:
* include/posix.h: Make substitution of
_darwin10_Unwind_FindEnclosingFunction conditional on
OSX >= 10.6 (Darwin10).
From-SVN: r163309
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/include/posix.h | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 301f8a1..c986c4d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2010-08-17 Iain Sandoe <iains@gcc.gnu.org> + + * include/posix.h: Make substitution of + _darwin10_Unwind_FindEnclosingFunction conditional on + OSX >= 10.6 (Darwin10). + 2010-08-12 Tom Tromey <tromey@redhat.com> * gnu/java/security/jce/prng/natVMSecureRandomWin32.cc diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 61b2a6a..b2cf3cf 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -56,9 +56,9 @@ details. */ #define _Jv_platform_solib_suffix ".so" #endif -#if defined(__APPLE__) && defined(__MACH__) -#undef _Unwind_FindEnclosingFunction -#define _Unwind_FindEnclosingFunction(PC) _darwin10_Unwind_FindEnclosingFunction(PC) +#if __MACH__ && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060) +# undef _Unwind_FindEnclosingFunction +# define _Unwind_FindEnclosingFunction(PC) _darwin10_Unwind_FindEnclosingFunction(PC) #endif // Some POSIX systems don't have O_SYNC and O_DYSNC so we define them here. |