re PR c++/34772 (self-initialisation does not silence uninitialised warnings (-Winit...
authorJason Merrill <jason@redhat.com>
Mon, 9 May 2011 17:34:44 +0000 (13:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 9 May 2011 17:34:44 +0000 (13:34 -0400)
commit03808d178a46df619f8470211c4cff9946a51fd4
treebae19d0639a05bedd77dd0624d652463792c9222
parentb5da71d41644c40db95aabac8f67c28294f4c85f
re PR c++/34772 (self-initialisation does not silence uninitialised warnings (-Winit-self ignored))

PR c++/34772
* decl.c (initialize_local_var): Use DECL_INITIAL for simple
initialization.

From-SVN: r173582
19 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/uninit-D-O0.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-D.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-E-O0.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-E.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-F-O0.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-F.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-G-O0.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/uninit-G.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/uninit-D-O0.c [deleted file]
gcc/testsuite/gcc.dg/uninit-D.c [deleted file]
gcc/testsuite/gcc.dg/uninit-E-O0.c [deleted file]
gcc/testsuite/gcc.dg/uninit-E.c [deleted file]
gcc/testsuite/gcc.dg/uninit-F-O0.c [deleted file]
gcc/testsuite/gcc.dg/uninit-F.c [deleted file]
gcc/testsuite/gcc.dg/uninit-G-O0.c [deleted file]
gcc/testsuite/gcc.dg/uninit-G.c [deleted file]