[PATCH] Get rid of HAVE_I387_REGS

Mark Kettenis kettenis@chello.nl
Sat Jun 15 11:10:00 GMT 2002


HAVE_I387_REGS serves no real purpose anymore.  The decision whether
we support the floating-point registers is now made when initializing
the architecture.  Note that even the basic i386 target now supports
floating-point registers.  This may be undesirable for a few embedded
targets.  If so we should think of some other way to make that happen.

Checked in.

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
	config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
	config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
	config/i386/tm-linux.h, config/i386/tm-nbsd.h,
	config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
	* config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.

Index: config/i386/tm-cygwin.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-cygwin.h,v
retrieving revision 1.11
diff -u -p -r1.11 tm-cygwin.h
--- config/i386/tm-cygwin.h 27 Nov 2001 05:15:58 -0000 1.11
+++ config/i386/tm-cygwin.h 15 Jun 2002 18:03:34 -0000
@@ -25,7 +25,6 @@
 #else
 #undef HAVE_SSE_REGS
 #endif /* CONTEXT_EXTENDED_REGISTERS */
-#define HAVE_I387_REGS
 
 #include "i386/tm-i386.h"
 
Index: config/i386/tm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-fbsd.h,v
retrieving revision 1.6
diff -u -p -r1.6 tm-fbsd.h
--- config/i386/tm-fbsd.h 14 Jun 2002 19:42:20 -0000 1.6
+++ config/i386/tm-fbsd.h 15 Jun 2002 18:03:34 -0000
@@ -21,7 +21,6 @@
 #ifndef TM_FBSD_H
 #define TM_FBSD_H
 
-#define HAVE_I387_REGS
 #include "i386/tm-i386.h"
 
 /* These defines allow the recognition of sigtramps as a function name
Index: config/i386/tm-go32.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-go32.h,v
retrieving revision 1.6
diff -u -p -r1.6 tm-go32.h
--- config/i386/tm-go32.h 14 Jun 2002 19:42:20 -0000 1.6
+++ config/i386/tm-go32.h 15 Jun 2002 18:03:34 -0000
@@ -22,7 +22,6 @@
 #define TM_GO32_H
 
 #undef HAVE_SSE_REGS	/* FIXME! go32-nat.c needs to support XMMi registers */
-#define HAVE_I387_REGS
 
 #include "i386/tm-i386.h"
 
Index: config/i386/tm-i386gnu.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386gnu.h,v
retrieving revision 1.4
diff -u -p -r1.4 tm-i386gnu.h
--- config/i386/tm-i386gnu.h 5 Jun 2002 19:18:19 -0000 1.4
+++ config/i386/tm-i386gnu.h 15 Jun 2002 18:03:34 -0000
@@ -39,7 +39,6 @@
    FIXME: This is probably native-dependent too.  */
 #define ATTACH_DETACH 1
 
-#define HAVE_I387_REGS
 #include "i386/tm-i386.h"
 
 /* We use stabs-in-ELF with the DWARF register numbering scheme.  */
Index: config/i386/tm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386sol2.h,v
retrieving revision 1.11
diff -u -p -r1.11 tm-i386sol2.h
--- config/i386/tm-i386sol2.h 14 Jun 2002 19:42:20 -0000 1.11
+++ config/i386/tm-i386sol2.h 15 Jun 2002 18:03:34 -0000
@@ -21,7 +21,6 @@
 #ifndef TM_I386SOL2_H
 #define TM_I386SOL2_H 1
 
-#define HAVE_I387_REGS
 #include "i386/tm-i386v4.h"
 
 /* If the current gcc for for this target does not produce correct
Index: config/i386/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-linux.h,v
retrieving revision 1.20
diff -u -p -r1.20 tm-linux.h
--- config/i386/tm-linux.h 14 Jun 2002 19:42:20 -0000 1.20
+++ config/i386/tm-linux.h 15 Jun 2002 18:03:34 -0000
@@ -24,7 +24,6 @@
 #define TM_LINUX_H
 
 #define I386_GNULINUX_TARGET
-#define HAVE_I387_REGS
 #ifdef HAVE_PTRACE_GETFPXREGS
 #define FILL_FPXREGSET
 #define HAVE_SSE_REGS
Index: config/i386/tm-nbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-nbsd.h,v
retrieving revision 1.11
diff -u -p -r1.11 tm-nbsd.h
--- config/i386/tm-nbsd.h 14 Jun 2002 19:42:20 -0000 1.11
+++ config/i386/tm-nbsd.h 15 Jun 2002 18:03:34 -0000
@@ -21,7 +21,6 @@
 #ifndef TM_NBSD_H
 #define TM_NBSD_H
 
-#define HAVE_I387_REGS
 #define HAVE_SSE_REGS
 
 #include "i386/tm-i386.h"
Index: config/i386/tm-obsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-obsd.h,v
retrieving revision 1.1
diff -u -p -r1.1 tm-obsd.h
--- config/i386/tm-obsd.h 23 Nov 2001 23:01:54 -0000 1.1
+++ config/i386/tm-obsd.h 15 Jun 2002 18:03:35 -0000
@@ -21,7 +21,6 @@
 #ifndef TM_OBSD_H
 #define TM_OBSD_H
 
-#define HAVE_I387_REGS
 #include "i386/tm-i386.h"
 
 /* OpenBSD uses the old gcc convention for struct returns.  */
Index: config/i386/tm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386.h,v
retrieving revision 1.35
diff -u -p -r1.35 tm-i386.h
--- config/i386/tm-i386.h 15 Jun 2002 17:41:29 -0000 1.35
+++ config/i386/tm-i386.h 15 Jun 2002 18:03:35 -0000
@@ -87,10 +87,8 @@ extern void i386_register_convert_to_raw
 					  char *from, char *to);
 
 /* Print out the i387 floating point state.  */
-#ifdef HAVE_I387_REGS
 extern void i387_float_info (void);
 #define FLOAT_INFO { i387_float_info (); }
-#endif
 
 
 #define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \



More information about the Gdb-patches mailing list