Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: RFA: check for floating-point registers
Date: Fri, 07 May 2004 01:19:00 -0000	[thread overview]
Message-ID: <vt2isf91iqt.fsf@zenia.home> (raw)


2004-05-06  Jim Blandy  <jimb@redhat.com>

	* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
	the given architecture has floating-point registers. 

Index: gdb/ppc-sysv-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v
retrieving revision 1.22
diff -c -p -r1.22 ppc-sysv-tdep.c
*** gdb/ppc-sysv-tdep.c	5 May 2004 01:46:55 -0000	1.22
--- gdb/ppc-sysv-tdep.c	6 May 2004 19:05:44 -0000
*************** ppc64_sysv_abi_return_value (struct gdba
*** 850,855 ****
--- 850,861 ----
  			     const void *writebuf)
  {
    struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+ 
+   /* This function exists to support a calling convention that
+      requires floating-point registers.  It shouldn't be used on
+      processors that lack them.  */
+   gdb_assert (ppc_floating_point_unit_p (gdbarch));
+ 
    /* Floats and doubles in F1.  */
    if (TYPE_CODE (valtype) == TYPE_CODE_FLT && TYPE_LENGTH (valtype) <= 8)
      {


             reply	other threads:[~2004-05-07  1:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07  1:19 Jim Blandy [this message]
2004-05-07 20:37 ` Kevin Buettner
2004-05-07 20:48   ` Jim Blandy

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=vt2isf91iqt.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=gdb-patches@sources.redhat.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