Skip to content

Commit

Permalink
libgcc, aarch64, Darwin: Do not build legacy EH shim.
Browse files Browse the repository at this point in the history
Darwin aarch64 does not exist for macOS 10.6, so there is no need to
build a shim to target it.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>

libgcc/

	* config.host: Omit the Darwin10 unwinder shim for aarch64 Darwin.
  • Loading branch information
iains committed Feb 26, 2022
1 parent 61b51cf commit 98fdeea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libgcc/config.host
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ case ${host} in
echo "Warning: libgcc configured to support macOS 10.5" 1>&2
;;
esac
extra_parts="crt3.o libd10-uwfef.a crttms.o crttme.o libemutls_w.a"
extra_parts="crt3.o crttms.o crttme.o libemutls_w.a"
;;
*-*-dragonfly*)
tmake_file="$tmake_file t-crtstuff-pic t-libgcc-pic t-eh-dw2-dip"
Expand Down Expand Up @@ -735,11 +735,13 @@ hppa*-*-netbsd*)
i[34567]86-*-darwin*)
tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
tm_file="$tm_file i386/darwin-lib.h"
extra_parts="$extra_parts libd10-uwfef.a "
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
;;
x86_64-*-darwin*)
tmake_file="$tmake_file i386/t-crtpc t-crtfm i386/t-msabi"
tm_file="$tm_file i386/darwin-lib.h"
extra_parts="$extra_parts libd10-uwfef.a "
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
if test x$off_stack_trampolines = xyes; then
tmake_file="${tmake_file} i386/t-heap-trampoline"
Expand Down Expand Up @@ -1199,12 +1201,14 @@ powerpc-*-darwin*)
# We build the darwin10 EH shim for Rosetta (running on x86 machines).
tm_file="$tm_file i386/darwin-lib.h"
tmake_file="$tmake_file rs6000/t-ppc64-fp rs6000/t-ibm-ldouble"
extra_parts="$extra_parts libd10-uwfef.a "
extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
;;
powerpc64-*-darwin*)
# We build the darwin10 EH shim for Rosetta (running on x86 machines).
tm_file="$tm_file i386/darwin-lib.h"
tmake_file="$tmake_file rs6000/t-darwin64 rs6000/t-ibm-ldouble"
extra_parts="$extra_parts libd10-uwfef.a "
extra_parts="$extra_parts crt2.o crt3_2.o libef_ppc.a dw_ppc.o"
;;
powerpc*-*-freebsd*)
Expand Down

0 comments on commit 98fdeea

Please sign in to comment.