This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: A very "strange" bug in gcc 2.96
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: A very "strange" bug in gcc 2.96
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 22 May 2000 11:28:44 -0600
- cc: hjl at lucon dot org, egcs at egcs dot cygnus dot com, binutils at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
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