re PR tree-optimization/47538 (GNU Scientific Library miscompiled by gcc 4.6)
authorJakub Jelinek <jakub@redhat.com>
Mon, 31 Jan 2011 16:52:22 +0000 (17:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Jan 2011 16:52:22 +0000 (17:52 +0100)
commit0425d6f563d8b76eb4fcf2bf3ebb64cee85f6eca
treecf5d6a5c4c84d7cb898730f0e74189afecd15f95
parent529da9b5708d8c57072fe172ce8850c2c821846f
re PR tree-optimization/47538 (GNU Scientific Library miscompiled by gcc 4.6)

PR tree-optimization/47538
* tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
type instead of r1type, except for comparisons.  For right
shifts and comparisons punt if there are mismatches in
sizetype vs. non-sizetype types.

* gcc.c-torture/execute/pr47538.c: New test.

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r169441
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr47538.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c