summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-16 02:37:09 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-16 02:37:09 +0000
commit3da996b9f68936a12578bd6327e7101c61f3bf1b (patch)
treeb6ff2fd69076032fa47ae9dc5b1da921c649b574 /gcc/config.gcc
parentfd4ae628cb49b153433b4b7da10b8528f8958c38 (diff)
downloadgcc-3da996b9f68936a12578bd6327e7101c61f3bf1b.tar.gz
2006-03-15 Geoffrey Keating <geoffk@apple.com>
* config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports. Do switch on default_use_cxa_atexit. (powerpc*-*-darwin*): Build crt2.o on powerpc. * config/darwin-crt3.o: New. * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use. (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate OS version. * config/rs6000/t-darwin: Move crt2.o building to here. * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update Mac OS version for using __cxa_get_exception_ptr. Don't test versions of __cxa_atexit. 2006-03-15 Geoffrey Keating <geoffk@apple.com> * g++.old-deja/g++.other/init18.C: New. * g++.old-deja/g++.other/init5.C: Remove xfail. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 91a20e2f514..78a7cc1803c 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -368,8 +368,8 @@ case ${target} in
extra_options="${extra_options} darwin.opt"
c_target_objs="darwin-c.o"
cxx_target_objs="darwin-c.o"
- extra_parts="crt2.o"
extra_objs="darwin.o"
+ default_use_cxa_atexit=yes
case ${enable_threads} in
"" | yes | posix) thread_file='posix' ;;
esac
@@ -1664,6 +1664,7 @@ powerpc-*-beos*)
;;
powerpc-*-darwin*)
extra_options="${extra_options} rs6000/darwin.opt"
+ extra_parts="crt2.o"
case ${target} in
*-darwin1[0-9]* | *-darwin[8-9]*)
tmake_file="${tmake_file} rs6000/t-darwin8"