This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch darwin, ppc] lgcc to provide save/restFP for pre-exisitng libraries.



On 20 Aug 2010, at 16:48, Mike Stump wrote:


On Aug 20, 2010, at 5:46 AM, IainS wrote:
OK for trunk & 4.5 ? (since this is not a reversion - but an additional patch).

Ok.

It turns out that this is not enough - the cascading of rs6000/darwin{, 7,8}.h needs to be tidied up :-(


Until I have a change to do that and bootstrap on darwin 8 - I've reverted this change and partially reverted r163267.

sorry for the breakage,
Iain

applied as 163419:

gcc/

	revert r163410, partially revert r163267.
	* config/rs6000/darwin.h (LIB_SPEC): Remove.
	* config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
	Darwin versions.

Index: gcc/config/darwin.h
===================================================================
--- gcc/config/darwin.h (revision 163418)
+++ gcc/config/darwin.h (working copy)
@@ -412,12 +412,12 @@ extern GTY(()) int darwin_ms_struct;
%:version-compare(>< 10.5 10.6 mmacosx-version-min= -lgcc_s. 10.5) \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_ext. 10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_ext. 10.5) \
- %:version-compare(< 10.5 mmacosx-version-min= - lgcc) ; \
+ - lgcc ; \
:%:version-compare(>< 10.3.9 10.5 mmacosx-version-min= -lgcc_s. 10.4) \
%:version-compare(>< 10.5 10.6 mmacosx-version-min= -lgcc_s. 10.5) \
%:version-compare(!> 10.5 mmacosx-version-min= -lgcc_ext. 10.4) \
%:version-compare(>= 10.5 mmacosx-version-min= -lgcc_ext. 10.5) \


-       %:version-compare(< 10.5 mmacosx-version-min= -lgcc) }"
+       -lgcc }"

/* We specify crt0.o as -lcrt0.o so that ld will search the library path.

Index: gcc/config/rs6000/darwin.h
===================================================================
--- gcc/config/rs6000/darwin.h  (revision 163418)
+++ gcc/config/rs6000/darwin.h  (working copy)
@@ -120,11 +120,6 @@ extern int darwin_emit_branch_islands;
    mcpu=G5:ppc970;                             \
    :ppc}}"

-/* Linked libs might refer to save/restFP - we still need to append - lgcc to
- provide these. */
-#undef LIB_SPEC
-#define LIB_SPEC "%{!static:-lgcc -lSystem}"
-
/* crt2.o is at least partially required for 10.3.x and earlier. */
#define DARWIN_CRT2_SPEC \
"%{!m64:%:version-compare(!> 10.4 mmacosx-version-min= crt2.o%s)}"



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]