This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[patch] cleanup dead MIPS macros
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] cleanup dead MIPS macros
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 04 May 2000 21:10:32 +1000
- Organization: Cygnus Solutions
FYI,
Andrew
Thu May 4 20:54:00 2000 Andrew Cagney <cagney@b1.cygnus.com>
* config/mips/tm-mipsv4.h (Dest_Reg), config/mips/tm-irix5.h
(MIPS_NUM_ARG_REGS, Dest_Reg), config/mips/tm-mips.h
(MIPS_NUM_ARG_REGS): Delete unused macros.
Index: config/mips/tm-irix5.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-irix5.h,v
retrieving revision 1.1.1.2
diff -p -r1.1.1.2 tm-irix5.h
*** tm-irix5.h 1999/07/07 20:15:27 1.1.1.2
--- tm-irix5.h 2000/05/04 11:08:58
***************
*** 46,61 ****
#undef MIPS_LAST_ARG_REGNUM
#define MIPS_LAST_ARG_REGNUM 11 /* N32 uses R4 through R11 for args */
- #undef MIPS_NUM_ARG_REGS
- #define MIPS_NUM_ARG_REGS 8
-
#endif /* N32 */
- /* When calling functions on Irix 5 (or any MIPS SVR4 ABI compliant
- platform) $25 must hold the function address. Dest_Reg is a macro
- used in CALL_DUMMY in tm-mips.h. */
- #undef Dest_Reg
- #define Dest_Reg 25
/* The signal handler trampoline is called _sigtramp. */
#undef IN_SIGTRAMP
--- 46,53 ----
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.3
diff -p -r1.3 tm-mips.h
*** tm-mips.h 2000/04/14 19:13:33 1.3
--- tm-mips.h 2000/05/04 11:09:00
*************** extern char *mips_register_name PARAMS (
*** 185,194 ****
#define A0_REGNUM 4 /* Loc of first arg during a subr call */
#if MIPS_EABI
#define MIPS_LAST_ARG_REGNUM 11 /* EABI uses R4 through R11 for args */
- #define MIPS_NUM_ARG_REGS 8
#else
#define MIPS_LAST_ARG_REGNUM 7 /* old ABI uses R4 through R7 for args */
- #define MIPS_NUM_ARG_REGS 4
#endif
#define T9_REGNUM 25 /* Contains address of callee in PIC */
#define SP_REGNUM 29 /* Contains address of top of stack */
--- 185,192 ----
*************** extern void mips_pop_frame PARAMS ((void
*** 430,437 ****
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
! /* On Irix, $t9 ($25) contains the address of the callee (used for PIC).
! It doesn't hurt to do this on other systems; $t9 will be ignored. */
#define FIX_CALL_DUMMY(dummyname, start_sp, fun, nargs, args, rettype, gcc_p) \
write_register(T9_REGNUM, fun)
--- 428,437 ----
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
! /* When calling functions on Irix 5 (or any MIPS SVR4 ABI compliant
! platform), $t9 ($25) (Dest_Reg) contains the address of the callee
! (used for PIC). It doesn't hurt to do this on other systems; $t9
! will be ignored. */
#define FIX_CALL_DUMMY(dummyname, start_sp, fun, nargs, args, rettype, gcc_p) \
write_register(T9_REGNUM, fun)
Index: config/mips/tm-mipsv4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mipsv4.h,v
retrieving revision 1.1.1.3
diff -p -r1.1.1.3 tm-mipsv4.h
*** tm-mipsv4.h 1999/12/14 01:05:42 1.1.1.3
--- tm-mipsv4.h 2000/05/04 11:09:00
***************
*** 21,32 ****
#include "mips/tm-bigmips.h"
#include "tm-sysv4.h"
- /* When calling functions on a MIPS SVR4 ABI compliant platform
- $25 must hold the function address. Dest_Reg is a macro
- used in CALL_DUMMY in tm-mips.h. */
- #undef Dest_Reg
- #define Dest_Reg 25
-
/* The signal handler trampoline is called _sigtramp. */
#undef IN_SIGTRAMP
#define IN_SIGTRAMP(pc, name) ((name) && STREQ ("_sigtramp", name))
--- 21,26 ----