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: Preserve ObjC type-casts in C++'s build_c_cast()


Ziemowit Laski wrote:

This patch is analogous to one I installed in the C front-end a while back,
after much discussion as I recall. :-) To recap: ObjC types differing only
in protocol conformance (e.g., 'NSObject *' vs. 'NSObject <Foo> *') will
appear equivalent to the C++ front-end, which is actually fine for most
things, but not casts, since we want to retain the protocol information.


OK for mainline?

Do you really want to do this if the types are actually the same? Or if one is a pointer-to-base and another is pointer-to-derived?


--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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