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]

Re: ObjC/ObjC++: Fix property encoding on Apple


Jack,

thanks a lot for your help. I'm glad I asked, as you spotted a problem :-)

Error - property_getAttributes ("long_property") returns "Tq,Vlong_property"
FAIL: objc.dg/property/property-encoding-1.m -fnext-runtime execution test

Ah! That's because @encode(long) is 'q' as opposed to 'l' on that architecture.


In attach, the testcase adjusted to work no matter when the encoding of the various
integer types is. It works for me on 32-bit if I manually force - fobjc-abi-version=1.


Can you replace that test with this one and let me know how it goes ? :-)

Thanks

Attachment: property-encoding-1.m
Description: Binary data



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