builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy.
authorRoger Sayle <roger@eyesopen.com>
Thu, 8 Jul 2004 17:40:22 +0000 (17:40 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 8 Jul 2004 17:40:22 +0000 (17:40 +0000)
commita32e70c34d6a6e1f413406c432d499fb468c708e
tree39e4ab0ff10a947c37ee4abcbe91d60592309b6e
parentad4319ec12a27512566edfe9364ea59f63d397bc
builtins.c (fold_builtin_strcpy): Merge functionality from simplify_builtin_strcpy.

* builtins.c (fold_builtin_strcpy): Merge functionality from
simplify_builtin_strcpy.  Add additional len argument.  No longer
static.  Remove function prototype.
(fold_builtin_strncpy): Likewise integrate functionality from
simplify_builtin_strncpy.  Add additional slen argument.  No
longer static.  Remove function prototype.
(simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
(simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
types of "ignore" and "unlocked" parameters to bool.
(fold_builtin_1):  Add additional ignore argument.  Call renamed
fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
builtins.  Update arguments to fold_builtin_strncpy and
fold_builtin_strcpy.  Add function prototype.
(fold_builtin): Add additional Boolean ignore argument to pass
to fold_builtin_1.
(simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
and fold_builtin_strncpy instead of simplify_builtin_fputs,
simplify_builtin_strcpy and simplify_builtin_strncpy respectively.

* expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
simplify_builtin_strncpy): Delete function prototypes.
* tree.h (fold_builtin_fputs, fold_builtin_strcpy,
fold_builtin_strncpy): Add function prototypes here.
(fold_builtin): Update function prototype with new "bool ignore".

* tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
(ccp_fold_builtin):  Update call to fold_builtin.  Call
fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
instead of simplify_builtin_fputs, simplify_builtin_strcpy and
simplify_builtin_strncpy respectively.
* fold-const.c (fold): Update call to fold_builtin.

From-SVN: r84302
gcc/ChangeLog
gcc/builtins.c
gcc/expr.h
gcc/fold-const.c
gcc/tree-ssa-ccp.c
gcc/tree.h