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: [RFC][objc] Get rid of aliasing warning for @selector()



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


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