do not emit bogus set-not-used warnings for objc* entities used as message receivers.
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2010 14:05:24 +0000 (14:05 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Oct 2010 14:05:24 +0000 (14:05 +0000)
commit604b19082e151f5a88e2bd495dcf15d8274ba13d
treecf236f98bc8a616033ac7a6dc99454808110a4ec
parent325015e48373e0c6c407b6d511973581044977b2
do not emit bogus set-not-used warnings for objc* entities used as message receivers.

gcc/objc:
* objc-act.c (objc_build_message_expr):  Call mark_exp_read () to signal that
the receiver has been used.
gcc/testsuite:
* objc.dg/set-not-used-1.m: New
* obj-c++.dg/set-not-used-1.mm: New.

git-svn-id: svn://gcc.gnu.org/svn/gcc/trunk@165111 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/set-not-used-1.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/set-not-used-1.m [new file with mode: 0644]