This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix typo introduced by the CALL_EXPR changes
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Mar 2007 10:56:19 +0100 (CET)
- Subject: [PATCH] Fix typo introduced by the CALL_EXPR changes
This fixes the typo introduced by
@@ -2378,14 +2371,15 @@ expand_builtin_cexpi (tree exp, rtx targ
...
/* Make sure not to fold the cexp call again. */
call = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (fn)), fn);
- return expand_expr (build3 (CALL_EXPR, ctype, call,
- build_tree_list (NULL_TREE, narg),
- NULL_TREE), target, VOIDmode, 0);
+ return expand_expr (build_call_nary (ctype, call, 1, arg),
+ target, VOIDmode, 0);
}
it obviously should use narg, not arg as the argument.
Applied as obvious.
Richard.
Index: ChangeLog
===================================================================
*** ChangeLog (revision 122981)
--- ChangeLog (working copy)
***************
*** 1,3 ****
--- 1,8 ----
+ 2007-03-16 Richard Guenther <rguenther@suse.de>
+
+ * builtins.c (expand_builtin_cexpi): Use the right argument
+ for the expansion via cexp.
+
2007-03-16 Alexandre Oliva <aoliva@redhat.com>
* configure.ac: Don't require ELF binutils to tolerate # 0 "".
Index: builtins.c
===================================================================
*** builtins.c (revision 122981)
--- builtins.c (working copy)
*************** expand_builtin_cexpi (tree exp, rtx targ
*** 2409,2415 ****
/* Make sure not to fold the cexp call again. */
call = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (fn)), fn);
! return expand_expr (build_call_nary (ctype, call, 1, arg),
target, VOIDmode, 0);
}
--- 2409,2415 ----
/* Make sure not to fold the cexp call again. */
call = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (fn)), fn);
! return expand_expr (build_call_nary (ctype, call, 1, narg),
target, VOIDmode, 0);
}