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: [tree-ssa] objective-c gimplify


Ping?


On Sunday, Jun 15, 2003, at 16:49 US/Eastern, Andrew Pinski wrote:


It looks like Objective-C's parser really just generates C trees so it could just use the c gimplifier.

Can someone try this patch, I tried it and it worked but there are problems with extra warnings:
`type-punning to incomplete type might break strict-aliasing rules' which is really caused by the parser
actually generating tree with casts in it but this warning also happens on the mainline also.



ChangeLog: 2003-06-15 Andrew Pinski <pinskia@physics.uc.edu>

	* objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR): Define
	as the c gimplifier.


Patch: Index: objc/objc-lang.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/objc/objc-lang.c,v retrieving revision 1.24.2.6 diff -u -d -b -w -u -p -r1.24.2.6 objc-lang.c --- objc/objc-lang.c 9 Apr 2003 19:28:46 -0000 1.24.2.6 +++ objc/objc-lang.c 15 Jun 2003 20:42:04 -0000 @@ -121,6 +121,8 @@ static void objc_init_options #define LANG_HOOKS_INCOMPLETE_TYPE_ERROR c_incomplete_type_error #undef LANG_HOOKS_TYPE_PROMOTES_TO #define LANG_HOOKS_TYPE_PROMOTES_TO c_type_promotes_to +#undef LANG_HOOKS_GIMPLIFY_EXPR +#define LANG_HOOKS_GIMPLIFY_EXPR c_gimplify_expr

 /* Each front end provides its own hooks, for toplev.c.  */
 const struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;

Thanks,
Andrew Pinski


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