This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix ObjC protocol qualification lossage (Take 2)


Ziemowit Laski wrote:

(Renamed is_id to objc_is_id, per Neil's suggestion)

The following patch addresses a bug whereby the protocol
qualifications of ObjC objects were sometimes forgotten,
leading to erroneous warning messages.  This issue was raised
on the gcc list a few days ago, and I believe it to be a regression
from 2.95.x.

Bootstrapped on i686-pc-linux-gnu with no regressions, plus there
is a test case.  OK?
OK, with the caveat below.

+ /* Test for situations in which protocol conformance information
+    may be lost, leading to superfluous warnings.  */
+ /* Author: Ziemowit Laski <zlaski@apple.com>.  */
+ /* { dg-do compile } */
+ /* { dg-options "-Werror" } */
The -Werror shouldn't be necessary;  any warnings that do not
have a corresponding dg-warning, or vice versa, will result in
a failure.

Stan



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]