This is the mail archive of the gcc-bugs@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 serious -fpic and -fomit-frame-pointer bug in egcs 1.0.3/1.1


> 
> I think the real bug is in INITIAL_ELIMINATION_OFFSET and related code, not
> in the x86 prologue code.
> 

I can see this bug is INITIAL_ELIMINATION_OFFSET related. But it is
hard to tell if the bug is in INITIAL_ELIMINATION_OFFSET itself. ebx
is used or not depends not only on PIC, but also optimization and
CPU. INITIAL_ELIMINATION_OFFSET is used twice in reload1.c. I can
think of 2 possible fixes:

1. Remove one of them.
2. Treat both of them the same.

But you already stated that 

Wed Jun 24 21:03:43 1998  H.J. Lu  (hjl@gnu.org)

        * reload1.c (reload_as_needed): Re-calculate memory locations
        and addresses for pseudo registers.
 
which is (2), is incorrect. I guess we have to find other way to fix
it.


-- 
H.J. Lu (hjl@gnu.org)


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