From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79550 invoked by alias); 5 May 2015 12:54:50 -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 79540 invoked by uid 89); 5 May 2015 12:54:49 -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,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD 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; Tue, 05 May 2015 12:54:48 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t45CsbmL009047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 May 2015 08:54:37 -0400 Received: from tucnak.zalov.cz (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t45CsZGd027056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 May 2015 08:54:36 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t45CsX24006853; Tue, 5 May 2015 14:54:33 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t45CsVaV006852; Tue, 5 May 2015 14:54:31 +0200 Date: Tue, 05 May 2015 12:54:00 -0000 From: Jakub Jelinek To: Richard Earnshaw Cc: Richard Biener , gcc-patches@gcc.gnu.org, Martin Jambor , Alan Lawrence Subject: Re: [PATCH] Fix eipa_sra AAPCS issue (PR target/65956) Message-ID: <20150505125431.GJ1751@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20150502082437.GW1751@tucnak.redhat.com> <20150504150011.GD1751@tucnak.redhat.com> <20150505073228.GH1751@tucnak.redhat.com> <5548A174.4010208@foss.arm.com> <5548A327.3080103@foss.arm.com> <5548BBBC.7060000@foss.arm.com> <5548BC73.8030506@foss.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5548BC73.8030506@foss.arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00322.txt.bz2 On Tue, May 05, 2015 at 01:49:55PM +0100, Richard Earnshaw wrote: > The real question here is why is TYPE the type of the value, rather than > the type of the formal as expressed by the prototype (or implicit > prototype in the case of variadics or K&R)? Surely this is the mid-end > passing the wrong information to the back-end. There is nothing else for unnamed arguments (K&R, stdarg). For named arguments, the backend has the option to save the fntype in CUMULATIVE_ARGS and look it up when it needs that. But, that will still mean K&R and stdarg will be just broken on arm. Jakub