In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>
commit223706ad626f262e18f9ae7786cbc88509b088a5
authorNicola Pero <nicola.pero@meta-innovation.com>
Thu, 30 Dec 2010 18:26:56 +0000 (30 18:26 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Thu, 30 Dec 2010 18:26:56 +0000 (30 18:26 +0000)
tree43a6e7abb3563b355e1079efa3f54b7b92198ea8
parentae480e548c664521c9c79bfc586b8a2fc135ffde
In gcc/objc/: 2010-12-30 Nicola Pero <nicola.pero@meta-innovation.com>

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.

From-SVN: r168350
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]