From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23265 invoked by alias); 28 Oct 2010 10:57:27 -0000 Received: (qmail 23256 invoked by uid 22791); 28 Oct 2010 10:57:26 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID,TW_FN X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Oct 2010 10:57:23 +0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46208] TARGET_PROMOTE_PROTOTYPES for SPARC V8 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 28 Oct 2010 10:57:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02390.txt.bz2 Message-ID: <20101028105700.yuoVu8Qm3ZPhRfvRrR5jkeesakrQbP7C1rtmmr9MlUs@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46208 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot | |gnu.org --- Comment #1 from Eric Botcazou 2010-10-28 10:57:12 UTC --- > we modified the function *TARGET_PROMOTE_PROTOTYPES > *(http://goo.gl/2pQQ) and set it to the default value which is FALSE. > > static bool > sparc_promote_prototypes (const_tree fntype ATTRIBUTE_UNUSED) > { > return TARGET_ARCH32 ? true : false; > } > > was replaced by > > static bool > sparc_promote_prototypes (const_tree fntype ATTRIBUTE_UNUSED) > { > return false; > } This will result in violations of the ABI without further changes (garbage in the upper part of the argument registers). You need the patch I'm about to attach as a minimum, but it cannot eliminate the extensions in the caller alone, more work is required in the back-end. At which point changing TARGET_PROMOTE_PROTOTYPES will probably have only a marginal effect.