* RFA: check for floating-point registers
@ 2004-05-07 1:19 Jim Blandy
2004-05-07 20:37 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Jim Blandy @ 2004-05-07 1:19 UTC (permalink / raw)
To: gdb-patches
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)
{
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: check for floating-point registers
2004-05-07 1:19 RFA: check for floating-point registers Jim Blandy
@ 2004-05-07 20:37 ` Kevin Buettner
2004-05-07 20:48 ` Jim Blandy
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Buettner @ 2004-05-07 20:37 UTC (permalink / raw)
To: Jim Blandy; +Cc: gdb-patches
On 06 May 2004 14:02:50 -0500
Jim Blandy <jimb@redhat.com> wrote:
> 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.
Okay.
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: check for floating-point registers
2004-05-07 20:37 ` Kevin Buettner
@ 2004-05-07 20:48 ` Jim Blandy
0 siblings, 0 replies; 3+ messages in thread
From: Jim Blandy @ 2004-05-07 20:48 UTC (permalink / raw)
To: Kevin Buettner; +Cc: gdb-patches
Kevin Buettner <kevinb@redhat.com> writes:
> On 06 May 2004 14:02:50 -0500
> Jim Blandy <jimb@redhat.com> wrote:
>
> > 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.
>
> Okay.
Committed, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-07 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-07 1:19 RFA: check for floating-point registers Jim Blandy
2004-05-07 20:37 ` Kevin Buettner
2004-05-07 20:48 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox