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, target] Sort out some issues in config{,/*}/darwin*.h


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


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