Kostya <[email protected]> writes:

> On Mon, Jun 20, 2011 at 10:55:17AM +0100, Mans Rullgard wrote:
>> Nothing requires this value in %eax.
>
> IIUC, return value is put into eax, thus making asm output result directly
> into that register, thus preventing GCC from pessimising the code.

The function is often inlined where there is no return value as such.
In the non-inline case, gcc does use eax for that value on its own.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to