builtins.c (target_newline): Export.
authorRichard Biener <rguenther@suse.de>
Thu, 4 Dec 2014 08:49:49 +0000 (08:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 4 Dec 2014 08:49:49 +0000 (08:49 +0000)
commitad03a7449bc1340341f2e552ba4938a5da8d6fdc
treebab79632c35294405cd297e6c0e8d2b1e9be1150
parente0b340af16a7e6b7eca4c81b6f0ef373a38a1a7f
builtins.c (target_newline): Export.

2014-12-04  Richard Biener  <rguenther@suse.de>

* builtins.c (target_newline): Export.
(target_percent_s_newline): Likewise.
(fold_builtin_1): Do not fold printf functions here.
(fold_builtin_2): Likewise.
(fold_builtin_3): Likewise, do not fold strncat.
(fold_builtin_strncat): Move to gimple-fold.c.
(fold_builtin_printf): Likewise.
* builtins.h (target_newline): Declare.
(target_percent_s_newline): Likewise.
* gimple-fold.c (gimple_fold_builtin_strncat): Move from
builtins.c and gimplify.
(gimple_fold_builtin_printf): Likewise.
(gimple_fold_builtin): Fold strncat, printf, printf_unlocked,
vprintf, printf_chk and vprintf_chk here.

From-SVN: r218343
gcc/ChangeLog
gcc/builtins.c
gcc/builtins.h
gcc/gimple-fold.c