A very "strange" bug in gcc 2.96
Jeffrey A Law
law@cygnus.com
Mon May 22 10:38:00 GMT 2000
In message < 20000521123156E.mitchell@codesourcery.com >you write:
> >>>>> "H" == H J Lu <hjl@lucon.org> writes:
>
> H> There is the ia32 asm ouput from gcc 2.96 with -O2. Please
> H> notice that
>
> H> jmp foo
>
> H> is generated, instead of
>
> H> call foo leave ret
>
> This is presumably due to the new sibling call optimization.
>
> Richard, Jeff: I would very much appreciate your comments on this
> issue.
There was a lot of discussion on this over the weekend. Anyone care to
post an exec summary?
My gut feeling is the assembler should be leaving this as a 32bit jump so
that it can be twiddled as necessary at link time.
jeff
More information about the Binutils
mailing list