This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: A serious -fpic and -fomit-frame-pointer bug in egcs 1.0.3/1.1
- To: law at cygnus dot com
- Subject: Re: A serious -fpic and -fomit-frame-pointer bug in egcs 1.0.3/1.1
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 6 Jul 1998 07:57:27 -0700 (PDT)
- Cc: egcs-bugs at cygnus dot com
>
> 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)