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] |
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.
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.
Attachment:
fixAda.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |