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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Sep 21 19:19:20 CEST 2011

On Wed, Sep 21, 2011 at 12:56:25PM -0400, Gregory Maxwell wrote:
> On Tue, Sep 20, 2011 at 5:13 PM, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de> wrote:
> > Well, what then is the correct way to tell gcc "hey, I will use the call
> > instruction here, don't break it". Not being able to use call at all in
> > asm code can hardly be considered sensible?
> > All your comments may well be bugs, but I don't see how they would be
> > related to call not being usable.
> I can't find the gcc buzilla entry on this issue. Bugzilla is pretty
> hard to search though, can someone help me out?

I didn't add one since
a) it's quite a bit of effort
b) nobody gave me any opinion on whether or not it is a gcc bug
c) based on some of the red zone comments I guess it could be considered
part of the x86_64 ABI - decrementing esp by 128 directly before the
call and incrementing it again afterwards would supposedly be the
"correct" fix in that case.

More information about the ffmpeg-devel mailing list