re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized...
authorJakub Jelinek <jakub@redhat.com>
Mon, 20 Jun 2016 21:41:20 +0000 (23:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 20 Jun 2016 21:41:20 +0000 (23:41 +0200)
commit50aa64d58fd4cea25df2a9d9ddfc38e74dcdd94c
tree73e0044763a990884447efafc1f4b1bfa26a1407
parent7a9df68ec6a8752f2e95e8ca1ca1fc53384c90c6
re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault))

PR middle-end/71581
* tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
for conversion of scalar user var to complex type and use the
underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
punt.

* gcc.dg/pr71581.c: New test.

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