This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

2.95.3.test4 problem



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]