An x86 -fpic and -fomit-frame-pointer bug

Manfred Hollstein manfred@s-direktnet.de
Sat Jun 20 10:05:00 GMT 1998


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



More information about the Gcc-bugs mailing list