re PR tree-optimization/35609 ("is used uninitialized in this function" should be...
authorRichard Guenther <rguenther@suse.de>
Wed, 19 Mar 2008 10:44:52 +0000 (10:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 19 Mar 2008 10:44:52 +0000 (10:44 +0000)
commit8cb3ee3785019dc4b2566360816f0b83aeea4e2e
treec2091432f1378f837c2a13f54a2dd45d2c6b2193
parent21c2d075c06a1b858bd12831dff8ff2786d394fd
re PR tree-optimization/35609 ("is used uninitialized in this function" should be may warning)

2008-03-19  Richard Guenther  <rguenther@suse.de>

PR middle-end/35609
* tree-ssa.c (always_executed): New global flag.
(warn_uninitialized_var): If !always_executed warn with "maybe"
instead of "is".
(execute_early_warn_uninitialized): Compute post-dominators.
Initialize always_executed before processing each basic block.

* gcc.dg/testsuite/uninit-15.c: New testcase.
* gcc.dg/testsuite/uninit-16.c: Likewise.

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