From patchwork Fri Jul 16 02:37:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Froyd X-Patchwork-Id: 59063 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 77DBAB7086 for ; Fri, 16 Jul 2010 12:37:32 +1000 (EST) Received: (qmail 11355 invoked by alias); 16 Jul 2010 02:37:31 -0000 Received: (qmail 11344 invoked by uid 22791); 16 Jul 2010 02:37:30 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jul 2010 02:37:25 +0000 Received: (qmail 2077 invoked from network); 16 Jul 2010 02:37:23 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Jul 2010 02:37:23 -0000 Date: Thu, 15 Jul 2010 19:37:23 -0700 From: Nathan Froyd To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com Subject: [obv] convert one last cp_build_function_call to cp_build_function_call_nary Message-ID: <20100716023723.GZ12333@codesourcery.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org In my patch to convert cp_build_function_call to cp_build_function_call_nary: http://gcc.gnu.org/ml/gcc-patches/2010-05/msg01954.html I missed one call to cp_build_function_call--probably because my grep was not expecting to find the identifier + newline. Fixed with the patch below. I think this qualifies as obvious. Committed after bootstrap and test on x86_64-unknown-linux-gnu. -Nathan * init.c (build_new_1): Use cp_build_function_call_nary instead of cp_build_function_call. Index: ChangeLog =================================================================== Index: init.c =================================================================== --- init.c (revision 162238) +++ init.c (working copy) @@ -2033,10 +2033,8 @@ build_new_1 (VEC(tree,gc) **placement, t } alloc_fn = OVL_CURRENT (alloc_fn); class_addr = build1 (ADDR_EXPR, jclass_node, class_decl); - alloc_call = (cp_build_function_call - (alloc_fn, - build_tree_list (NULL_TREE, class_addr), - complain)); + alloc_call = cp_build_function_call_nary (alloc_fn, complain, + class_addr, NULL_TREE); } else if (TYPE_FOR_JAVA (elt_type) && MAYBE_CLASS_TYPE_P (elt_type)) {