utils2.c (build_binary_op): Do not mark the left operand as addressable.
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 24 Jul 2011 12:50:41 +0000 (12:50 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 24 Jul 2011 12:50:41 +0000 (12:50 +0000)
* gcc-interface/utils2.c (build_binary_op) <ARRAY_REF>: Do not mark the
left operand as addressable.

From-SVN: r176713

gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c

index eeca1f37ed5c46d0a5d8ecded4d2026c4482f03e..01ab4e6d8f0c6c405cda436661d84c8c451ba07f 100644 (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.
index db894298d66bfaf805bffd4bf1c5cf3ce27d2383..5f3f03a3e0de3b6551125e6c818772000b945607 100644 (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;