Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: gdb-patches@sources.redhat.com
Cc: orjanf@axis.com
Subject: Re: [obish/cris] Delete extract_struct_value_address
Date: Sun, 18 Jan 2004 00:02:00 -0000	[thread overview]
Message-ID: <4009CD16.4050809@gnu.org> (raw)
In-Reply-To: <4009944E.2070405@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 85 bytes --]

... and incorrectly removed this function.  Cris has it in for me :-/ sorry,

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 977 bytes --]

2004-01-17  Andrew Cagney  <cagney@redhat.com>

	* 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.  */
 

      reply	other threads:[~2004-01-18  0:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-17 19:02 Andrew Cagney
2004-01-17 20:00 ` Andrew Cagney
2004-01-18  0:02   ` Andrew Cagney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4009CD16.4050809@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=orjanf@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox