re PR middle-end/60429 (Miscompilation (aliasing) with -finline-functions)
commitaf1ab44914e9d544f7b24c21634e02f62ef086ff
authorRichard Biener <rguenther@suse.de>
Tue, 11 Mar 2014 12:42:18 +0000 (11 12:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 11 Mar 2014 12:42:18 +0000 (11 12:42 +0000)
treeaf561b689b875e166348ce17ab0dfa579443ef87
parent75b107f5942b75e085958c04b09dbcbf12ff68ac
re PR middle-end/60429 (Miscompilation (aliasing) with -finline-functions)

2014-03-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60429
PR tree-optimization/60485
* tree-ssa-structalias.c (set_union_with_increment): Properly
take into account all fields that overlap the shifted vars.
(do_sd_constraint): Likewise.
(do_ds_constraint): Likewise.
(get_constraint_for_ptr_offset): Likewise.

* gcc.dg/pr60485-1.c: New testcase.
* gcc.dg/pr60485-2.c: Likewise.

From-SVN: r208479
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr60485-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr60485-2.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c