aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/builtins.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1213e95..1948829 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/builtins.c b/gcc/builtins.c
index f902e24..0b25adc 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -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);