From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8391 invoked by alias); 17 Jun 2006 12:54:23 -0000 Received: (qmail 8383 invoked by uid 22791); 17 Jun 2006 12:54:23 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 17 Jun 2006 12:54:20 +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 mx2.suse.de (Postfix) with ESMTP id 4451C1EBD7; Sat, 17 Jun 2006 14:54:17 +0200 (CEST) From: Andreas Schwab To: Nathan Sidwell Cc: gdb-patches@sourceware.org Subject: Re: [m68k] fix return value extraction References: <44844CBA.6030600@codesourcery.com> <4485563A.6020503@codesourcery.com> Date: Sat, 17 Jun 2006 12:54:00 -0000 In-Reply-To: <4485563A.6020503@codesourcery.com> (Nathan Sidwell's message of "Tue, 06 Jun 2006 11:17:30 +0100") 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-06/txt/msg00242.txt.bz2 Nathan Sidwell writes: > --- 455,465 ---- > if ((code == TYPE_CODE_STRUCT || code == TYPE_CODE_UNION) > && !m68k_reg_struct_return_p (gdbarch, type)) > { > ! /* Although they SYSV ABI specifies that a function returning a > ! structure this way should preserve %a0, GCC doesn't do that. At least on m68k-linux it does, and probably all targets using m68k_function_value (ie. following the SVR4 ABI) do the same. 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."