2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
commitee054e83cc85cce7a5be8806fcf4299fd608e23f
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jun 2014 09:29:06 +0000 (3 09:29 +0000)
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jun 2014 09:29:06 +0000 (3 09:29 +0000)
treee5494ee56bf0f0a13aab7c8a170acf255baae7aa
parentab8f103cf1a97aba899b27808d4d516d30f40380
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211166 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-math-opts.c