]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/dse.cc
re PR rtl-optimization/40924 (miscompiles with -O3 (seemingly related to attribute...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Aug 2009 12:36:34 +0000 (14:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Aug 2009 12:36:34 +0000 (14:36 +0200)
commit403c752036db9af05c6d40804df668d3f3cbaf52
tree9a626f565d7bec81f41671e6ad4e4880cbb1f523
parent64393e407db3350e25f53e252023f84f6e321c02
re PR rtl-optimization/40924 (miscompiles with -O3 (seemingly related to attribute may_alias))

PR rtl-optimization/40924
* dse.c (canon_address): Before calling cselib_expand_value_rtx
make sure canon_rtx (mem_address) isn't simpler than
canon_rtx (expanded_mem_address).

* g++.dg/torture/pr40924.C: New test.

From-SVN: r150483
gcc/ChangeLog
gcc/dse.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr40924.C [new file with mode: 0644]