config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
authorGeoffrey Keating <geoffk@apple.com>
Thu, 16 Mar 2006 02:37:09 +0000 (02:37 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Thu, 16 Mar 2006 02:37:09 +0000 (02:37 +0000)
commit747b9f553aafa9b3e420d54c8c7d9a5eba0eda0b
treeb6ff2fd69076032fa47ae9dc5b1da921c649b574
parent289e97d2c542e2cda0dc64070f4ee1f2e6ed4c58
config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.

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.

From-SVN: r112121
gcc/ChangeLog
gcc/config.gcc
gcc/config/darwin-crt3.c [new file with mode: 0644]
gcc/config/darwin.h
gcc/config/rs6000/darwin.h
gcc/config/rs6000/t-darwin
gcc/config/t-darwin
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/init18.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/init5.C