This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A very "strange" bug in gcc 2.96
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: A very "strange" bug in gcc 2.96
- From: eric at biederman dot org (Eric W. Biederman)
- Date: 23 May 2000 08:22:03 -0500
- CC: <gcc at gcc dot gnu dot org>
- References: <200005221742.KAA19115@kankakee.wrs.com>
Mike Stump <mrs@windriver.com> writes:
> > Date: 21 May 2000 13:42:42 -0700
> > From: Ian Lance Taylor <ian@zembu.com>
> > To: drepper@cygnus.com
>
> > Note that the reason the new optimization fails is that the
> > assembler translates the jmp into a short branch instruction. If
> > the assembler translated the jmp into a 32 bit branch with a reloc,
> > then I believe everything would still work correctly. At least on
> > the i386. However, doing this would disable part of the
> > optimization.
>
The problem is that gas when it's deciding how long to make the jmp
instruction for x86 it was forgetting to take relocations into account.
So gcc is fine. It's just that for gcc3.0 you need to require
an updated/fixed version of gas.
Which I believe is now at exists.
Eric