[Patch, target] Sort out some issues in config{,/*}/darwin*.h

Jack Howarth howarth@bromo.med.uc.edu
Wed Apr 14 17:34:00 GMT 2010


On Wed, Apr 14, 2010 at 06:07:14PM +0100, IainS wrote:
>
> On 14 Apr 2010, at 18:01, Jack Howarth wrote:
>>   Have you considered removing the extra -lgcc outright instead?
>
> well, I *have* removed it outright from config/darwin.h
>
>> From the comments of the Apple clang programmers...
>>
>> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333#c44
>>
>> they are heading in that direction soon.
>
> this is the world becoming x86-centric  <g> ;-) :P
>
> If you remove it completely you will break powerpc which is using save/ 
> restore_world from it.
> Ergo ..  rs6000/darwin{7,8}.h still need it.

Iain,
   But you already have...

 #undef LIB_SPEC
-#define LIB_SPEC "%{!static:-no_compact_unwind -lSystem}"
+#define LIB_SPEC \
+  "%:version-compare(>= 10.6 mmacosx-version-min= -lgcc) \
+   %{Zlm:%:version-compare(< 10.4 mmacosx-version-min= -lm) } %<Zlm \
+   %{!static: \
+     %:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) \
+     -lSystem}"

in darwin10.h. So why not drop that -lgcc since 10.6 and later is
already intel-centric?
                 Jack
>
> (and so does x86_64 darwin10 to solve PR42333, at the moment).
>
> Iain



More information about the Gcc-patches mailing list