Commit e141542e by Rainer Orth Committed by Rainer Orth

darwin-crt2.c: Move to ../libgcc/config/rs6000.

	gcc:
	* config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
	* config/darwin-crt3.c: Move to ../libgcc/config.
	* config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
	($(T)crt3$(objext)): Remove.
	* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
	($(T)crt2$(objext)): Remove.
	* config.gcc (powerpc-*-darwin*): Remove extra_parts.
	(powerpc64-*-darwin*): Likewise.

	gcc/po:
	* EXCLUDES (config/darwin-crt2.c): Remove.

	libgcc:
	* config/darwin-crt3.o: New file.
	* config/rs6000/darwin-crt2.c: New file.
	* config/t-darwin: New file.
	* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New variable.
	(crt2.o): New rule.
	* config.host (*-*-darwin*): Add crt3.o to extra_parts.
	(powerpc-*-darwin*): Add crt2.o to extra_parts.
	(powerpc64-*-darwin*): Likewise.

From-SVN: r176239
parent 72fbc381
2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
* config/darwin-crt3.c: Move to ../libgcc/config.
* config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
($(T)crt3$(objext)): Remove.
* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
($(T)crt2$(objext)): Remove.
* config.gcc (powerpc-*-darwin*): Remove extra_parts.
(powerpc64-*-darwin*): Likewise.
2011-07-13 H.J. Lu <hongjiu.lu@intel.com> 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode
......
...@@ -2030,7 +2030,6 @@ picochip-*) ...@@ -2030,7 +2030,6 @@ picochip-*)
# ;; # ;;
powerpc-*-darwin*) powerpc-*-darwin*)
extra_options="${extra_options} rs6000/darwin.opt" extra_options="${extra_options} rs6000/darwin.opt"
extra_parts="crt2.o"
case ${target} in case ${target} in
*-darwin1[0-9]* | *-darwin[8-9]*) *-darwin1[0-9]* | *-darwin[8-9]*)
tmake_file="${tmake_file} rs6000/t-darwin8" tmake_file="${tmake_file} rs6000/t-darwin8"
...@@ -2047,7 +2046,6 @@ powerpc-*-darwin*) ...@@ -2047,7 +2046,6 @@ powerpc-*-darwin*)
;; ;;
powerpc64-*-darwin*) powerpc64-*-darwin*)
extra_options="${extra_options} ${cpu_type}/darwin.opt" extra_options="${extra_options} ${cpu_type}/darwin.opt"
extra_parts="crt2.o"
tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-dummy" tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-dummy"
tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h"
extra_headers=altivec.h extra_headers=altivec.h
......
...@@ -27,8 +27,6 @@ LIB2FUNCS_STATIC_EXTRA = \ ...@@ -27,8 +27,6 @@ LIB2FUNCS_STATIC_EXTRA = \
$(srcdir)/config/rs6000/darwin-fpsave.asm \ $(srcdir)/config/rs6000/darwin-fpsave.asm \
$(srcdir)/config/rs6000/darwin-vecsave.asm $(srcdir)/config/rs6000/darwin-vecsave.asm
DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall -mmacosx-version-min=10.4
# The .asm files above are designed to run on all processors, # The .asm files above are designed to run on all processors,
# even though they use AltiVec instructions. -Wa is used because # even though they use AltiVec instructions. -Wa is used because
# -force_cpusubtype_ALL doesn't work with -dynamiclib. # -force_cpusubtype_ALL doesn't work with -dynamiclib.
...@@ -46,10 +44,3 @@ LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c ...@@ -46,10 +44,3 @@ LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c
darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-asm.h darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-asm.h
darwin-tramp.o: $(srcdir)/config/rs6000/darwin-asm.h darwin-tramp.o: $(srcdir)/config/rs6000/darwin-asm.h
# Explain how to build crt2.o
$(T)crt2$(objext): $(srcdir)/config/darwin-crt2.c $(GCC_PASSES) \
$(TCONFIG_H) stmp-int-hdrs tsystem.h
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
$(DARWIN_EXTRA_CRT_BUILD_CFLAGS) \
-c $(srcdir)/config/darwin-crt2.c -o $(T)crt2$(objext)
...@@ -42,15 +42,6 @@ darwin-driver.o: $(srcdir)/config/darwin-driver.c \ ...@@ -42,15 +42,6 @@ darwin-driver.o: $(srcdir)/config/darwin-driver.c \
$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
$(srcdir)/config/darwin-driver.c $(srcdir)/config/darwin-driver.c
# How to build crt3.o
EXTRA_MULTILIB_PARTS=crt3.o
# Pass -fno-tree-dominator-opts to work around bug 26840.
$(T)crt3$(objext): $(srcdir)/config/darwin-crt3.c $(GCC_PASSES) \
$(TCONFIG_H) stmp-int-hdrs tsystem.h
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
-fno-tree-dominator-opts $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) \
-c $(srcdir)/config/darwin-crt3.c -o $(T)crt3$(objext)
# Use unwind-dw2-fde-darwin # Use unwind-dw2-fde-darwin
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \ LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \
$(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
......
2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* EXCLUDES (config/darwin-crt2.c): Remove.
2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* EXCLUDES (libgcov.c): Remove. * EXCLUDES (libgcov.c): Remove.
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# .def are examined to begin with. # .def are examined to begin with.
# These files are part of libgcc, or target headers provided by gcc. # These files are part of libgcc, or target headers provided by gcc.
config/darwin-crt2.c
config/fp-bit.c config/fp-bit.c
config/fp-bit.h config/fp-bit.h
config/vxlib.c config/vxlib.c
......
2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/darwin-crt3.o: New file.
* config/rs6000/darwin-crt2.c: New file.
* config/t-darwin: New file.
* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New variable.
(crt2.o): New rule.
* config.host (*-*-darwin*): Add crt3.o to extra_parts.
(powerpc-*-darwin*): Add crt2.o to extra_parts.
(powerpc64-*-darwin*): Likewise.
2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/i386/netware-crt0.c: New file. * config/i386/netware-crt0.c: New file.
* config/i386/t-nwld: Rename to ... * config/i386/t-nwld: Rename to ...
* config/i386/t-slibgcc-nwld: ... this. * config/i386/t-slibgcc-nwld: ... this.
......
...@@ -153,6 +153,7 @@ case ${host} in ...@@ -153,6 +153,7 @@ case ${host} in
*-*-darwin*) *-*-darwin*)
asm_hidden_op=.private_extern asm_hidden_op=.private_extern
tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin" tmake_file="t-darwin ${cpu_type}/t-darwin t-slibgcc-darwin"
extra_parts=crt3.o
;; ;;
*-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
# This is the place-holder for the generic a.out configuration # This is the place-holder for the generic a.out configuration
...@@ -528,8 +529,10 @@ powerpc-*-darwin*) ...@@ -528,8 +529,10 @@ powerpc-*-darwin*)
md_unwind_header=rs6000/darwin-unwind.h md_unwind_header=rs6000/darwin-unwind.h
;; ;;
esac esac
extra_parts="$extra_parts crt2.o"
;; ;;
powerpc64-*-darwin*) powerpc64-*-darwin*)
extra_parts="$extra_parts crt2.o"
;; ;;
powerpc-*-freebsd*) powerpc-*-freebsd*)
tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp" tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-freebsd t-softfp"
......
DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall -mmacosx-version-min=10.4
crt2.o: $(srcdir)/config/rs6000/darwin-crt2.c
$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -c $<
SHLIB_VERPFX = $(gcc_srcdir)/config/rs6000/darwin-libgcc SHLIB_VERPFX = $(gcc_srcdir)/config/rs6000/darwin-libgcc
# Pass -fno-tree-dominator-opts to work around bug 26840.
crt3.o: $(srcdir)/config/darwin-crt3.c
$(crt_compile) \
-fno-tree-dominator-opts $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -c $<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment