builtins.c (expand_builtin_fputs): Use size_one_node when transforming into fwrite.

* builtins.c (expand_builtin_fputs): Use size_one_node when
	transforming into fwrite.

From-SVN: r39306
This commit is contained in:
Kaveh R. Ghazi 2001-01-28 01:06:15 +00:00 committed by Kaveh Ghazi
parent 2c5e91d224
commit 013dea401a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.c (expand_builtin_fputs): Use size_one_node when
transforming into fwrite.
2001-01-27 Joseph S. Myers <jsm28@cam.ac.uk>
* extend.texi (Attribute Syntax): New section.

View File

@ -3198,7 +3198,7 @@ expand_builtin_fputs (arglist, ignore)
fwrite(string, 1, len, stream). */
arglist = build_tree_list (NULL_TREE, TREE_VALUE (TREE_CHAIN (arglist)));
arglist = tree_cons (NULL_TREE, len, arglist);
arglist = tree_cons (NULL_TREE, integer_one_node, arglist);
arglist = tree_cons (NULL_TREE, size_one_node, arglist);
arglist = tree_cons (NULL_TREE, string_arg, arglist);
fn = fn_fwrite;
break;