mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-04 17:24:15 +08:00
a49c064e40
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
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
# Set this as a minimum (unless overriden by arch t-files) since it's a
|
|
# reasonable lowest common denominator that works for all our archs.
|
|
HOST_LIBGCC2_CFLAGS += -mmacosx-version-min=10.5
|
|
|
|
crt3.o: $(srcdir)/config/darwin-crt3.c
|
|
$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -c $<
|
|
|
|
crttms.o: $(srcdir)/config/darwin-crt-tm.c
|
|
$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -DSTART -c $<
|
|
|
|
crttme.o: $(srcdir)/config/darwin-crt-tm.c
|
|
$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -DEND -c $<
|
|
|
|
# -pipe because there's an assembler bug, 4077127, which causes
|
|
# it to not properly process the first # directive, causing temporary
|
|
# file names to appear in stabs, causing the bootstrap to fail. Using -pipe
|
|
# works around this by not having any temporary file names.
|
|
HOST_LIBGCC2_CFLAGS += -pipe
|
|
|
|
# Use unwind-dw2-fde-darwin
|
|
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/config/unwind-dw2-fde-darwin.c \
|
|
$(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
|
|
|
|
# Patch to __Unwind_Find_Enclosing_Function for Darwin10.
|
|
d10-uwfef.o: $(srcdir)/config/darwin10-unwind-find-enc-func.c
|
|
$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -mmacosx-version-min=10.6 -c $<
|