[MPlayer-dev-eng] [PATCH] Fix MPlayer to compile on Darwin/x86_86

Guillaume POIRIER poirierg at gmail.com
Sat Jun 6 14:57:33 CEST 2009


Hi,

On Tue, Jun 2, 2009 at 10:57 PM, Loren Merritt <lorenm at u.washington.edu>wrote:

> On Tue, 2 Jun 2009, Loren Merritt wrote:
>
>> On Tue, 2 Jun 2009, Guillaume POIRIER wrote:
>>
>>  I have not found where in Apple's doc that information is written.
>>> However,
>>> here's what one of Apple's engineer has responded to me about that
>>> problem:
>>>
>>> This is a courtesy email regarding Bug ID# 6910963.
>>> Engineering has provided the following feedback regarding this issue:
>>> Thank you for the additional information.
>>> The asm code is wrong for 64-bit.  The software needs porting to work.
>>>  You
>>> cannot use the "g" constraint for mov.  mov will take an "r" for example
>>> of
>>> a constraint that will work.
>>>
>>
>> You can you a "g" constraint for mov; it supports 64bit immediates.
>> But mov is the only such instruction. You can't use "g" constraint for
>> cmp, if the value might not fit in int32.
>>
>
> You can, however, use an "erm" constraint, which specifies the limit on
> immediate size.
>
>
Yep, that indeed works.Please find in attachment an update patch based on
your feedback.

Cheers,

Guillaume

-- 
Only a very small fraction of our DNA does anything; the rest is all
comments and ifdefs.

Steven Wright<http://www.brainyquote.com/quotes/authors/s/steven_wright.html>
- "It's a small world, but I wouldn't want to have to paint it."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x86_64-darwin.1.diff
Type: application/octet-stream
Size: 1378 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090606/fcdff7d5/attachment.obj>


More information about the MPlayer-dev-eng mailing list