[FFmpeg-devel] [PATCH] Hack around gcc 4.6 breaking asm using call.

Michael Niedermayer michaelni at gmx.at
Mon Aug 29 00:47:59 CEST 2011


On Sun, Aug 28, 2011 at 09:16:49PM +0200, Reimar Döffinger wrote:
> gcc 4.6 no longer decrements esp to account for local variables.
> Thus using call will end up overwriting some local variable.
> So add an extra one it can safely clobber.
> This is a huge hack because it's basically pure chance it works,
> no idea how this is supposed to be done.
>
> Fixes trac ticket #397.
> 
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>

if its the best we have, i wont be angry if you commit it but it really
is the most hackish thing ive seen in a long time

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110829/5d672c9b/attachment.asc>


More information about the ffmpeg-devel mailing list