[FFmpeg-cvslog] r29011 - in trunk/libswscale: swscale.c swscale_internal.h swscale_template.c

Gwenole Beauchesne gbeauchesne
Fri Mar 20 18:18:05 CET 2009


On Fri, 20 Mar 2009, Reimar D?ffinger wrote:

> On Fri, Mar 20, 2009 at 05:58:30PM +0100, Gwenole Beauchesne wrote:
>> On Fri, 20 Mar 2009, Reimar D?ffinger wrote:
>> 
>> > When you write a special x86_64 version where you have 16 registers
>> > available, what in the seven hells makes you use rbx, which is almost
>> > guaranteed to have issues?
>> > Fixed it, though I did not test it particularly thoroughly.
>> 
>> I don't think this would change anything, %rbx is not the PIC register on 
>> x86_64. The GOT is %rip relative, that was the goal. ;-)
>
> Quoted from FATE:
>> /Users/melanson/fate/source/libswscale/swscale_template.c:1247: error: PIC register ?%rbx? clobbered in ?asm?
>
> Either you are wrong or gcc is wrong. I guess you are because you
> actually don't know the OSX x86_64 ABI.

Mmmm, Mach-O was already a gross hack on 32-bit x86... I wonder what they 
use the %rip register for then.



More information about the ffmpeg-cvslog mailing list