This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch/rfc] Eliminate TARGET_BYTE_ORDER from config/*/*


Hello,

This is the last in the byte-order patches (I hope).  It eliminates 
TARGET_BYTE_ORDER from all tm-*.h files.

In a way this is just a preemptive strike.  A multi-arch target doesn't 
define the macro.

I'll leave this for a few days before checking it in.

Andrew
2002-01-20  Andrew Cagney  <ac131313@redhat.com>

	* config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
	* config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
	* config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
	* config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
	* config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
	* config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
	* config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
	* config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
	* config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
	* config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
	* config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
	* config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
	* config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
	* config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
	* config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
	* config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
	* config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
	* config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
	* config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
	* config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.

Index: config/alpha/tm-alpha.h
===================================================================
RCS file: /cvs/src/src/gdb/config/alpha/tm-alpha.h,v
retrieving revision 1.15
diff -p -r1.15 tm-alpha.h
*** tm-alpha.h	2002/01/20 18:05:51	1.15
--- tm-alpha.h	2002/01/20 21:07:17
*************** struct type;
*** 33,42 ****
  struct value;
  struct symbol;
  
- #if !defined (TARGET_BYTE_ORDER)
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- #endif
- 
  /* Redefine some target bit sizes from the default.  */
  
  #define TARGET_LONG_BIT 64
--- 33,38 ----
Index: config/d30v/tm-d30v.h
===================================================================
RCS file: /cvs/src/src/gdb/config/d30v/tm-d30v.h,v
retrieving revision 1.5
diff -p -r1.5 tm-d30v.h
*** tm-d30v.h	2002/01/05 04:30:27	1.5
--- tm-d30v.h	2002/01/20 21:07:19
***************
*** 23,32 ****
  
  #include "regcache.h"
  
- /* Define the bit, byte, and word ordering of the machine.  */
- 
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* Offset from address of function to start of its code.
     Zero on most machines.  */
  
--- 23,28 ----
Index: config/fr30/tm-fr30.h
===================================================================
RCS file: /cvs/src/src/gdb/config/fr30/tm-fr30.h,v
retrieving revision 1.8
diff -p -r1.8 tm-fr30.h
*** tm-fr30.h	2002/01/20 18:05:52	1.8
--- tm-fr30.h	2002/01/20 21:07:20
***************
*** 52,59 ****
  
  #define INNER_THAN(lhs,rhs) ((lhs) < (rhs))
  
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  #define R0_REGNUM  0
  #define R1_REGNUM  1
  #define R2_REGNUM  2
--- 52,57 ----
Index: config/h8300/tm-h8300.h
===================================================================
RCS file: /cvs/src/src/gdb/config/h8300/tm-h8300.h,v
retrieving revision 1.9
diff -p -r1.9 tm-h8300.h
*** tm-h8300.h	2002/01/20 18:05:52	1.9
--- tm-h8300.h	2002/01/20 21:07:20
*************** extern int h8300smode;
*** 58,65 ****
  
  extern void h8300_init_extra_frame_info ();
  
- /* Define the bit, byte, and word ordering of the machine.  */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
  #undef TARGET_INT_BIT
  #define TARGET_INT_BIT  16
  #undef TARGET_LONG_BIT
--- 58,63 ----
Index: config/h8500/tm-h8500.h
===================================================================
RCS file: /cvs/src/src/gdb/config/h8500/tm-h8500.h,v
retrieving revision 1.9
diff -p -r1.9 tm-h8500.h
*** tm-h8500.h	2002/01/20 18:05:52	1.9
--- tm-h8500.h	2002/01/20 21:07:20
***************
*** 25,34 ****
  
  #define GDB_TARGET_IS_H8500
  
- /* Define the bit, byte, and word ordering of the machine.  */
- 
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* Define the sizes of integers and pointers.  */
  
  #define TARGET_INT_BIT 16
--- 25,30 ----
Index: config/i386/tm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386.h,v
retrieving revision 1.28
diff -p -r1.28 tm-i386.h
*** tm-i386.h	2002/01/20 18:05:53	1.28
--- tm-i386.h	2002/01/20 21:07:21
*************** struct frame_saved_regs;
*** 32,39 ****
  struct value;
  struct type;
  
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* The format used for `long double' on almost all i386 targets is the
     i387 extended floating-point format.  In fact, of all targets in the
     GCC 2.95 tree, only OSF/1 does it different, and insists on having
--- 32,37 ----
Index: config/i960/tm-i960.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i960/tm-i960.h,v
retrieving revision 1.7
diff -p -r1.7 tm-i960.h
*** tm-i960.h	2002/01/20 18:05:53	1.7
--- tm-i960.h	2002/01/20 21:07:21
***************
*** 38,46 ****
  
  #define	DBX_PARM_SYMBOL_CLASS(type) ((type == N_LSYM)? LOC_LOCAL_ARG: LOC_ARG)
  
- /* Byte order is configurable, but this machine runs little-endian.  */
- #define	TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* Offset from address of function to start of its code.
     Zero on most machines.  */
  
--- 38,43 ----
Index: config/ia64/tm-ia64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/tm-ia64.h,v
retrieving revision 1.3
diff -p -r1.3 tm-ia64.h
*** tm-ia64.h	2001/12/15 16:53:23	1.3
--- tm-ia64.h	2002/01/20 21:07:21
***************
*** 27,36 ****
  
  #else /* defines needed for GDBSERVER */
  
- /* ia64 is little endian by default */
- 
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* Say how long (ordinary) registers are.  This is a piece of bogosity
     used in push_word and a few other places; REGISTER_RAW_SIZE is the
     real way to know how big a register is.  */
--- 27,32 ----
Index: config/m32r/tm-m32r.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m32r/tm-m32r.h,v
retrieving revision 1.5
diff -p -r1.5 tm-m32r.h
*** tm-m32r.h	2002/01/05 04:30:32	1.5
--- tm-m32r.h	2002/01/20 21:07:23
***************
*** 23,31 ****
  /* Used by mswin.  */
  #define TARGET_M32R 1
  
- /* mvs_check TARGET_BYTE_ORDER BFD_ENDIAN_BIG */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* mvs_check REGISTER_NAMES */
  #define REGISTER_NAMES \
  { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
--- 23,28 ----
Index: config/m68k/tm-m68k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/tm-m68k.h,v
retrieving revision 1.9
diff -p -r1.9 tm-m68k.h
*** tm-m68k.h	2002/01/20 18:05:53	1.9
--- tm-m68k.h	2002/01/20 21:07:28
***************
*** 23,31 ****
  
  /* Generic 68000 stuff, to be included by other tm-*.h files.  */
  
- /* Define the bit, byte, and word ordering of the machine.  */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  #define TARGET_LONG_DOUBLE_FORMAT &floatformat_m68881_ext
  
  #define TARGET_LONG_DOUBLE_BIT 96
--- 23,28 ----
Index: config/m88k/tm-m88k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m88k/tm-m88k.h,v
retrieving revision 1.11
diff -p -r1.11 tm-m88k.h
*** tm-m88k.h	2002/01/20 18:05:53	1.11
--- tm-m88k.h	2002/01/20 21:07:29
***************
*** 25,33 ****
  
  /* g++ support is not yet included.  */
  
- /* Define the bit, byte, and word ordering of the machine.  */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* We cache information about saved registers in the frame structure,
     to save us from having to re-scan function prologues every time
     a register in a non-current frame is accessed.  */
--- 25,30 ----
Index: config/mips/tm-wince.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-wince.h,v
retrieving revision 1.5
diff -p -r1.5 tm-wince.h
*** tm-wince.h	2002/01/20 19:26:49	1.5
--- tm-wince.h	2002/01/20 21:07:29
***************
*** 29,34 ****
  #define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
  
  void wince_software_single_step (unsigned int, int);
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
  
  #endif /* TM_WINCE_H */
--- 29,33 ----
Index: config/mn10200/tm-mn10200.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mn10200/tm-mn10200.h,v
retrieving revision 1.6
diff -p -r1.6 tm-mn10200.h
*** tm-mn10200.h	2001/12/15 16:53:23	1.6
--- tm-mn10200.h	2002/01/20 21:07:29
***************
*** 25,33 ****
     macros into functions.  */
  #include "regcache.h"
  
- /* The mn10200 is little endian.  */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* ints are only 16bits on the mn10200.  */
  #undef TARGET_INT_BIT
  #define TARGET_INT_BIT 16
--- 25,30 ----
Index: config/ns32k/tm-umax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ns32k/tm-umax.h,v
retrieving revision 1.7
diff -p -r1.7 tm-umax.h
*** tm-umax.h	2001/12/15 16:53:23	1.7
--- tm-umax.h	2002/01/20 21:07:29
***************
*** 21,30 ****
  
  #include "regcache.h"
  
- /* This is also included by tm-ns32km3.h, as well as being used by umax.  */
- 
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* Need to get function ends by adding this to epilogue address from .bf
     record, not using x_fsize field.  */
  #define FUNCTION_EPILOGUE_SIZE 4
--- 21,26 ----
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.13
diff -p -r1.13 tm-hppa.h
*** tm-hppa.h	2002/01/20 18:05:53	1.13
--- tm-hppa.h	2002/01/20 21:07:30
*************** struct value;
*** 32,41 ****
  struct type;
  struct inferior_status;
  
- /* Target system byte order. */
- 
- #define	TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* By default assume we don't have to worry about software floating point.  */
  #ifndef SOFT_FLOAT
  #define SOFT_FLOAT 0
--- 32,37 ----
Index: config/sh/tm-wince.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sh/tm-wince.h,v
retrieving revision 1.6
diff -p -r1.6 tm-wince.h
*** tm-wince.h	2002/01/20 19:26:49	1.6
--- tm-wince.h	2002/01/20 21:07:30
***************
*** 28,33 ****
  #undef SOFTWARE_SINGLE_STEP
  #define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
  void wince_software_single_step (unsigned int, int);
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
  
  #endif /* TM_WINCE_H */
--- 28,32 ----
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.11
diff -p -r1.11 tm-sparc.h
*** tm-sparc.h	2002/01/20 18:05:54	1.11
--- tm-sparc.h	2002/01/20 21:07:34
*************** extern int sparc_intreg_size (void);
*** 159,166 ****
    "y", "psr", "wim", "tbr", "pc", "npc", "fpsr", "cpsr" 	\
  }
  
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* Offset from address of function to start of its code.
     Zero on most machines.  */
  
--- 159,164 ----
Index: config/v850/tm-v850.h
===================================================================
RCS file: /cvs/src/src/gdb/config/v850/tm-v850.h,v
retrieving revision 1.6
diff -p -r1.6 tm-v850.h
*** tm-v850.h	2001/12/15 16:53:24	1.6
--- tm-v850.h	2002/01/20 21:07:34
***************
*** 21,28 ****
  
  #include "regcache.h"
  
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  #define NUM_REGS 66
  
  #define REGISTER_NAMES \
--- 21,26 ----
Index: config/vax/tm-vax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/tm-vax.h,v
retrieving revision 1.5
diff -p -r1.5 tm-vax.h
*** tm-vax.h	2001/12/15 16:53:24	1.5
--- tm-vax.h	2002/01/20 21:07:34
***************
*** 21,28 ****
  
  #include "regcache.h"
  
- #define TARGET_BYTE_ORDER BFD_ENDIAN_LITTLE
- 
  /* Offset from address of function to start of its code.
     Zero on most machines.  */
  
--- 21,26 ----
Index: config/z8k/tm-z8k.h
===================================================================
RCS file: /cvs/src/src/gdb/config/z8k/tm-z8k.h,v
retrieving revision 1.7
diff -p -r1.7 tm-z8k.h
*** tm-z8k.h	2002/01/20 18:05:54	1.7
--- tm-z8k.h	2002/01/20 21:07:34
***************
*** 29,37 ****
  #define TARGET_LONG_BIT 32
  #define TARGET_PTR_BIT (BIG ? 32: 16)
  
- /* Define the bit, byte, and word ordering of the machine.  */
- #define TARGET_BYTE_ORDER BFD_ENDIAN_BIG
- 
  /* Offset from address of function to start of its code.
     Zero on most machines.  */
  
--- 29,34 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]