]> gcc.gnu.org Git - gcc.git/commit
Let -Wuninitialized assume built-ins don't change const arguments [PR101584].
authorMartin Sebor <msebor@redhat.com>
Tue, 27 Jul 2021 22:02:54 +0000 (16:02 -0600)
committerMartin Sebor <msebor@redhat.com>
Tue, 27 Jul 2021 22:02:54 +0000 (16:02 -0600)
commit6aacd901b800ee8a2a03123669b299a08aad0504
tree92b704e894cabafe841d622922d28b8ad2dfa540
parent9360d6cd1706882dfffd3c7a08b5956c37207a11
Let -Wuninitialized assume built-ins don't change const arguments [PR101584].

PR tree-optimization/101584 - missing -Wuninitialized with an allocated object after a built-in call

gcc/ChangeLog:

PR tree-optimization/101584
* tree-ssa-uninit.c (builtin_call_nomodifying_p): New function.
(check_defs): Call it.

gcc/testsuite/ChangeLog:

PR tree-optimization/101584
* gcc.dg/uninit-38.c: Remove assertions.
* gcc.dg/uninit-41.c: New test.
gcc/testsuite/gcc.dg/uninit-38.c
gcc/testsuite/gcc.dg/uninit-41.c [new file with mode: 0644]
gcc/tree-ssa-uninit.c
This page took 0.063066 seconds and 5 git commands to generate.