]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/39246 (FAIL: gcc.dg/uninit-13.c)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Thu, 8 May 2014 01:19:11 +0000 (01:19 +0000)
committerJoey Ye <jye2@gcc.gnu.org>
Thu, 8 May 2014 01:19:11 +0000 (01:19 +0000)
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

gcc/ChangeLog
gcc/testsuite/ChangeLog

index 203d647289662d7622b29b17e054798cec48774a..569dae1deb7841db174f5c7a45600b790be16a28 100644 (file)
@@ -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.
index 123a02f0378ceeb791cf790f4b5a0354d99505c5..c93294a033719dac89258ab4e5df7711528bb80e 100644 (file)
@@ -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