diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-06-30 12:43:59 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-06-30 12:43:59 +0200 |
commit | d9048d168c11c7be8c2be3f38fde4abd273e7f20 (patch) | |
tree | a324449ae52eb12d31dd116b7902b37e76a323d1 /gcc/tree-ssa-structalias.c | |
parent | f60f32b35695eb05d36b83a78f26b833ccb04edf (diff) | |
download | gcc-d9048d168c11c7be8c2be3f38fde4abd273e7f20.zip gcc-d9048d168c11c7be8c2be3f38fde4abd273e7f20.tar.gz gcc-d9048d168c11c7be8c2be3f38fde4abd273e7f20.tar.bz2 |
tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN_ASSUME_ALIGNED.
* tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
handling of BUILT_IN_ASSUME_ALIGNED.
From-SVN: r175695
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r-- | gcc/tree-ssa-structalias.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index f786207..dba8b01 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4002,7 +4002,6 @@ find_func_aliases_for_builtin_call (gimple t) case BUILT_IN_STPCPY_CHK: case BUILT_IN_STRCAT_CHK: case BUILT_IN_STRNCAT_CHK: - case BUILT_IN_ASSUME_ALIGNED: { tree res = gimple_call_lhs (t); tree dest = gimple_call_arg (t, (DECL_FUNCTION_CODE (fndecl) @@ -4068,6 +4067,20 @@ find_func_aliases_for_builtin_call (gimple t) VEC_free (ce_s, heap, lhsc); return true; } + case BUILT_IN_ASSUME_ALIGNED: + { + tree res = gimple_call_lhs (t); + tree dest = gimple_call_arg (t, 0); + if (res != NULL_TREE) + { + get_constraint_for (res, &lhsc); + get_constraint_for (dest, &rhsc); + process_all_all_constraints (lhsc, rhsc); + VEC_free (ce_s, heap, lhsc); + VEC_free (ce_s, heap, rhsc); + } + return true; + } /* All the following functions do not return pointers, do not modify the points-to sets of memory reachable from their arguments and do not add to the ESCAPED solution. */ |