This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][objc] Get rid of aliasing warning for @selector()
- From: Ziemowit Laski <zlaski at apple dot com>
- To: Alexander Malmberg <alexander at malmberg dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 Jun 2004 18:27:29 -0700
- Subject: Re: [RFC][objc] Get rid of aliasing warning for @selector()
- References: <40D8D510.6BB59848@malmberg.org>
On 22 Jun, 2004, at 17.55, Alexander Malmberg wrote:
+ expr = build_c_cast (ptr_type_node, expr);
return build_c_cast (objc_selector_type, expr);
How about simply saying
return convert (objc_selector_type, expr);
instead of the last two lines? Would that work?
--Zem
--------------------------------------------------------------
Ziemowit Laski 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group Cupertino, CA USA 95014-2083
Apple Computer, Inc. +1.408.974.6229 Fax .5477