From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21065 invoked by alias); 18 Jan 2004 00:02:36 -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 21052 invoked from network); 18 Jan 2004 00:02:35 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.4.239) by sources.redhat.com with SMTP; 18 Jan 2004 00:02:35 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 920172B8F; Sat, 17 Jan 2004 19:02:30 -0500 (EST) Message-ID: <4009CD16.4050809@gnu.org> Date: Sun, 18 Jan 2004 00:02:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Cc: orjanf@axis.com Subject: Re: [obish/cris] Delete extract_struct_value_address References: <400986D4.10803@gnu.org> <4009944E.2070405@gnu.org> Content-Type: multipart/mixed; boundary="------------040308030405060708050203" X-SW-Source: 2004-01/txt/msg00460.txt.bz2 This is a multi-part message in MIME format. --------------040308030405060708050203 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 85 ... and incorrectly removed this function. Cris has it in for me :-/ sorry, Andrew --------------040308030405060708050203 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 977 2004-01-17 Andrew Cagney * cris-tdep.c (cris_store_struct_return): Put back accidently deleted function. Index: cris-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/cris-tdep.c,v retrieving revision 1.95 diff -u -r1.95 cris-tdep.c --- cris-tdep.c 17 Jan 2004 20:02:04 -0000 1.95 +++ cris-tdep.c 18 Jan 2004 00:00:13 -0000 @@ -1076,6 +1076,17 @@ internal_error (__FILE__, __LINE__, "cris_abi_v2_extract_return_value: type length too large"); } +/* Store the address of the place in which to copy the structure the + subroutine will return. In the CRIS ABI, R9 is used in order to + pass the address of the allocated area where a structure return + value must be stored. */ + +static void +cris_store_struct_return (CORE_ADDR addr, CORE_ADDR sp) +{ + write_register (STR_REGNUM, addr); +} + /* Returns 1 if the given type will be passed by pointer rather than directly. */ --------------040308030405060708050203--