+ * trans-expr.c (gfc_trans_string_copy): Use "void *" when building a

+       memset.

From-SVN: r130371
This commit is contained in:
Aldy Hernandez 2007-11-23 10:50:45 +00:00 committed by Aldy Hernandez
parent cb2d412c3e
commit 96d9bb07ad
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-11-23 Aldy Hernandez <aldyh@redhat.com>
* trans-expr.c (gfc_trans_string_copy): Use "void *" when building a
memset.
2007-11-22 Tobias Burnus <burnus@net-b.de>
* primary.c (gfc_match_structure_constructor): Allow

View File

@ -2701,7 +2701,7 @@ gfc_trans_string_copy (stmtblock_t * block, tree dlength, tree dest,
tmp3 = build_call_expr (built_in_decls[BUILT_IN_MEMMOVE],
3, dest, src, slen);
tmp4 = fold_build2 (POINTER_PLUS_EXPR, pchar_type_node, dest,
tmp4 = fold_build2 (POINTER_PLUS_EXPR, TREE_TYPE (dest), dest,
fold_convert (sizetype, slen));
tmp4 = build_call_expr (built_in_decls[BUILT_IN_MEMSET], 3,
tmp4,