[Bug middle-end/71581] [5/6/7 Regression] ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 21 07:14:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71581
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jun 21 07:13:52 2016
New Revision: 237632
URL: https://gcc.gnu.org/viewcvs?rev=237632&root=gcc&view=rev
Log:
Backported from mainline
2016-06-20 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr71581.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-ssa-uninit.c
More information about the Gcc-bugs
mailing list