diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-02-21 11:35:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-02-21 11:35:46 +0100 |
commit | c8602fe6127fde5e75b4f9288f86d33a5b885660 (patch) | |
tree | f3981f123f3057a2fd6c9ed37212047a644e425f /libgfortran/runtime/stop.c | |
parent | b22dbd03f06c5d3b5e71ae99b55b5d7d21a11cd9 (diff) | |
download | gcc-c8602fe6127fde5e75b4f9288f86d33a5b885660.zip gcc-c8602fe6127fde5e75b4f9288f86d33a5b885660.tar.gz gcc-c8602fe6127fde5e75b4f9288f86d33a5b885660.tar.bz2 |
re PR tree-optimization/84478 (pdftex miscompilation on i386)
PR tree-optimization/84478
* gimple-fold.h (get_range_strlen): Add a bool argument defaulted to
false.
* gimple-fold.c (get_range_strlen): Make minlen const and assume it
can't be NULL. Change FUZZY from bool to int, for 1 add PHI/COND_EXPR
support which is conservatively correct, for 2 only stay conservative
for maxlen. Formatting and comment capitalization fixes. Add STRICT
argument to the 2 argument get_range_strlen, adjust 6 arg
get_range_strlen caller and clear minmaxlen[0] and [1] if it returned
false.
(get_maxval_strlen): Adjust 6 arg get_range_strlen caller.
(gimple_fold_builtin_strlen): Pass true as last argument to
get_range_strlen.
* gcc.c-torture/execute/pr84478.c: New test.
Co-Authored-By: Martin Sebor <msebor@redhat.com>
From-SVN: r257870
Diffstat (limited to 'libgfortran/runtime/stop.c')
0 files changed, 0 insertions, 0 deletions