]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/44852 (miscompilation (of e.g. newlib dtoa.c) after mem-ref2 merge)
authorRichard Guenther <rguenther@suse.de>
Fri, 9 Jul 2010 11:24:09 +0000 (11:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Jul 2010 11:24:09 +0000 (11:24 +0000)
commitdbfcc0597ce9ec0cd4b05b17f132b8680394eb83
tree1fcafc2809dd670b86812169efbe8489bbd17817
parent8bcc87780adc7e6501de6ba406484af1b7b29340
re PR middle-end/44852 (miscompilation (of e.g. newlib dtoa.c) after mem-ref2 merge)

2010-07-09  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/44852
* tree-ssa-alias.c: Include toplev.h for exact_log2.
(indirect_ref_may_alias_decl_p): Properly handle negative offsets
in MEM_REF.
(indirect_refs_may_alias_p): Likewise.
* Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).

* gcc.c-torture/execute/pr44852.c: New testcase.

From-SVN: r161994
gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr44852.c [new file with mode: 0644]
gcc/tree-ssa-alias.c