From: Eric Botcazou Date: Sun, 24 Jul 2011 12:50:41 +0000 (+0000) Subject: utils2.c (build_binary_op): Do not mark the left operand as addressable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b4cfdd5e1104810953caefe50729f87e79239ec;p=gcc.git utils2.c (build_binary_op): Do not mark the left operand as addressable. * gcc-interface/utils2.c (build_binary_op) : Do not mark the left operand as addressable. From-SVN: r176713 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index eeca1f37ed5..01ab4e6d8f0 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2011-07-24 Eric Botcazou + + * gcc-interface/utils2.c (build_binary_op) : Do not mark the + left operand as addressable. + 2011-07-24 Eric Botcazou * gcc-interface/gigi.h (build_function_stub): Remove. diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index db894298d66..5f3f03a3e0d 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;