This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] [Darwin PPC] Fix g++.dg/template/inline1.C
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>
- Date: Mon, 30 Jun 2003 08:59:03 -0400
- Subject: [PATCH] [Darwin PPC] Fix g++.dg/template/inline1.C
The problem is that g++.dg/template/inline1.C looks for
_ZN1X3FooIiEEvT_: which is in Darwin PPC because darwin use of stubs.
This fixes by changes the label use in darwin's stub so that they will
not match this.
Stub before:
L__ZN1X3FooIiEEvT_$stub:
.indirect_symbol __ZN1X3FooIiEEvT_
mflr r0
bcl 20,31,L0$__ZN1X3FooIiEEvT_
L0$__ZN1X3FooIiEEvT_: ;<---- see how this will match!
mflr r11
addis
r11,r11,ha16(L__ZN1X3FooIiEEvT_$lazy_ptr-L0$__ZN1X3FooIiEEvT__0)
mtlr r0
lwzu
r12,lo16(L__ZN1X3FooIiEEvT_$lazy_ptr-L0$__ZN1X3FooIiEEvT__0)(r11)
mtctr r12
bctr
Stub after:
L__ZN1X3FooIiEEvT_$stub:
.indirect_symbol __ZN1X3FooIiEEvT_
mflr r0
bcl 20,31,L0$__ZN1X3FooIiEEvT__0
L0$__ZN1X3FooIiEEvT__0:
mflr r11
addis
r11,r11,ha16(L__ZN1X3FooIiEEvT_$lazy_ptr-L0$__ZN1X3FooIiEEvT__0)
mtlr r0
lwzu
r12,lo16(L__ZN1X3FooIiEEvT_$lazy_ptr-L0$__ZN1X3FooIiEEvT__0)(r11)
mtctr r12
bctr
ChangeLog:
2003-06-30 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): add "_0" to the
end of the labels.
Patch:
Attachment:
temp.1.diff
Description: Binary data
Thanks,
Andrew Pinski