[patch] Don't produce stubs on darwin x86

David Fang fang at csl.cornell.edu
Wed Dec 4 13:36:51 PST 2013


I can't speak for x86-darwin8, but powerpc-darwin8 stubs have been working 
quite well for me, validated against what the system gcc (4.0.1) emits. 
For the sake of consistency and validation (and selfishness), I'm all for 
keeping and maintaining stubs, so my branch is less divergent from trunk.

Though I don't have an x86-darwin8 system running, I can still target x86 
with the system toolchain to help validate.  How broken is it exactly?

David

>>> The attached patches disable the production of stubs on darwin x86.
>>> These were needed with older linkers, but Jim mentioned that using
>>> older tools (about 6 years in this case I think) with current clang is
>>> not supported.
>>>
>>> The existing code also confuses the linker version with the OS being
>>> targeted. My understanding is that with this patch it is still
>>> possible to build code that will run on OS X 10.4, one just needs a
>>> newer linker.
>>
>> The new compiler still needs to be able to produce code that deploys back to 10.5. The newer linker will synthesize the stubs. I think you are right that the code will still run. But it would be nice to be able to verify it.
>
> Just a nit, 10.5 is darwin9, which is not modified by this patch at
> all. Currently we only produce stubs for darwin8 and older (OS X
> 10.4).
>
> Cheers,
> Rafael
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>

-- 
David Fang
http://www.csl.cornell.edu/~fang/




More information about the llvm-commits mailing list