re PR middle-end/81782 (Yet another -Wmaybe-uninitialized false positive with empty...
authorRichard Biener <rguenther@suse.de>
Fri, 8 Dec 2017 14:45:30 +0000 (14:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 8 Dec 2017 14:45:30 +0000 (14:45 +0000)
commit68e6d5a6bdd07248e78eccbd19eb282a9531fd7c
treecab7b6a3f4bab57135917c736bfa2bee10fc9c26
parent4f29e04064c39dfdc23831e41328f5ba84195957
re PR middle-end/81782 (Yet another -Wmaybe-uninitialized false positive with empty array)

2017-12-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81782
* tree-ssa-uninit.c (warn_uninitialized_vars): Properly
handle accesses outside of zero-sized vars.

* gcc.dg/uninit-pr81782.c: New testcase.

From-SVN: r255512
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-pr81782.c [new file with mode: 0644]
gcc/tree-ssa-uninit.c