This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Handle weak symbols
Franz, Andreas --
I cannot replicate this problem with a PowerPC compiler either.
I get:
atexit:
mflr 0
stwu 1,-16(1)
lis 9,__dso_handle@ha
stw 0,20(1)
la 0,__dso_handle@l(9)
li 4,0
cmpwi 0,0,0
li 5,0
beq- 0,.L4
lwz 5,__dso_handle@l(9)
.L4:
bl __cxa_atexit
lwz 0,20(1)
addi 1,1,16
mtlr 0
blr
That looks OK to me. Am I wrong?
I'm willing to fix this problem, but I really need a test-case.
Please send me a test-case, and a target triplet for which this bug
occurs.
Thanks,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com