-foptimize-sibling-calls and passing structs

Jamie Lokier egcs@tantalophile.demon.co.uk
Sun Jun 4 08:58:00 GMT 2000


Artur Skawina wrote:
> r() gets compiled to:
> 
>   <r>:
> 	sub    $0xc,%esp
> 	lea    0x10(%esp,1),%eax
> 	mov    %eax,0x10(%esp,1)
> 	add    $0xc,%esp
> 	jmp    <p>
> 
> which does seem to be a bit aggressive...

I assume you mean not aggressive enough.  It should be

    lea    4(%esp,1),%eax
    mov    %eax,4(%esp,1)
    jmp    <p>

:-)
-- Jamie


More information about the Gcc mailing list