OSDN Git Service

2009-03-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 22:36:33 +0000 (22:36 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2009 22:36:33 +0000 (22:36 +0000)
commit9d1d1fab71330589fa41049fda3db3bd9c380093
tree6d9ebbc1d407783c84648954b0a8422eb2e7ad5c
parent7cfdc2f02f225893a30634e10602c12aa18404d2
2009-03-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39120
* tree-ssa-structalias.c (handle_rhs_call): Fill out return
constraints.
(handle_lhs_call): Process return constraints.  Add escape
constraints if necessary.
(handle_const_call): Fill out return constraints.  Make nested
case more precise.  Avoid consttmp if possible.
(handle_pure_call): Fill out return constraints.  Avoid
callused if possible.
(find_func_aliases): Simplify call handling.

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

2009-03-27  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39120
* tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
as a representative.
(solve_graph): Do propagate CALLUSED.
(handle_pure_call): Use a scalar constraint from CALLUSED for
the return value.
(find_what_p_points_to): CALLUSED shall not appear in poins-to
solutions.

* gcc.dg/torture/pta-callused-1.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145137 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr39120.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pta-callused-1.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c