diff options
Diffstat (limited to 'gcc/ada/gcc-interface/utils2.c')
-rw-r--r-- | gcc/ada/gcc-interface/utils2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index 79c5a1f..d0769f7 100644 --- a/gcc/ada/gcc-interface/utils2.c +++ b/gcc/ada/gcc-interface/utils2.c @@ -1396,9 +1396,8 @@ build_unary_op (enum tree_code op_code, tree result_type, tree operand) tree rec_type = TREE_TYPE (type); if (TREE_CODE (operand) == POINTER_PLUS_EXPR - && integer_zerop - (size_binop (PLUS_EXPR, TREE_OPERAND (operand, 1), - byte_position (TYPE_FIELDS (rec_type)))) + && TREE_OPERAND (operand, 1) + == byte_position (DECL_CHAIN (TYPE_FIELDS (rec_type))) && TREE_CODE (TREE_OPERAND (operand, 0)) == NOP_EXPR) { operand = TREE_OPERAND (TREE_OPERAND (operand, 0), 0); |