[PATCH]: DJGPP build and cleanup

Eli Zaretskii eliz@delorie.com
Thu Feb 24 03:18:00 GMT 2000


> From: Mark Kettenis <kettenis@wins.uva.nl>
>
>    Date: Wed, 23 Feb 2000 17:29:16 -0500 (EST)
>    From: Eli Zaretskii <eliz@delorie.com>
> 
>    The change to i386-tdep.c should probably be approved by someone (I
>    cannot figure out from MAINTAINERS who's responsible for i386
>    targets).
> 
> Youd didn't include the changes to i386-tdep.c :-(.

I erroneously appended them to the other set of patches I sent
yesterday.  I attach it below again.

> The point is that if you look at the GCC configuration files, you'll
> see that returning FP values in the FP registers is the default for
> most (probably all) i386 targets.  So I think this should be the
> default in GDB too.

I didn't know that this was the case, but if it is so, I agree that
returning FP values in registers should be the default.


2000-02-23  Eli Zaretskii  <eliz@is.elta.co.il>

	* i386-tdep.c (i386_extract_return_value)
	[I386_AIX_TARGET || I386_GNULINUX_TARGET]: Add I386_DJGPP_TARGET
	to the list of targets which return FP values in FP registers.

--- gdb/i386-tdep.c~0	Tue Oct 19 02:46:36 1999
+++ gdb/i386-tdep.c	Wed Feb 23 12:17:20 2000
@@ -702,9 +702,9 @@ i386_extract_return_value (type, regbuf,
      char regbuf[REGISTER_BYTES];
      char *valbuf;
 {
-  /* On AIX and i386 GNU/Linux, floating point values are returned in
-     floating point registers.  */
-#if defined(I386_AIX_TARGET) || defined(I386_GNULINUX_TARGET)
+  /* On AIX, i386 GNU/Linux and DJGPP, floating point values are
+     returned in floating point registers.  */
+#if defined(I386_AIX_TARGET) || defined(I386_GNULINUX_TARGET) || defined(I386_DJGPP_TARGET)
   if (TYPE_CODE_FLT == TYPE_CODE (type))
     {
       double d;
@@ -720,7 +720,7 @@ i386_extract_return_value (type, regbuf,
       store_floating (valbuf, TYPE_LENGTH (type), d);
     }
   else
-#endif /* I386_AIX_TARGET || I386_GNULINUX_TARGET*/
+#endif /* I386_AIX_TARGET || I386_GNULINUX_TARGET || I386_DJGPP_TARGET */
     {
 #if defined(LOW_RETURN_REGNUM)
       int len = TYPE_LENGTH (type);


More information about the Gdb-patches mailing list