]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR 87756 - missing unterminated argument warning using address of a constant character
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Nov 2018 23:55:36 +0000 (23:55 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Nov 2018 23:55:36 +0000 (23:55 +0000)
commit07e3030cd8b2ebf9fc56f603eaeba01506fc95b4
treeffa797b2d0da859bb2520ba77e94369df8fecf3e
parentcdfc600453447b283157b8bfdb2e9283fde2cead
PR 87756 - missing unterminated argument warning using address of a constant character

gcc/ChangeLog:

PR 87756
* expr.c (string_constant): Handle top-level decls of all character
types and subobjects of narrow character type.

gcc/testsuite/ChangeLog:

        PR 87756
* gcc.dg/warn-sprintf-no-nul-2.c: Move incomplete tests from here...
* gcc.dg/warn-sprintf-no-nul-3.c: ...to here and complete them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266494 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/warn-sprintf-no-nul-2.c
gcc/testsuite/gcc.dg/warn-sprintf-no-nul-3.c [new file with mode: 0644]