OSDN Git Service

In gcc/objc/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Nov 2010 23:12:49 +0000 (23:12 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Nov 2010 23:12:49 +0000 (23:12 +0000)
commit6d922cb7efcf21bafce2f0f5b98d6a29cdbdcf26
tree116650c2d71cbf74dc4d68bcf57d5135b736a64b
parent9a56024d74d1ad3977ee5b657249d8ae07462b94
In gcc/objc/:
2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>

        * objc-act.c (objc_build_setter_call): New.
        (objc_maybe_build_modify_expr): Rewritten to build a compound
        statement.
        (objc_build_incr_expr_for_property_ref): Updated calls to
        objc_maybe_build_modify_expr to call objc_build_setter_call
        instead.  Use build_modify_expr () instead of build2 (MODIFY_EXPR,
        ...).  Use convert () instead of build1 (NOP_EXPR, ...).  Use
        TREE_NO_WARNING on the final compound statement to silence C++
        warnings.

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

        * objc.dg/property/dotsyntax-18.m: New.
        * objc.dg/property/dotsyntax-19.m: New.
        * objc.dg/property/dotsyntax-20.m: New.
        * obj-c++.dg/property/dotsyntax-18.mm: New.
        * obj-c++.dg/property/dotsyntax-19.mm: New.
        * obj-c++.dg/property/dotsyntax-20.mm: New.
        * objc.dg/property/dotsyntax-4.m: Removed some unused variables and code.
        * objc.dg/property/dotsyntax-6.m: Same change.
        * objc.dg/property/dotsyntax-16.m: Same change.
        * objc.dg/property/dotsyntax-17.m: Same change.
        * obj-c++.dg/property/dotsyntax-4.mm: Same change.
        * obj-c++.dg/property/dotsyntax-6.mm: Same change.
        * obj-c++.dg/property/dotsyntax-16.mm: Same change.
        * obj-c++.dg/property/dotsyntax-17.mm: Same change.
        * objc.dg/property/at-property-22.m: Added missing casts.
        * obj-c++.dg/property/at-property-22.mm: Same change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166779 138bc75d-0d04-0410-961f-82ee72b054a4
19 files changed:
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-22.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-16.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-17.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-18.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/dotsyntax-19.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/dotsyntax-20.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/property/dotsyntax-4.mm
gcc/testsuite/obj-c++.dg/property/dotsyntax-6.mm
gcc/testsuite/objc.dg/property/at-property-22.m
gcc/testsuite/objc.dg/property/dotsyntax-16.m
gcc/testsuite/objc.dg/property/dotsyntax-17.m
gcc/testsuite/objc.dg/property/dotsyntax-18.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/dotsyntax-19.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/dotsyntax-20.m [new file with mode: 0644]
gcc/testsuite/objc.dg/property/dotsyntax-4.m
gcc/testsuite/objc.dg/property/dotsyntax-6.m