From: rguenth Date: Tue, 3 Jun 2008 10:55:00 +0000 (+0000) Subject: 2008-06-03 Richard Guenther X-Git-Tag: upstream/4.9.2~41692 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad2b0b69fb08bcc2d913869e90d34886289d3c3e;p=platform%2Fupstream%2Flinaro-gcc.git 2008-06-03 Richard Guenther * tree-ssa-structalias.c (find_func_aliases): Add constraints for the lhs of calls if the return type contains pointers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136315 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f75646..b42de54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-06-03 Richard Guenther + + * tree-ssa-structalias.c (find_func_aliases): Add constraints + for the lhs of calls if the return type contains pointers. + 2008-06-03 Kai Tietz * doc/tm.texi (OVERRIDE_ABI_FORMAT): New. diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index b6d73ce..0e42214 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -3726,7 +3726,7 @@ find_func_aliases (tree origt) if (TREE_CODE (t) == GIMPLE_MODIFY_STMT) { handle_rhs_call (GIMPLE_STMT_OPERAND (t, 1)); - if (POINTER_TYPE_P (TREE_TYPE (GIMPLE_STMT_OPERAND (t, 1)))) + if (could_have_pointers (GIMPLE_STMT_OPERAND (t, 1))) handle_lhs_call (GIMPLE_STMT_OPERAND (t, 0)); } else