In gcc/: 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
commit925e8657ce3e2d02766697a98fe2b51412979b30
authorNicola Pero <nicola.pero@meta-innovation.com>
Mon, 15 Nov 2010 18:46:42 +0000 (15 18:46 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Mon, 15 Nov 2010 18:46:42 +0000 (15 18:46 +0000)
treec064bc86c2dd877b014c5bb9bac5ed26f06dcd5f
parent4cc13d9d7aae52ba0b6841a2b82fe81d54615aa1
In gcc/: 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * c-typeck.c (build_unary_op): Use
        objc_build_incr_expr_for_property_ref to build the pre/post
        increment/decrement of an Objective-C property ref, and skip the
        lvalue_or_else check in that case.

In gcc/c-family/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * c-common.h (objc_build_incr_expr_for_property_ref): New.
        * stub-objc.c (objc_build_incr_expr_for_property_ref): New.

In gcc/cp/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * typeck.c (cp_build_unary_op): Use
        objc_build_incr_expr_for_property_ref to build the pre/post
        increment/decrement of an Objective-C property ref.

In gcc/objc/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-act.c (objc_build_incr_expr_for_property_ref): New.
        (objc_create_temporary_var): Moved it towards the beginning of the
        file so that objc_build_incr_expr_for_property_ref can use it.

In gcc/testsuite/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc.dg/property/dotsyntax-16.m: New.
        * objc.dg/property/dotsyntax-17.m: New.
        * obj-c++.dg/property/dotsyntax-16.mm: New.
        * obj-c++.dg/property/dotsyntax-17.mm: New.
        * objc.dg/property/at-property-10.m: Uncommented using 'x++'
        syntax with properties, which now works.
        * obj-c++.dg/property/at-property-10.mm: Same change.

From-SVN: r166763
16 files changed:
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.h
gcc/c-family/stub-objc.c
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-10.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-16.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/property/at-property-10.m
gcc/testsuite/objc.dg/property/dotsyntax-16.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/dotsyntax-17.m [new file with mode: 0644]