aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/unwind-dw2-fde-darwin.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-08-22 11:58:43 +0000
committerIain Sandoe <iains@gcc.gnu.org>2018-08-22 11:58:43 +0000
commita49c064e407df3d39776241f2c08b14e6affde1e (patch)
tree46b0d7e2ac835e54b397263c266ab174ab46aeeb /libgcc/config/unwind-dw2-fde-darwin.c
parent36bd86fa510ec16c32d7d7134b5897787a3f54b2 (diff)
downloadgcc-a49c064e407df3d39776241f2c08b14e6affde1e.zip
gcc-a49c064e407df3d39776241f2c08b14e6affde1e.tar.gz
gcc-a49c064e407df3d39776241f2c08b14e6affde1e.tar.bz2
Move Darwin10 unwinder fix to a crt shim.
gcc/ * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Adjust to use the Darwin10-specific unwinder-shim. * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Remove. * config/rs6000/darwin.h (DARWIN_CRT1_SPEC, DARWIN_DYLIB1_SPEC): New to cater for Darwin10 Rosetta. libgcc/ * config/unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction): move from here ... * config/darwin10-unwind-find-enc-func.c: … to here. * config/t-darwin: Build Darwin10 unwinder shim crt. * libgcc/config.host: Add the Darwin10 unwinder shim. From-SVN: r263765
Diffstat (limited to 'libgcc/config/unwind-dw2-fde-darwin.c')
-rw-r--r--libgcc/config/unwind-dw2-fde-darwin.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libgcc/config/unwind-dw2-fde-darwin.c b/libgcc/config/unwind-dw2-fde-darwin.c
index 6e2d0d6..c919de9 100644
--- a/libgcc/config/unwind-dw2-fde-darwin.c
+++ b/libgcc/config/unwind-dw2-fde-darwin.c
@@ -273,16 +273,3 @@ _Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
the_obj_info);
return ret;
}
-
-void *
-_darwin10_Unwind_FindEnclosingFunction (void *pc ATTRIBUTE_UNUSED)
-{
-#if __MACH__ && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060)
- struct dwarf_eh_bases bases;
- const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases);
- if (fde)
- return bases.func;
-#endif
- return NULL;
-}
-