A serious -fpic and -fomit-frame-pointer bug in egcs 1.0.3/1.1

H.J. Lu hjl@lucon.org
Mon Jul 6 07:57:00 GMT 1998


> 
> 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)



More information about the Gcc-bugs mailing list