c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new STRING_CST by calling combine_strings.
* c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new STRING_CST by calling combine_strings. From-SVN: r36810
This commit is contained in:
parent
ca356f3a96
commit
1092710d9c
2 changed files with 6 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2000-10-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* c-common.c (c_expand_builtin_printf): Set the TREE_TYPE of a new
|
||||
STRING_CST by calling combine_strings.
|
||||
|
||||
2000-10-09 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* arm.c (thumb_expand_movstrqi): Rewrite to support SSA form.
|
||||
|
|
|
@ -5550,9 +5550,7 @@ c_expand_builtin_printf (arglist, target, tmode, modifier, ignore)
|
|||
memcpy (newstr, TREE_STRING_POINTER (stripped_string), newlen - 1);
|
||||
newstr[newlen - 1] = 0;
|
||||
|
||||
arglist = build_string (newlen, newstr);
|
||||
TREE_TYPE (arglist) =
|
||||
build_type_variant (char_array_type_node, 1, 0);
|
||||
arglist = combine_strings (build_string (newlen, newstr));
|
||||
arglist = build_tree_list (NULL_TREE, arglist);
|
||||
fn = fn_puts;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue