* builtins.c (rewrite_call_expr): Move code to...
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Oct 2010 01:06:14 +0000 (01:06 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Oct 2010 01:06:14 +0000 (01:06 +0000)
commitfdc4434143a56ae085851d72ebeb667c522f6b48
treebd8c7cf017284dd50a6782a57546837b06eab688
parent6b1d22c03d52a77a0e6c3895854ee4d86d11cd23
* builtins.c (rewrite_call_expr): Move code to...
(rewrite_call_expr_valist): ...here.  Call
build_call_expr_loc_array.
(rewrite_call_expr_array): New function.
(fold_builtin_sprintf_chk_1): New function.
(fold_builtin_sprintf_chk): Call it.
(gimple_fold_builtin_sprintf_chk): Likewise.
(fold_builtin_snprintf_chk_1): New function.
(fold_builtin_snprintf_chk): Call it.
(gimple_fold_builtin_snprintf_chk): Likewise.
(gimple_rewrite_call_expr): Delete.

git-svn-id: svn://gcc.gnu.org/svn/gcc/trunk@165146 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c