OSDN Git Service

In gcc/objc/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Dec 2010 18:26:56 +0000 (18:26 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Dec 2010 18:26:56 +0000 (18:26 +0000)
commit9436777ecd31805188efd420f2960915ea5b8eec
tree43a6e7abb3563b355e1079efa3f54b7b92198ea8
parent3cbcf73c5927020a88f3b75bc94ca16d8a959ec6
In gcc/objc/:
2010-12-30  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc-act.c (objc_add_method): When emitting an error because a
method with the same name but conflicting types is found in the
same class or category interface, print a note with the location
of the original method.  Also, improved the error message to
clearly state that the conflict is due to conflicting types, and
produce it for protocols as well.  Emit an error if two identical
methods are declared in a protocol, but one is @required and the
other one is @optional.  When

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

* objc.dg/class-extension-3.m: Updated.
* objc.dg/method-1.m: Updated.
* objc.dg/method-conflict-1.m: New.
* objc.dg/method-conflict-2.m: New.
* obj-c++.dg/class-extension-3.mm: Updated.
* obj-c++.dg/method-8.mm: Updated.
* obj-c++.dg/method-conflict-1.mm: New.
* obj-c++.dg/method-conflict-2.mm: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168350 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/class-extension-3.mm
gcc/testsuite/obj-c++.dg/method-8.mm
gcc/testsuite/obj-c++.dg/method-conflict-1.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/method-conflict-2.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/class-extension-3.m
gcc/testsuite/objc.dg/method-1.m
gcc/testsuite/objc.dg/method-conflict-1.m [new file with mode: 0644]
gcc/testsuite/objc.dg/method-conflict-2.m [new file with mode: 0644]