diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2014-05-08 01:19:11 +0000 |
---|---|---|
committer | Joey Ye <jye2@gcc.gnu.org> | 2014-05-08 01:19:11 +0000 |
commit | 10e08855d74dc3f35bb295ac2747f48dd037bee6 (patch) | |
tree | 4c9bbc2a99f12fdeb8a6e775942885a3dd2bfcd7 /gcc | |
parent | e019b84be15c4d4463402fe95096b4c1636a0296 (diff) | |
download | gcc-10e08855d74dc3f35bb295ac2747f48dd037bee6.zip gcc-10e08855d74dc3f35bb295ac2747f48dd037bee6.tar.gz gcc-10e08855d74dc3f35bb295ac2747f48dd037bee6.tar.bz2 |
re PR middle-end/39246 (FAIL: gcc.dg/uninit-13.c)
2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR middle-end/39246
* tree-complex.c (expand_complex_move): Keep line info when expanding
complex move.
* tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
of complex expression. Use new argument to display correct location
for values coming from phi statement.
(warn_uninitialized_vars): Adapt to new signature of warn_uninit.
(warn_uninitialized_phi): Pass location of phi argument to
warn_uninit.
* tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
testsuite:
* gcc.dg/uninit-13.c: Move warning on the actual source line where
the uninitialized complex is used.
* gcc.dg/uninit-17.c: New test to check partial initialization of
complex with branches.
* gcc.dg/uninit-17-O0.c: Likewise.
From-SVN: r210198
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 203d647..569dae1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com> + + PR middle-end/39246 + * tree-complex.c (expand_complex_move): Keep line info when expanding + complex move. + * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment + of complex expression. Use new argument to display correct location + for values coming from phi statement. + (warn_uninitialized_vars): Adapt to new signature of warn_uninit. + (warn_uninitialized_phi): Pass location of phi argument to + warn_uninit. + * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a + COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR. + 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org> * config/rs6000/predicates.md (indexed_address_mem): New. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 123a02f..c93294a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2014-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com> + + PR middle-end/39246 + * gcc.dg/uninit-13.c: Move warning on the actual source line where + the uninitialized complex is used. + * gcc.dg/uninit-17.c: New test to check partial initialization of + complex with branches. + * gcc.dg/uninit-17-O0.c: Likewise. + 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org> PR target/60884 |