This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
2.95.3.test4 problem
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 2.95.3.test4 problem
- From: Richard Zidlicky <Richard dot Zidlicky at stud dot informatik dot uni-erlangen dot de>
- Date: Sat, 17 Mar 2001 23:28:19 +0100
Hello,
an -fPIC related problem, appeared in lesstif-0.92.21
compile command:
gcc -O2 -fomit-frame-pointer -m68020-60 -Wmissing-prototypes \
-Wstrict-prototypes -Wimplicit-function-dec -Wimplicit-int \
-Wmissing-declarations -S display.i -fPIC -DPIC -o display.s
- file display.i attached.
wrong code generated for _XmGetXmDisplayClass - stack pointer is never poped
_XmGetXmDisplayClass:
move.l %a5,-(%sp)
lea (%pc, _GLOBAL_OFFSET_TABLE_@GOTPC), %a5
move.l __XmDisplayClass@GOT(%a5),%a0
tst.l (%a0)
jbne .L92
move.l xmDisplayClassRec@GOT(%a5),(%a0)
.L92:
move.l (%a0),%a0
rts
Bye
Richard
display.i.bz2