diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-20 18:18:21 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-01-20 18:18:21 +0000 |
commit | b65555c1ab475f6a3757b4ecb1a5970e66bde20b (patch) | |
tree | 840adcd5d5e2cbfaf6b57c07e9227d984e6650a1 /gcc/tree.h | |
parent | 98fbe28d1ea9be47419a759a1e3c0653309f44fb (diff) | |
download | gcc-b65555c1ab475f6a3757b4ecb1a5970e66bde20b.tar.gz |
PR middle-end/59860
* tree.h (fold_builtin_strcat): New prototype.
* builtins.c (fold_builtin_strcat): No longer static. Add len
argument, if non-NULL, don't call c_strlen. Optimize
directly into __builtin_memcpy instead of __builtin_strcpy.
(fold_builtin_2): Adjust fold_builtin_strcat caller.
* gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206848 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index e22e53c152f..e918ec54d24 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4527,6 +4527,7 @@ extern tree fold_call_expr (location_t, tree, bool); extern tree fold_builtin_fputs (location_t, tree, tree, bool, bool, tree); extern tree fold_builtin_strcpy (location_t, tree, tree, tree, tree); extern tree fold_builtin_strncpy (location_t, tree, tree, tree, tree, tree); +extern tree fold_builtin_strcat (location_t, tree, tree, tree); extern tree fold_builtin_memory_chk (location_t, tree, tree, tree, tree, tree, tree, bool, enum built_in_function); extern tree fold_builtin_stxcpy_chk (location_t, tree, tree, tree, tree, tree, bool, |