From ce7e54ff0d6dcddde211799be10e83a1aed4a9bb Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 30 Jun 2011 10:06:01 +0200 Subject: [PATCH] tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK. * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK. From-SVN: r175682 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-structalias.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9db422d5772..12c60d71829 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-06-30 Jakub Jelinek + + * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix + handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK. + 2011-06-30 Ira Rosen * tree-vect-loop.c (vect_determine_vectorization_factor): Handle diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 799f9cf7e53..f7862072d14 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4014,7 +4014,9 @@ find_func_aliases_for_builtin_call (gimple t) get_constraint_for (res, &lhsc); if (DECL_FUNCTION_CODE (fndecl) == BUILT_IN_MEMPCPY || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPCPY - || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPNCPY) + || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPNCPY + || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_MEMPCPY_CHK + || DECL_FUNCTION_CODE (fndecl) == BUILT_IN_STPCPY_CHK) get_constraint_for_ptr_offset (dest, NULL_TREE, &rhsc); else get_constraint_for (dest, &rhsc); -- 2.30.2