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


Nicola,

Your patch in http://gcc.gnu.org/ml/gcc-patches/2011-03/txt00002.txt
regtested fine with -m32 and -m64 provided you apply the following change:

--- property-encoding-1.mm	2011-03-02 21:03:55.000000000 +0100
+++ /opt/gcc/work/gcc/testsuite/obj-c++.dg/property/property-encoding-1.mm	2011-03-02 21:36:23.000000000 +0100
@@ -108,7 +108,7 @@ int main(int argc, char **args)
     error (p);
 
   p = class_getProperty (c, "long_property");
-  if (strcmp ("Tl,Vlong_property", property_getAttributes (p)) != 0)
+  if (strcmp ("Tq,Vlong_property", property_getAttributes (p)) != 0)
     error (p);
 
   p = class_getProperty (c, "float_property");

It would probably be better to use the same "machinery" than in
gcc/testsuite/objc.dg/property/property-encoding-1.m, but doing it is
beyond my ability.

Cheers,

Dominique


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