This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: An x86 -fpic and -fomit-frame-pointer bug
- To: hjl at lucon dot org
- Subject: Re: An x86 -fpic and -fomit-frame-pointer bug
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Sat, 20 Jun 1998 18:52:08 +0200 (MEST)
- Cc: john at feith dot com, law at cygnus dot com, egcs-bugs at cygnus dot com
- References: <199806140450.AAA05495@jwlab.FEITH.COM><m0ylp0Y-00026AC@ocean.lucon.org>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Mon, 15 June 1998, 23:14:14, hjl@lucon.org wrote:
> Hi,
>
> Here is a test case for an x86 -fpic and -fomit-frame-pointer bug.
> cexp.cc is miscompiled by -fpic and -fomit-frame-pointer. Basically
> ebx saved on the stack is overriden by
>
> fstpl (%esp)
>
> Later,
>
> popl %ebx
>
> put some garbage in ebx. Without -fpic or -fomit-frame-pointer, cexp.s
> is compiled fine.
>
> BTW, egcs 1.0.3 is ok. The last working egcs 1.1 is 971215 and 971225
> has the same bug.
H.J., your example is incomplete; the file "cexp.h" is missing!
Thanks.
manfred