re PR c/87387 (trunk/gcc/builtins.c:585:7: warning: -Wself-assign problem)
authorJeff Law <law@gcc.gnu.org>
Tue, 25 Sep 2018 22:17:45 +0000 (16:17 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 25 Sep 2018 22:17:45 +0000 (16:17 -0600)
commitc7813484bc9fe2c578d7538d0a9e286bf2e64599
tree9e120ff490c0f193509af127eb4cae401e944f54
parenta9f6e019d15819f52b312e1b10cd460b59b57780
re PR c/87387 (trunk/gcc/builtins.c:585:7: warning: -Wself-assign problem)

PR c/87387
        * builtins.c (unterminated_array): Simplify.
* expr.c (string_constant): Handle SSA_NAME.  Add more exceptions
where pointer arithmetic is safe.

* gcc.dg/warn-stpcpy-no-nul.c: Drop unnecessary xfails.
* gcc.dg/warn-stplen-no-nul.c: Likewise.

From-SVN: r264585
gcc/ChangeLog
gcc/builtins.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/warn-stpcpy-no-nul.c
gcc/testsuite/gcc.dg/warn-strlen-no-nul.c