diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-10-09 16:30:43 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-10-09 16:30:43 +0000 |
commit | 1092710d9c9d80bae32e13a1dd8c2fa3a8717cfb (patch) | |
tree | 1b99b46292cea5ff4dc4fac7d356e278137b5264 /gcc | |
parent | ca356f3a96aa192514ee77a4d4fc56ff4838e564 (diff) | |
download | gcc-1092710d9c9d80bae32e13a1dd8c2fa3a8717cfb.zip gcc-1092710d9c9d80bae32e13a1dd8c2fa3a8717cfb.tar.gz gcc-1092710d9c9d80bae32e13a1dd8c2fa3a8717cfb.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-common.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 202993a..ed77a39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-common.c b/gcc/c-common.c index 7ae71c9..7efca93 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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; } |