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
This commit is contained in:
Eric Botcazou 2011-07-24 12:50:41 +00:00 committed by Eric Botcazou
parent f3d3457603
commit 4b4cfdd5e1
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -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;