tree-optimization: Fix use of uninitialized variable [PR94774]
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Mon, 27 Apr 2020 16:09:07 +0000 (18:09 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Wed, 29 Apr 2020 13:51:47 +0000 (15:51 +0200)
commit1657178f59bf0c5b269a668bcdcc432fac3bbdd0
tree25f29525f2df3693ce7f659b6c4fa545605d6993
parenta7201a085cc30f89944931d8fb1d7936f02a169f
tree-optimization: Fix use of uninitialized variable [PR94774]

Array retval is not necessarily initialized by function is_call_safe and
may be used afterwards.  Thus, initialize it explicitly.

gcc/ChangeLog:

2020-04-29  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>

PR tree-optimization/94774
* gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
variable retval.
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c