[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code

2009-03-29 Thread ayers at gcc dot gnu dot org


--- Comment #8 from ayers at gcc dot gnu dot org  2009-03-29 08:09 ---
Subject: Bug 27377

Author: ayers
Date: Sun Mar 29 08:09:44 2009
New Revision: 145225

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145225
Log:
gcc/
2009-03-00  David Ayers  ay...@fsfe.org

PR objc/27377
* c-typeck.c (build_conditional_expr): Emit ObjC warnings
by calling objc_compare_types and surpress warnings about
incompatible C pointers that are compatible ObjC pointers.

testsuite/
2009-03-00  David Ayers  ay...@fsfe.org

PR objc/27377
* objc.dg/conditional-1.m: New tests.


Added:
trunk/gcc/testsuite/objc.dg/conditional-1.m
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377



[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code

2009-03-19 Thread ayers at gcc dot gnu dot org


--- Comment #7 from ayers at gcc dot gnu dot org  2009-03-19 07:07 ---
For the record: the official RFA was posted here:

http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00666.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377



[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code

2009-03-14 Thread ayers at gcc dot gnu dot org


-- 

ayers at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |ayers at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377



[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code

2009-03-14 Thread ayers at gcc dot gnu dot org


--- Comment #6 from ayers at gcc dot gnu dot org  2009-03-14 17:11 ---
Created an attachment (id=17465)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17465action=view)
patch for build_conditional_expr

This patch for build_conditional_expr is modeled after build_binary_op in that
it skips the diagnostic if the objc_compare_types verifies that the types are
compatible.

If the maintainers wish, I can follow up with a little optimization for the C
front end for both build_conditional_expr and build_binary_op in that
objc_compare_types will only be called for c_dialect_objc.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377



[Bug objc/27377] [4.2/4.3/4.4 Regression] false compiler warnings generated in Objective-C code

2008-07-04 Thread jsm28 at gcc dot gnu dot org


--- Comment #5 from jsm28 at gcc dot gnu dot org  2008-07-04 21:21 ---
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.1/4.2/4.3/4.4 Regression]|[4.2/4.3/4.4 Regression]
   |false compiler warnings |false compiler warnings
   |generated in Objective-C|generated in Objective-C
   |code|code
   Target Milestone|4.1.3   |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377