From 2614034eead349c8ae65e7f106bdce4212e9b71a Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 23 Dec 2004 14:02:33 +0100 Subject: re PR middle-end/17746 (ICE when building the Ada RTS) PR middle-end/17746 * expr.c (get_inner_reference): Add 'keep_aligning' parameter. Break on aligning VIEW_CONVERT_EXPR nodes on STRICT_ALIGNMENT platforms only if keep_aligning is true. (expand_assignment): Adjust call to get_inner_reference. (expand_expr_addr_expr_1): Likewise. (expand_expr_real_1): Likewise. * dojump.c (do_jump): Likewise. * dwarf2out.c (loc_descriptor_from_tree_1): Likewise. * fold-const.c (optimize_bit_field_compare): Likewise. (decode_field_reference): Likewise. (split_address_to_core_and_offset): Likewise. * tree-ssa-loop-ivopts.c (split_address_cost): Likewise. * expr.h (get_inner_reference): Adjust prototype. ada/ * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference. * utils2.c (build_unary_op): Likewise. From-SVN: r92549 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/trans.c | 2 +- gcc/ada/utils2.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/ada') diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 479443a..792ddcd 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2004-12-23 Eric Botcazou + + * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference. + * utils2.c (build_unary_op): Likewise. + 2004-12-22 Richard Kenner * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED. diff --git a/gcc/ada/trans.c b/gcc/ada/trans.c index 0db1709..a93ff5d 100644 --- a/gcc/ada/trans.c +++ b/gcc/ada/trans.c @@ -932,7 +932,7 @@ Attribute_to_gnu (Node_Id gnat_node, tree *gnu_result_type_p, int attribute) && TREE_CODE (gnu_prefix) == FIELD_DECL)); get_inner_reference (gnu_prefix, &bitsize, &bitpos, &gnu_offset, - &mode, &unsignedp, &volatilep); + &mode, &unsignedp, &volatilep, false); if (TREE_CODE (gnu_prefix) == COMPONENT_REF) { diff --git a/gcc/ada/utils2.c b/gcc/ada/utils2.c index 3727ce4..04ab0cb 100644 --- a/gcc/ada/utils2.c +++ b/gcc/ada/utils2.c @@ -1087,7 +1087,7 @@ build_unary_op (enum tree_code op_code, tree result_type, tree operand) int unsignedp, volatilep; inner = get_inner_reference (operand, &bitsize, &bitpos, &offset, - &mode, &unsignedp, &volatilep); + &mode, &unsignedp, &volatilep, false); /* If INNER is a padding type whose field has a self-referential size, convert to that inner type. We know the offset is zero -- cgit v1.1