diff options
author | Thiemo Seufer <ths@networkno.de> | 2003-06-30 12:44:25 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2003-06-30 12:44:25 +0000 |
commit | 17a2f25124028eb8d770d0682b1fa117c709f0d4 (patch) | |
tree | 80cc48497fb8a1b0f78593af704a4a8f822a8e19 /gas/config/tc-mips.h | |
parent | 6344efa4f29dc63c108252eb91eb73e593792176 (diff) | |
download | gdb-17a2f25124028eb8d770d0682b1fa117c709f0d4.zip gdb-17a2f25124028eb8d770d0682b1fa117c709f0d4.tar.gz gdb-17a2f25124028eb8d770d0682b1fa117c709f0d4.tar.bz2 |
* config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
prototypes and casts. Replace PTR with void *. Reformat.
* config/tc-mips.h: Likewise.
Diffstat (limited to 'gas/config/tc-mips.h')
-rw-r--r-- | gas/config/tc-mips.h | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index b7277ab..7afee94 100644 --- a/gas/config/tc-mips.h +++ b/gas/config/tc-mips.h @@ -23,13 +23,10 @@ 02111-1307, USA. */ #ifndef TC_MIPS - #define TC_MIPS -#ifdef ANSI_PROTOTYPES struct frag; struct expressionS; -#endif /* Default to big endian. */ #ifndef TARGET_BYTES_BIG_ENDIAN @@ -51,12 +48,12 @@ struct expressionS; #define md_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_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 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 line arguments. */ #define TARGET_FORMAT mips_target_format() -extern const char *mips_target_format PARAMS ((void)); +extern const char *mips_target_format (void); /* MIPS PIC level. */ @@ -101,33 +98,33 @@ struct mips_cl_insn 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() -extern void mips_after_parse_args PARAMS ((void)); +extern void mips_after_parse_args (void); #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) -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) -extern void mips_define_label PARAMS ((symbolS *)); +extern void mips_define_label (symbolS *); #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 () -extern void mips_frob_file PARAMS ((void)); +extern void mips_frob_file (void); #if defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF) #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 #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. */ #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 relocations. */ #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) \ (! 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))) \ goto skip_label; \ 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 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) #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 \ { ".sdata", SHT_PROGBITS, SHF_ALLOC + SHF_WRITE + SHF_MIPS_GPREL }, \ @@ -177,23 +174,23 @@ extern void mips_elf_final_processing PARAMS ((void)); #endif -extern void md_mips_end PARAMS ((void)); +extern void md_mips_end (void); #define md_end() md_mips_end() #define USE_GLOBAL_POINTER_OPT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour \ || OUTPUT_FLAVOR == bfd_target_coff_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() -extern void mips_flush_pending_output PARAMS ((void)); +extern void mips_flush_pending_output (void); #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() -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_ADDR_SIZE(bfd) \ |