From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12661 invoked by alias); 10 Apr 2007 22:34:55 -0000 Received: (qmail 12652 invoked by uid 22791); 10 Apr 2007 22:34:54 -0000 X-Spam-Check-By: sourceware.org Received: from return.false.org (HELO return.false.org) (66.207.162.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Apr 2007 23:34:52 +0100 Received: from return.false.org (localhost [127.0.0.1]) by return.false.org (Postfix) with ESMTP id 206A84B26F for ; Tue, 10 Apr 2007 17:34:51 -0500 (CDT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by return.false.org (Postfix) with ESMTP id E2B4F4B26D for ; Tue, 10 Apr 2007 17:34:50 -0500 (CDT) Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HbOvK-0002XY-8h for gdb-patches@sourceware.org; Tue, 10 Apr 2007 18:34:50 -0400 Date: Tue, 10 Apr 2007 22:34:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: Fix altivec vector return location Message-ID: <20070410223450.GA9636@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <20070410204629.GC2056@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00121.txt.bz2 On Wed, Apr 11, 2007 at 12:23:31AM +0200, Andreas Schwab wrote: > Daniel Jacobowitz writes: > > > On Thu, Mar 15, 2007 at 06:17:51PM +0100, Andreas Schwab wrote: > >> powerpc-linux is not using -mabi=altivec by default, thus vector types are > >> returned in general registers instead of altivec registers. > >> > >> Andreas. > >> > >> 2007-03-15 Andreas Schwab > >> > >> * ppc-linux-tdep.c (ppc_linux_return_value): Vectors are returned > >> in general registers. > > > > Hmmm... but what about people who do use -mabi=altivec? > > I have no idea how to detect that. I think it's a bad idea to trade off broken in one configuration for broken in another, so let's not change it right now. The only way I can think of to detect it would be to add something to the linker, like other platforms do (including E500). I wonder if the new Power ABI discussions will provide something useful... -- Daniel Jacobowitz CodeSourcery