diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2011-07-24 12:50:41 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-07-24 12:50:41 +0000 |
commit | 4b4cfdd5e1104810953caefe50729f87e79239ec (patch) | |
tree | d5faac706274a2a10f9d6bd409e2d42ee632d9b8 /gcc/ada | |
parent | f3d3457603f3d0566555fae58341e9f3137cfdb5 (diff) | |
download | gcc-4b4cfdd5e1104810953caefe50729f87e79239ec.zip gcc-4b4cfdd5e1104810953caefe50729f87e79239ec.tar.gz gcc-4b4cfdd5e1104810953caefe50729f87e79239ec.tar.bz2 |
utils2.c (build_binary_op): Do not mark the left operand as addressable.
* gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
left operand as addressable.
From-SVN: r176713
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ada/gcc-interface/utils2.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index eeca1f3..01ab4e6 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,5 +1,10 @@ 2011-07-24 Eric Botcazou <ebotcazou@adacore.com> + * gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the + left operand as addressable. + +2011-07-24 Eric Botcazou <ebotcazou@adacore.com> + * gcc-interface/gigi.h (build_function_stub): Remove. (build_return_expr): Likewise. (convert_vms_descriptor): Declare. diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index db89429..5f3f03a 100644 --- a/gcc/ada/gcc-interface/utils2.c +++ b/gcc/ada/gcc-interface/utils2.c @@ -721,11 +721,6 @@ build_binary_op (enum tree_code op_code, tree result_type, unneeded sign conversions when sizetype is wider than integer. */ right_operand = convert (right_base_type, right_operand); right_operand = convert (sizetype, right_operand); - - if (!TREE_CONSTANT (right_operand) - || !TREE_CONSTANT (TYPE_MIN_VALUE (right_type))) - gnat_mark_addressable (left_operand); - modulus = NULL_TREE; break; |