[FFmpeg-devel] [PATCH] Fix compilation with llvm-gcc on x86_64

Michael Niedermayer michaelni
Sun Nov 1 18:11:20 CET 2009

On Sun, Nov 01, 2009 at 04:45:11PM +0000, Mans Rullgard wrote:
> Apparently llvm dislikes +g constraints with int operands.  This uses

compiler bug?

> a temporary x86_reg variable to avoid that situation.  Using a cast is

this slows the code down, x86_reg might be a different number of bits than
int. For example the int function argument may be 32bit on the stack and
if g now is feeded wih 64bit then there has to be a memory read and a memory
write if no register is left.

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091101/6030b0a2/attachment.pgp>

More information about the ffmpeg-devel mailing list