This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A very "strange" bug in gcc 2.96


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]