Commit d2328a13 by Geoffrey Keating Committed by Geoffrey Keating

re PR objc/31013 (objc PCH is broken on powerpc-darwin again)

	PR 31013
	* gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
	is declared.
	* config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
	passed, use shared libgcc.

From-SVN: r122709
parent ebb07520
2007-03-08 Geoffrey Keating <geoffk@apple.com>
PR 31013
* gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
is declared.
* config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
passed, use shared libgcc.
2007-03-08 Roger Sayle <roger@eyesopen.com> 2007-03-08 Roger Sayle <roger@eyesopen.com>
* tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
......
...@@ -351,7 +351,7 @@ extern GTY(()) int darwin_ms_struct; ...@@ -351,7 +351,7 @@ extern GTY(()) int darwin_ms_struct;
#undef REAL_LIBGCC_SPEC #undef REAL_LIBGCC_SPEC
#define REAL_LIBGCC_SPEC \ #define REAL_LIBGCC_SPEC \
"%{static-libgcc|static: -lgcc_eh -lgcc; \ "%{static-libgcc|static: -lgcc_eh -lgcc; \
shared-libgcc|fexceptions: \ shared-libgcc|fexceptions|fgnu-runtime: \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_s.10.4) \ %:version-compare(!> 10.5 mmacosx-version-min= -lgcc_s.10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \ %:version-compare(>= 10.5 mmacosx-version-min= -lgcc_s.10.5) \
-lgcc; \ -lgcc; \
......
...@@ -30,7 +30,10 @@ lang_specific_driver (int *in_argc ATTRIBUTE_UNUSED, ...@@ -30,7 +30,10 @@ lang_specific_driver (int *in_argc ATTRIBUTE_UNUSED,
const char *const **in_argv ATTRIBUTE_UNUSED, const char *const **in_argv ATTRIBUTE_UNUSED,
int *in_added_libraries ATTRIBUTE_UNUSED) int *in_added_libraries ATTRIBUTE_UNUSED)
{ {
#ifdef ENABLE_SHARED_LIBGCC /* Systems which use the NeXT runtime by default should arrange
for the shared libgcc to be used when -fgnu-runtime is passed
through specs. */
#if defined(ENABLE_SHARED_LIBGCC) && ! defined(NEXT_OBJC_RUNTIME)
int i; int i;
/* The new argument list will be contained in this. */ /* The new argument list will be contained in this. */
......
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