aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2018-10-02 08:10:16 -0600
committerJeff Law <law@gcc.gnu.org>2018-10-02 08:10:16 -0600
commit911ce7b502a243aa400d07b57975f02252db281e (patch)
treec600f9c56639c877515217ba435a7977ddc8a37e /gcc
parent6c4aa5f6bd8aacf51ddceb78239a7a2da0a1b959 (diff)
downloadgcc-911ce7b502a243aa400d07b57975f02252db281e.zip
gcc-911ce7b502a243aa400d07b57975f02252db281e.tar.gz
gcc-911ce7b502a243aa400d07b57975f02252db281e.tar.bz2
* gimple-fold.c (get_range_strlen): Remove dead code.
From-SVN: r264788
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gimple-fold.c9
2 files changed, 5 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 40f87aa..59a01f8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-10-02 Jeff Law <law@redhat.com>
+
+ * gimple-fold.c (get_range_strlen): Remove dead code.
+
2018-10-02 Martin Sebor <msebor@redhat.com>
Jeff Law <law@redhat.com>
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index cf04c92..fa1fc60 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -1345,14 +1345,7 @@ get_range_strlen (tree arg, tree length[2], bitmap *visited, int type,
/* If we potentially had a non-terminated string, then
bubble that information up to the caller. */
if (!val)
- {
- *nonstr = data.decl;
- /* If TYPE is asking for a maximum, then use any
- length (including the length of an unterminated
- string) for VAL. */
- if (type == 2)
- val = data.len;
- }
+ *nonstr = data.decl;
}
if (!val && fuzzy)