utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP on array references here...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 31 Jul 2014 12:57:54 +0000 (12:57 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 31 Jul 2014 12:57:54 +0000 (14:57 +0200)
* gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
on array references here, now done more selectively in trans.c.

From-SVN: r213356

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

index 42c927f..61652dc 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-31  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/utils2.c ((build_binary_op): Don't set TREE_THIS_NOTRAP
+       on array references here, now done more selectively in trans.c.
+
 2014-07-31  Doug Rupp  <rupp@adacore.com>
 
        * gcc-interface/misc.c (gnat_init_gcc_fp(): Set flag_errno_math to 0.
index dd4151b..e6e4887 100644 (file)
@@ -1177,7 +1177,6 @@ build_binary_op (enum tree_code op_code, tree result_type,
     ;
   else if (op_code == ARRAY_REF || op_code == ARRAY_RANGE_REF)
     {
-      TREE_THIS_NOTRAP (result) = 1;
       if (TYPE_VOLATILE (operation_type))
        TREE_THIS_VOLATILE (result) = 1;
     }