[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |ASSIGNED Last reconfirmed||2018-10-25 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Testing a fix.
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg01866.html
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 --- Comment #3 from Martin Sebor --- Author: msebor Date: Fri Nov 23 18:45:45 2018 New Revision: 266418 URL: https://gcc.gnu.org/viewcvs?rev=266418&root=gcc&view=rev Log: PR tree-optimization/87756 - missing unterminated argument warning using address of a constant character gcc/ChangeLog: PR tree-optimization/87756 * expr.c (string_constant): Synthesize a string literal from the address of a constant character. * tree.c (build_string_literal): Add an argument. * tree.h (build_string_literal): Same. gcc/testsuite/ChangeLog: PR tree-optimization/87756 * gcc.dg/builtin-memchr-2.c: New test. * gcc.dg/builtin-memchr-3.c: Same. * gcc.dg/warn-sprintf-no-nul-2.c: Same. Added: trunk/gcc/testsuite/gcc.dg/builtin-memchr-2.c trunk/gcc/testsuite/gcc.dg/builtin-memchr-3.c trunk/gcc/testsuite/gcc.dg/warn-sprintf-no-nul-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree.c trunk/gcc/tree.h
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #4 from Martin Sebor --- Patch committed in r266418.
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Fri Nov 23 21:13:44 2018 New Revision: 266420 URL: https://gcc.gnu.org/viewcvs?rev=266420&root=gcc&view=rev Log: PR tree-optimization/87756 * gcc.dg/builtin-memchr-2.c: Scan the gimple dump instead of optimized. * gcc.dg/builtin-memchr-3.c: Likewise. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/builtin-memchr-2.c trunk/gcc/testsuite/gcc.dg/builtin-memchr-3.c
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 --- Comment #6 from Martin Sebor --- Author: msebor Date: Mon Nov 26 23:55:36 2018 New Revision: 266494 URL: https://gcc.gnu.org/viewcvs?rev=266494&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/warn-sprintf-no-nul-3.c Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/warn-sprintf-no-nul-2.c
[Bug tree-optimization/87756] missing unterminated argument warning using address of a constant character
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87756 --- Comment #7 from Martin Sebor --- Author: msebor Date: Tue Nov 27 17:07:24 2018 New Revision: 266522 URL: https://gcc.gnu.org/viewcvs?rev=266522&root=gcc&view=rev Log: PR 87756 - missing unterminated argument warning using address of a constant character PR 88211 - missing warning on printf %ls and unterminated wide member array PR 88226 - missing warning on fprintf, fputs, and puts with an unterminated array gcc/ChangeLog: * gcc.dg/tree-ssa/builtin-fprintf-warn-1.c: Update/remove xfails. * gcc.dg/tree-ssa/builtin-printf-warn-1.c: Same. * gcc.dg/tree-ssa/user-printf-warn-1.c: Same. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-fprintf-warn-1.c trunk/gcc/testsuite/gcc.dg/tree-ssa/builtin-printf-warn-1.c trunk/gcc/testsuite/gcc.dg/tree-ssa/user-printf-warn-1.c