Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] mips, floating point arg passing
@ 2006-05-31 23:35 Michael Snyder
  2006-06-08 19:16 ` Michael Snyder
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michael Snyder @ 2006-05-31 23:35 UTC (permalink / raw)
  To: Joel Brobecker, GDB Patches, Fred Fish

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

GDB is causing SIGFPE on target boards that have a FPU,
when compiled for a 32 bit ABI.


[-- Attachment #2: d3 --]
[-- Type: text/plain, Size: 1885 bytes --]

2006-05-31  Michael Snyder  <msnyder@redhat.com>

	* mips-tdep.c (mips_eabi_push_dummy_call): For 32 bit ABI, to
	decide how many registers it takes to pass a floating point
	argument, what matters is the size of a floating point register
	(not the size of a general purpose register).
	(mips_o32_push_dummy_call): Ditto.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.393
diff -p -r1.393 mips-tdep.c
*** mips-tdep.c	31 May 2006 23:15:50 -0000	1.393
--- mips-tdep.c	31 May 2006 23:28:59 -0000
*************** mips_eabi_push_dummy_call (struct gdbarc
*** 2494,2500 ****
        if (fp_register_arg_p (typecode, arg_type)
  	  && float_argreg <= MIPS_LAST_FP_ARG_REGNUM)
  	{
! 	  if (mips_abi_regsize (gdbarch) < 8 && len == 8)
  	    {
  	      int low_offset = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? 4 : 0;
  	      unsigned long regval;
--- 2494,2500 ----
        if (fp_register_arg_p (typecode, arg_type)
  	  && float_argreg <= MIPS_LAST_FP_ARG_REGNUM)
  	{
! 	  if (register_size (gdbarch, float_argreg) < 8 && len == 8)
  	    {
  	      int low_offset = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? 4 : 0;
  	      unsigned long regval;
*************** mips_o32_push_dummy_call (struct gdbarch
*** 3118,3124 ****
        if (fp_register_arg_p (typecode, arg_type)
  	  && float_argreg <= MIPS_LAST_FP_ARG_REGNUM)
  	{
! 	  if (mips_abi_regsize (gdbarch) < 8 && len == 8)
  	    {
  	      int low_offset = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? 4 : 0;
  	      unsigned long regval;
--- 3118,3124 ----
        if (fp_register_arg_p (typecode, arg_type)
  	  && float_argreg <= MIPS_LAST_FP_ARG_REGNUM)
  	{
! 	  if (register_size (gdbarch, float_argreg) < 8 && len == 8)
  	    {
  	      int low_offset = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? 4 : 0;
  	      unsigned long regval;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-19 22:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-31 23:35 [RFA] mips, floating point arg passing Michael Snyder
2006-06-08 19:16 ` Michael Snyder
2006-06-09 18:05 ` Joel Brobecker
2006-06-09 18:20   ` Daniel Jacobowitz
2006-06-19 18:50   ` Michael Snyder
2006-06-19 18:57     ` Mark Kettenis
2006-06-17 23:36 ` Mark Kettenis
2006-06-19 22:30   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox