This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

[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

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