tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix handling of BUILT_IN...
authorJakub Jelinek <jakub@redhat.com>
Thu, 30 Jun 2011 08:06:01 +0000 (10:06 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 30 Jun 2011 08:06:01 +0000 (10:06 +0200)
* 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
gcc/tree-ssa-structalias.c

index 9db422d5772120618c54cd9e6068edcd2b5eaf23..12c60d718291dbebe2d5a61062576af0ea4d2c86 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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  <ira.rosen@linaro.org>
 
        * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
index 799f9cf7e53a6bd73a014cd55b0d536d8db0dde7..f7862072d14952ca91dd762ce464c599a69eb946 100644 (file)
@@ -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);