[PATCH] Fix typo introduced by the CALL_EXPR changes

Richard Guenther rguenther@suse.de
Fri Mar 16 10:03:00 GMT 2007


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);
      }
  



More information about the Gcc-patches mailing list