From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21845 invoked by alias); 26 Sep 2002 18:47:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21838 invoked from network); 26 Sep 2002 18:47:58 -0000 Received: from unknown (HELO smtp.superh.com) (65.219.1.204) by sources.redhat.com with SMTP; 26 Sep 2002 18:47:58 -0000 Received: from sh-us-ex01.us.w2k.superh.com (sh-us-ex01.us.superh.com [192.168.4.40]) by smtp.superh.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g8QIe4N11943; Thu, 26 Sep 2002 11:40:04 -0700 (PDT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: sh4 abi doc X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Thu, 26 Sep 2002 11:47:00 -0000 Message-ID: <287E4644B5249D449C56FA5409A874AE03EFBB@sh-us-ex01.us.w2k.superh.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Clarke, Stephen" To: "Elena Zannoni" Cc: X-SW-Source: 2002-09/txt/msg00443.txt.bz2 > From: Elena Zannoni [mailto:ezannoni@redhat.com]=20 > Sent: Thursday, September 26, 2002 10:43 AM >=20 > The cutoff is 8 bytes. Yes: anything bigger than 8 bytes is definitely returned in memory. But the cutoff is not "clean", because structs smaller than this could also be returned in memory, if they don't pass the "same size and alignment as an integer type" rule. For example, in struct s { char c[3]; } wibble; struct s foo(void) { return wibble; } the return value from foo() will be in memory, not in R0, because there is no 3-byte integer type. Sorry if that was obvious already, I just wanted to be sure. Steve.