From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3898 invoked by alias); 9 Nov 2015 22:33:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 3808 invoked by uid 89); 9 Nov 2015 22:33:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 09 Nov 2015 22:33:07 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 7DA50C00354D; Mon, 9 Nov 2015 22:33:06 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-142.phx2.redhat.com [10.3.113.142]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA9MX68W026127; Mon, 9 Nov 2015 17:33:06 -0500 Subject: Re: Extend fold_const_call to combined_fn To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com References: <87twoyq92a.fsf@e105548-lin.cambridge.arm.com> From: Jeff Law Message-ID: <56411F21.9020101@redhat.com> Date: Mon, 09 Nov 2015 22:33:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <87twoyq92a.fsf@e105548-lin.cambridge.arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg01116.txt.bz2 On 11/07/2015 05:37 AM, Richard Sandiford wrote: > This patch extends fold_const_call so that it can handle internal > as well as built-in functions. > > Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi. > OK to install? > > Thanks, > Richard > > > gcc/ > * fold-const-call.h (fold_const_call): Replace built_in_function > arguments with combined_fn arguments. > * fold-const-call.c: Include case-cfn-macros.h. > (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc) > (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc) > (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace > built_in_function arguments with combined_fn arguments. > * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2) > (fold_builtin_3): Update calls to fold_const_call. OK. jeff