2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 22:23:45 +0000 (22:23 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 22:23:45 +0000 (22:23 +0000)
commit1c32170edd1160213fdb70076d663bc68e2e7eb2
tree660ae75a4cdf11380c42d11680fdb1c7ead51a82
parentdb3454cf73b52f9ed125ea0f1e7c347473b1cb3d
2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR middle-end/179
* tree-ssa.c (warn_uninit): Do not warn for variables that can be
initialized outside the current module.
(warn_uninitialized_var): Ignore left-hand side when walking the
trees. Ignore address expressions. Examine VUSE operands in gimple
statements with a variable declaration on the right-hand side.
testsuite/
* gcc.dg/uninit-6.c (make_something): Remove XFAIL.
* gcc.dg/uninit-6-O0.c (make_something): Remove XFAIL.
* gcc.dg/uninit-B.c (baz): Remove XFAIL.
* gcc.dg/uninit-B-2.c: New.
* gcc.dg/uninit-B-O0-2.c: New.
* gcc.dg/uninit-pr19430-O0.c: New.
* gcc.dg/uninit-pr19430.c: New.
* gcc.dg/uninit-pr19430-2.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139347 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-6-O0.c
gcc/testsuite/gcc.dg/uninit-6.c
gcc/testsuite/gcc.dg/uninit-B-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-B-O0-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-B.c
gcc/testsuite/gcc.dg/uninit-pr19430-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-pr19430-O0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-pr19430.c [new file with mode: 0644]
gcc/tree-ssa.c