builtins.c (unterminated_array): Use empty brace initialization for c_strlen_data.
authorMartin Sebor <msebor@redhat.com>
Sun, 23 Dec 2018 15:37:28 +0000 (15:37 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 23 Dec 2018 15:37:28 +0000 (08:37 -0700)
commit3f46ef1ff6b040f8b61ef6311cbb025694db3594
tree9f3374a884a2b96dc8e7d2199c7e3b0ecf690f31
parentf7bdd292d9366e3bf8171ca3aa246359655d0fd9
builtins.c (unterminated_array): Use empty brace initialization for c_strlen_data.

2018-12-23  Martin Sebor  <msebor@redhat.com>
    Jeff Law  <law@redhat.com>

* builtins.c (unterminated_array): Use empty brace initialization
for c_strlen_data.
(c_strlen, expand_builtin_strnlen): Likewise.
(expand_builtin_stpcpy_1, fold_builtin_strlen): Likewise.
* gimple-fold.c (get_range_strlen): Likewise.
(gimple_fold_builtin_stpcpy): Likewise.
* gimple-ssa-sprintf.c (get_string_length): Likewise.

Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r267376
gcc/ChangeLog
gcc/builtins.c
gcc/gimple-fold.c
gcc/gimple-ssa-sprintf.c