]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/61328 (valgrind finds problem in find_bswap_or_nop_1)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Tue, 3 Jun 2014 09:29:06 +0000 (09:29 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Tue, 3 Jun 2014 09:29:06 +0000 (09:29 +0000)
commit3cc272c178d0c22f812386e5f1d752494fd55a2f
treee5494ee56bf0f0a13aab7c8a170acf255baae7aa
parent597c6315ca23f0451be82a7cfb4ebc9fa34105e7
re PR tree-optimization/61328 (valgrind finds problem in find_bswap_or_nop_1)

2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>

PR tree-optimization/61328
* tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
        initialization from find_bswap_or_nop_1.
        (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
        in source_expr2 before using the size value the function sets. Also
        make use of init_symbolic_number () in both the old place and
        find_bswap_or_nop_load () to avoid reading uninitialized memory when
        doing recursion in the GIMPLE_BINARY_RHS case.

From-SVN: r211166
gcc/ChangeLog
gcc/tree-ssa-math-opts.c