mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
prototypes and casts. Replace PTR with void *. Reformat. * config/tc-mips.h: Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
|
||||||
|
|
||||||
|
* config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
|
||||||
|
prototypes and casts. Replace PTR with void *. Reformat.
|
||||||
|
* config/tc-mips.h: Likewise.
|
||||||
|
|
||||||
2003-06-30 Alan Modra <amodra@bigpond.net.au>
|
2003-06-30 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* config/tc-ia64.c (note_register_values): Warning fix.
|
* config/tc-ia64.c (note_register_values): Warning fix.
|
||||||
|
2464
gas/config/tc-mips.c
2464
gas/config/tc-mips.c
File diff suppressed because it is too large
Load Diff
@ -23,13 +23,10 @@
|
|||||||
02111-1307, USA. */
|
02111-1307, USA. */
|
||||||
|
|
||||||
#ifndef TC_MIPS
|
#ifndef TC_MIPS
|
||||||
|
|
||||||
#define TC_MIPS
|
#define TC_MIPS
|
||||||
|
|
||||||
#ifdef ANSI_PROTOTYPES
|
|
||||||
struct frag;
|
struct frag;
|
||||||
struct expressionS;
|
struct expressionS;
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Default to big endian. */
|
/* Default to big endian. */
|
||||||
#ifndef TARGET_BYTES_BIG_ENDIAN
|
#ifndef TARGET_BYTES_BIG_ENDIAN
|
||||||
@ -51,12 +48,12 @@ struct expressionS;
|
|||||||
|
|
||||||
#define md_relax_frag(segment, fragp, stretch) \
|
#define md_relax_frag(segment, fragp, stretch) \
|
||||||
mips_relax_frag(segment, fragp, stretch)
|
mips_relax_frag(segment, fragp, stretch)
|
||||||
extern int mips_relax_frag PARAMS ((asection *, struct frag *, long));
|
extern int mips_relax_frag (asection *, struct frag *, long);
|
||||||
|
|
||||||
#define md_undefined_symbol(name) (0)
|
#define md_undefined_symbol(name) (0)
|
||||||
#define md_operand(x)
|
#define md_operand(x)
|
||||||
|
|
||||||
extern void mips_handle_align PARAMS ((struct frag *));
|
extern void mips_handle_align (struct frag *);
|
||||||
#define HANDLE_ALIGN(fragp) mips_handle_align (fragp)
|
#define HANDLE_ALIGN(fragp) mips_handle_align (fragp)
|
||||||
|
|
||||||
#define MAX_MEM_FOR_RS_ALIGN_CODE (1 + 2)
|
#define MAX_MEM_FOR_RS_ALIGN_CODE (1 + 2)
|
||||||
@ -71,7 +68,7 @@ extern void mips_handle_align PARAMS ((struct frag *));
|
|||||||
/* The endianness of the target format may change based on command
|
/* The endianness of the target format may change based on command
|
||||||
line arguments. */
|
line arguments. */
|
||||||
#define TARGET_FORMAT mips_target_format()
|
#define TARGET_FORMAT mips_target_format()
|
||||||
extern const char *mips_target_format PARAMS ((void));
|
extern const char *mips_target_format (void);
|
||||||
|
|
||||||
/* MIPS PIC level. */
|
/* MIPS PIC level. */
|
||||||
|
|
||||||
@ -101,33 +98,33 @@ struct mips_cl_insn
|
|||||||
unsigned short extend;
|
unsigned short extend;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int tc_get_register PARAMS ((int frame));
|
extern int tc_get_register (int frame);
|
||||||
|
|
||||||
#define md_after_parse_args() mips_after_parse_args()
|
#define md_after_parse_args() mips_after_parse_args()
|
||||||
extern void mips_after_parse_args PARAMS ((void));
|
extern void mips_after_parse_args (void);
|
||||||
|
|
||||||
#define tc_init_after_args() mips_init_after_args()
|
#define tc_init_after_args() mips_init_after_args()
|
||||||
extern void mips_init_after_args PARAMS ((void));
|
extern void mips_init_after_args (void);
|
||||||
|
|
||||||
#define md_parse_long_option(arg) mips_parse_long_option (arg)
|
#define md_parse_long_option(arg) mips_parse_long_option (arg)
|
||||||
extern int mips_parse_long_option PARAMS ((const char *));
|
extern int mips_parse_long_option (const char *);
|
||||||
|
|
||||||
#define tc_frob_label(sym) mips_define_label (sym)
|
#define tc_frob_label(sym) mips_define_label (sym)
|
||||||
extern void mips_define_label PARAMS ((symbolS *));
|
extern void mips_define_label (symbolS *);
|
||||||
|
|
||||||
#define tc_frob_file_before_adjust() mips_frob_file_before_adjust ()
|
#define tc_frob_file_before_adjust() mips_frob_file_before_adjust ()
|
||||||
extern void mips_frob_file_before_adjust PARAMS ((void));
|
extern void mips_frob_file_before_adjust (void);
|
||||||
|
|
||||||
#define tc_frob_file_before_fix() mips_frob_file ()
|
#define tc_frob_file_before_fix() mips_frob_file ()
|
||||||
extern void mips_frob_file PARAMS ((void));
|
extern void mips_frob_file (void);
|
||||||
|
|
||||||
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
|
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
|
||||||
#define tc_frob_file_after_relocs mips_frob_file_after_relocs
|
#define tc_frob_file_after_relocs mips_frob_file_after_relocs
|
||||||
extern void mips_frob_file_after_relocs PARAMS ((void));
|
extern void mips_frob_file_after_relocs (void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define tc_fix_adjustable(fixp) mips_fix_adjustable (fixp)
|
#define tc_fix_adjustable(fixp) mips_fix_adjustable (fixp)
|
||||||
extern int mips_fix_adjustable PARAMS ((struct fix *));
|
extern int mips_fix_adjustable (struct fix *);
|
||||||
|
|
||||||
/* Values passed to md_apply_fix3 don't include symbol values. */
|
/* Values passed to md_apply_fix3 don't include symbol values. */
|
||||||
#define MD_APPLY_SYM_VALUE(FIX) 0
|
#define MD_APPLY_SYM_VALUE(FIX) 0
|
||||||
@ -141,7 +138,7 @@ extern int mips_fix_adjustable PARAMS ((struct fix *));
|
|||||||
/* When generating embedded PIC code we must keep PC relative
|
/* When generating embedded PIC code we must keep PC relative
|
||||||
relocations. */
|
relocations. */
|
||||||
#define TC_FORCE_RELOCATION(FIX) mips_force_relocation (FIX)
|
#define TC_FORCE_RELOCATION(FIX) mips_force_relocation (FIX)
|
||||||
extern int mips_force_relocation PARAMS ((struct fix *));
|
extern int mips_force_relocation (struct fix *);
|
||||||
|
|
||||||
#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG) \
|
#define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEG) \
|
||||||
(! SEG_NORMAL (SEG) || mips_force_relocation (FIX))
|
(! SEG_NORMAL (SEG) || mips_force_relocation (FIX))
|
||||||
@ -153,7 +150,7 @@ extern int mips_force_relocation PARAMS ((struct fix *));
|
|||||||
if (! mips_validate_fix ((fixp), (this_segment))) \
|
if (! mips_validate_fix ((fixp), (this_segment))) \
|
||||||
goto skip_label; \
|
goto skip_label; \
|
||||||
while (0)
|
while (0)
|
||||||
extern int mips_validate_fix PARAMS ((struct fix *, asection *));
|
extern int mips_validate_fix (struct fix *, asection *);
|
||||||
|
|
||||||
/* Register mask variables. These are set by the MIPS assembly code
|
/* Register mask variables. These are set by the MIPS assembly code
|
||||||
and used by ECOFF and possibly other object file formats. */
|
and used by ECOFF and possibly other object file formats. */
|
||||||
@ -163,7 +160,7 @@ extern unsigned long mips_cprmask[4];
|
|||||||
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
|
#if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)
|
||||||
|
|
||||||
#define elf_tc_final_processing mips_elf_final_processing
|
#define elf_tc_final_processing mips_elf_final_processing
|
||||||
extern void mips_elf_final_processing PARAMS ((void));
|
extern void mips_elf_final_processing (void);
|
||||||
|
|
||||||
#define ELF_TC_SPECIAL_SECTIONS \
|
#define ELF_TC_SPECIAL_SECTIONS \
|
||||||
{ ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \
|
{ ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \
|
||||||
@ -177,23 +174,23 @@ extern void mips_elf_final_processing PARAMS ((void));
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void md_mips_end PARAMS ((void));
|
extern void md_mips_end (void);
|
||||||
#define md_end() md_mips_end()
|
#define md_end() md_mips_end()
|
||||||
|
|
||||||
#define USE_GLOBAL_POINTER_OPT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour \
|
#define USE_GLOBAL_POINTER_OPT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour \
|
||||||
|| OUTPUT_FLAVOR == bfd_target_coff_flavour \
|
|| OUTPUT_FLAVOR == bfd_target_coff_flavour \
|
||||||
|| OUTPUT_FLAVOR == bfd_target_elf_flavour)
|
|| OUTPUT_FLAVOR == bfd_target_elf_flavour)
|
||||||
|
|
||||||
extern void mips_pop_insert PARAMS ((void));
|
extern void mips_pop_insert (void);
|
||||||
#define md_pop_insert() mips_pop_insert()
|
#define md_pop_insert() mips_pop_insert()
|
||||||
|
|
||||||
extern void mips_flush_pending_output PARAMS ((void));
|
extern void mips_flush_pending_output (void);
|
||||||
#define md_flush_pending_output mips_flush_pending_output
|
#define md_flush_pending_output mips_flush_pending_output
|
||||||
|
|
||||||
extern void mips_enable_auto_align PARAMS ((void));
|
extern void mips_enable_auto_align (void);
|
||||||
#define md_elf_section_change_hook() mips_enable_auto_align()
|
#define md_elf_section_change_hook() mips_enable_auto_align()
|
||||||
|
|
||||||
extern enum dwarf2_format mips_dwarf2_format PARAMS ((void));
|
extern enum dwarf2_format mips_dwarf2_format (void);
|
||||||
#define DWARF2_FORMAT() mips_dwarf2_format ()
|
#define DWARF2_FORMAT() mips_dwarf2_format ()
|
||||||
|
|
||||||
#define DWARF2_ADDR_SIZE(bfd) \
|
#define DWARF2_ADDR_SIZE(bfd) \
|
||||||
|
Reference in New Issue
Block a user