diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-01-12 22:30:56 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-01-12 22:30:56 +0100 |
commit | 3eefa646f4c90689953d63d6ef861692a858fd61 (patch) | |
tree | e30ea92b84e0d2c031c221ebdc2c4f8029c6bb83 /gcc/tree-pretty-print.c | |
parent | b34f29a19deb8c59bd151d50435e28472f1d23ae (diff) | |
download | gcc-3eefa646f4c90689953d63d6ef861692a858fd61.zip gcc-3eefa646f4c90689953d63d6ef861692a858fd61.tar.gz gcc-3eefa646f4c90689953d63d6ef861692a858fd61.tar.bz2 |
gimple-ssa-sprintf.c (try_substitute_return_value): Remove info.nowrite calls with no lhs that can't throw.
* gimple-ssa-sprintf.c (try_substitute_return_value): Remove
info.nowrite calls with no lhs that can't throw. Return bool
whether gsi_remove has been called or not.
(pass_sprintf_length::handle_gimple_call): Return bool whether
try_substitute_return_value called gsi_remove. Formatting fix.
(pass_sprintf_length::execute): Don't use gsi_remove if
handle_gimple_call returned true.
* gcc.dg/tree-ssa/builtin-snprintf-1.c: New test.
From-SVN: r244384
Diffstat (limited to 'gcc/tree-pretty-print.c')
0 files changed, 0 insertions, 0 deletions