]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c/87387
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Sep 2018 22:17:45 +0000 (22:17 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Sep 2018 22:17:45 +0000 (22:17 +0000)
commit81512c36496bd5c3bc35746603dc988f0bc85f57
tree9e120ff490c0f193509af127eb4cae401e944f54
parent7961f40be4b4a5d9c8531e6f78ecf330411d5d9f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264585 138bc75d-0d04-0410-961f-82ee72b054a4
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