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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Sep 20 19:07:04 CEST 2011

On Tue, Sep 20, 2011 at 09:57:56AM +0000, Carl Eugen Hoyos wrote:
> Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
> > 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.
> Ping.
> Does this have any negative impact except being a hack?

Not really, and since it seems like nobody will come up with something
proper or flaming the gcc developers I pushed it...

More information about the ffmpeg-devel mailing list