2008-07-01 Richard Guenther <rguenther@suse.de>
commit7952094285f649d736271a2cd36f0141d7ea8bbd
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Jul 2008 11:05:17 +0000 (1 11:05 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Jul 2008 11:05:17 +0000 (1 11:05 +0000)
treea112f255682465337762db21676dae4533f92af0
parenta347af296d8e09c9b22f51d74512cee379da31d8
2008-07-01  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/36666
* tree-ssa-structalias.c (get_constraint_for_1): Declare.
(get_constraint_exp_from_ssa_var): Split into ...
(get_constraint_exp_for_temp): ... this ...
(get_constraint_for_ssa_var): ... and that.
Return constraint expressions for all touched sub-fields
if the results address is not taken.
(process_constraint): Remove assertion that aggregate
assignments do not happen at this place.
(get_constraint_for_component_ref): Add address_p argument.
Return constraint expressions for all touched sub-fields
if the results address is not taken.
(do_deref): Use get_constraint_exp_for_temp.
(get_constraint_for_1): Rename from ...
(get_constraint_for): ... this.  Add the old function as
wrapper.
(do_structure_copy): Use get_constraint_for_1.

* gcc.c-torture/compile/pr36666.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137315 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr36666.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c