Remove code leftover that has never been used.
authorMartin Liska <mliska@suse.cz>
Wed, 28 Aug 2019 06:39:47 +0000 (08:39 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 28 Aug 2019 06:39:47 +0000 (06:39 +0000)
2019-08-28  Martin Liska  <mliska@suse.cz>

PR tree-optimization/90970
* builtins.c (check_access): Remove assignment to maxread
as it hasn't been used since when it was introduced in r255755.

From-SVN: r274983

gcc/ChangeLog
gcc/builtins.c

index 1213e958bb8a2d0b3bda43c7c4bbf99c87e85230..1948829155804fa9f64c7c330ab656df6dc5e84b 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-28  Martin Liska  <mliska@suse.cz>
+
+       PR tree-optimization/90970
+       * builtins.c (check_access): Remove assignment to maxread
+       as it hasn't been used since when it was introduced in r255755.
+
 2019-08-27  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/91567
index f902e246f1f347be4d4dc04e339fa865393039fe..0b25adc17a0ba68e73671b6e7ded189171e03e11 100644 (file)
@@ -3475,11 +3475,6 @@ check_access (tree exp, tree, tree, tree dstwrite,
   if (maxread)
     {
       get_size_range (maxread, range);
-
-      /* Use the lower end for MAXREAD from now on.  */
-      if (range[0])
-       maxread = range[0];
-
       if (range[0] && dstsize && tree_fits_uhwi_p (dstsize))
        {
          location_t loc = tree_nonartificial_location (exp);