]> gcc.gnu.org Git - gcc.git/commit
Backported from trunk:
authorMartin Sebor <msebor@redhat.com>
Thu, 17 Jun 2021 16:24:34 +0000 (10:24 -0600)
committerMartin Sebor <msebor@redhat.com>
Thu, 17 Jun 2021 16:24:34 +0000 (10:24 -0600)
commitc2791cd4e62731ccde165c0e62b83f8e7ee38118
treed3c2e38fc42bb913329c6bfeb077fc6483a2befd
parenta52b2f4cae38abecda2a7ad72a47c4e38236870a
Backported from trunk:

PR middle-end/100307 - spurious -Wplacement-new with negative pointer offset

gcc/ChangeLog:

PR middle-end/100307
* builtins.c (compute_objsize_r): Clear base0 for pointers.

gcc/testsuite/ChangeLog:

PR middle-end/100307
* g++.dg/warn/Wplacement-new-size-9.C: New test.
* gcc.dg/tree-ssa/builtin-sprintf-warn-26.c: New test.
gcc/builtins.c
gcc/testsuite/g++.dg/warn/Wplacement-new-size-9.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-26.c [new file with mode: 0644]
This page took 0.075087 seconds and 6 git commands to generate.