From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21635 invoked by alias); 22 Mar 2002 19:52:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21606 invoked from network); 22 Mar 2002 19:52:07 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 22 Mar 2002 19:52:07 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 587FD3F2F; Fri, 22 Mar 2002 14:52:06 -0500 (EST) Message-ID: <3C9B8B66.2090403@cygnus.com> Date: Fri, 22 Mar 2002 11:52:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: Elena Zannoni Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] PPC ABI compliance fix References: <15515.34258.778318.466752@localhost.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00429.txt.bz2 > Index: ppc-linux-tdep.c > =================================================================== > RCS file: /cvs/uberbaum/gdb/ppc-linux-tdep.c,v > retrieving revision 1.13 > diff -u -r1.13 ppc-linux-tdep.c > --- ppc-linux-tdep.c 2002/02/24 22:31:19 1.13 > +++ ppc-linux-tdep.c 2002/03/22 18:48:39 > @@ -414,6 +414,14 @@ > it may be used generically by ports which use either the SysV ABI or > the EABI */ > > +/* Structures 8 bytes or less long are returned in the r3 & r4 > + registers, according to the SYSV ABI. */ > +int > +ppc_sysv_abi_use_struct_convention (int gcc_p, struct type *value_type) > +{ > + return (TYPE_LENGTH (value_type) > 8); > +} > + > /* round2 rounds x up to the nearest multiple of s assuming that s is a > power of 2 */ Should this live in rs6000-tdep.c? enjoy, Andrew