From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1527 invoked by alias); 4 Oct 2006 20:27:54 -0000 Received: (qmail 1519 invoked by uid 22791); 4 Oct 2006 20:27:53 -0000 X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 04 Oct 2006 20:27:48 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 0C7A611FDD; Wed, 4 Oct 2006 22:27:45 +0200 (CEST) From: Andreas Schwab To: Mark Kettenis Cc: drow@false.org, janani@linux.ibm.com, gdb-patches@sourceware.org, pgilliam@us.ibm.com, janani@us.ibm.com Subject: Re: [patch] Pushing Inferior Function Arguments onto Stack on PowerPC64 machines References: <20061004150034.1xgq6l4picg0wgk4@imap.linux.ibm.com> <20061004191056.GA4000@nevyn.them.org> <200610042018.k94KIbLQ007549@elgar.sibelius.xs4all.nl> X-Yow: I am having a pleasant time!! Date: Wed, 04 Oct 2006 20:27:00 -0000 In-Reply-To: <200610042018.k94KIbLQ007549@elgar.sibelius.xs4all.nl> (Mark Kettenis's message of "Wed, 4 Oct 2006 22:18:37 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00021.txt.bz2 Mark Kettenis writes: > Indeed. GCC has been getting things wrong in this area before. And > on top of that, some versions of GCC get it right while other versions > get it wrong. If there are indeed versions of GCC in widespread use > that do not follow the ABI, we should probably try to add a workaround > in GCC. But if there are also versions of GCC that do follow the ABI, > adding such a workaround might be impossible. AFAICS, GCC on AIX follows the ABI here, but ppc64-linux deviates from it. This is controlled by AGGREGATES_PAD_UPWARD_ALWAYS in rs6000.c:function_arg_padding in the gcc source. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."