diff options
author | Geoffrey Keating <geoffk@apple.com> | 2006-03-16 02:37:09 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2006-03-16 02:37:09 +0000 |
commit | 747b9f553aafa9b3e420d54c8c7d9a5eba0eda0b (patch) | |
tree | b6ff2fd69076032fa47ae9dc5b1da921c649b574 /gcc/config/rs6000 | |
parent | 289e97d2c542e2cda0dc64070f4ee1f2e6ed4c58 (diff) | |
download | gcc-747b9f553aafa9b3e420d54c8c7d9a5eba0eda0b.zip gcc-747b9f553aafa9b3e420d54c8c7d9a5eba0eda0b.tar.gz gcc-747b9f553aafa9b3e420d54c8c7d9a5eba0eda0b.tar.bz2 |
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
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/darwin.h | 10 | ||||
-rw-r--r-- | gcc/config/rs6000/t-darwin | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h index c116fa4..adefe2f 100644 --- a/gcc/config/rs6000/darwin.h +++ b/gcc/config/rs6000/darwin.h @@ -97,17 +97,11 @@ do { \ #define C_COMMON_OVERRIDE_OPTIONS do { \ /* On powerpc, __cxa_get_exception_ptr is available starting in the \ - 10.5 libstdc++.dylib. */ \ + 10.4.6 libstdc++.dylib. */ \ if ((! darwin_macosx_version_min \ - || strverscmp (darwin_macosx_version_min, "10.5") < 0) \ + || strverscmp (darwin_macosx_version_min, "10.4.6") < 0) \ && flag_use_cxa_get_exception_ptr == 2) \ flag_use_cxa_get_exception_ptr = 0; \ - /* On powerpc, __cxa_atexit is available starting in the 10.4 \ - libSystem.dylib. */ \ - if ((! darwin_macosx_version_min \ - || strverscmp (darwin_macosx_version_min, "10.4") < 0) \ - && flag_use_cxa_atexit == 2) \ - flag_use_cxa_atexit = 0; \ } while (0) /* Darwin has 128-bit long double support in libc in 10.4 and later. diff --git a/gcc/config/rs6000/t-darwin b/gcc/config/rs6000/t-darwin index 264cb63..8dd9832 100644 --- a/gcc/config/rs6000/t-darwin +++ b/gcc/config/rs6000/t-darwin @@ -25,3 +25,9 @@ LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c darwin-fpsave.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) \ + -c $(srcdir)/config/darwin-crt2.c -o $(T)crt2$(objext) |