[PATCH] Fix Ada bootstrap on ppc-darwin

Andrew Pinski pinskia@physics.uc.edu
Wed Jul 20 17:37:00 GMT 2005


This patch fixes the Ada bootstrap on ppc-darwin by forcing Ada not to
produce ADDR_EXPR<CONSTRUCTOR> in its trees.  Note this really works
around a cgraph defect for non GENERIC trees but since everyone dealing
with trees have said that ADDR_EXPR<CONSTRUCTO> should not be used, I
decided this was the best way forward.

OK?  Bootstrapped and tested on powerpc-darwin and x86_64-pc-linux-gnu 
(by
Laurent Guerby).

Thanks,
Andrew Pinski

ChangeLog:
	* gimplify.c (gimplify_build_fold_addr_expr): New function, handle
	CONSTRUCTORs special.
	(gimplify_variable_sized_compare): Use gimplify_build_fold_addr_expr.
	(gimplify_addr_expr): Likewise.

Ada/ChangeLog:
	* trans.c (gnat_gimplify_expr): Don't handle ADDR_EXPR.
	(addressable_p): Don't handle CONSTRUCTOR.
	* utils2.c: Include tree-gimple.h and toplev.h.
	(build_unary_op): Handle ADDR_EXPR of CONSTRUCTORs.
	(gnat_mark_addressable): Don't handle CONSTRUCTOR.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixAda.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050720/d5bcd26b/attachment.txt>


More information about the Gcc-patches mailing list