From a2a1a548c752684ea944c38ce94e388ba9d095c4 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 24 Aug 1994 21:48:18 +0000 Subject: gcc lint. * as.c (main): Move a inside the #if 0 block which uses it. * ecoff.c (current_stabs_filename): Make const. * frags.h (frag_align_pattern): Declare. * gasp.c (new_file): Cast isp to long, and use %ld to print it. * config/tc-alpha.h (md_operand): Add cast to void. (alpha_do_align): Declare argument types. (tc_get_register): Declare. (alpha_frob_ecoff_data): Declare. * config/tc-alpha.c: Include . (s_mask): Don't declare; does not exist. (line_comment_chars): Remove /* from descriptive comment. (tc_get_register): Remove unused local reg. (tc_gen_reloc): Don't bother to compare unsigned to zero. (s_base): Correct warning to actually print register number. (md_begin): Remove unused locals retval, lose, and i. (alpha_fix_adjustable): Move default case inside switch to avoid warning. (load_symbol_address): Remove unused locals reloc_addr, p, sym, and addend. (emit_byte_manip_r): Declare types for all arguments. (emit_extract_r, emit_insert_r, emit_mask_r): Likewise. (emit_sign_extend, emit_bis_r, s_proc): Likewise. (alpha_ip): Use sprint_value to print offsetT value. Remove unused local size. Remove unused label get_macro. (alpha_do_align): Make fill const. (md_apply_fix): Remove unused label check_zov. --- gas/frags.h | 85 +++++++++++++++++++++++++------------------------------------ 1 file changed, 35 insertions(+), 50 deletions(-) (limited to 'gas/frags.h') diff --git a/gas/frags.h b/gas/frags.h index 756734c..1be3b00 100644 --- a/gas/frags.h +++ b/gas/frags.h @@ -31,55 +31,40 @@ extern struct obstack frags; /* JF changed < 1 to <= 1 to avoid a race conditon */ #define FRAG_APPEND_1_CHAR(datum) \ { \ - if (obstack_room( &frags ) <= 1) {\ - frag_wane (frag_now); \ - frag_new (0); \ - } \ - obstack_1grow( &frags, datum ); \ - } - - -#if __STDC__ == 1 - -char *frag_more (int nchars); -void frag_align (int alignment, int fill_character); -void frag_new (int old_frags_var_max_size); -void frag_wane (fragS * fragP); - -char *frag_variant (relax_stateT type, - int max_chars, - int var, - relax_substateT subtype, - symbolS * symbol, - long offset, - char *opcode, - int pcrel_adjust, - int bsr); - -char *frag_var (relax_stateT type, - int max_chars, - int var, - relax_substateT subtype, - symbolS * symbol, - long offset, - char *opcode); - -#else /* not __STDC__ */ - -char *frag_more (); -char *frag_var (); -char *frag_variant (); -void frag_align (); -void frag_new (); -void frag_wane (); - -#endif /* not __STDC__ */ - -/* - * Local Variables: - * comment-column: 0 - * fill-column: 131 - * End: - */ + if (obstack_room( &frags ) <= 1) {\ + frag_wane (frag_now); \ + frag_new (0); \ + } \ + obstack_1grow( &frags, datum ); \ +} + + +void frag_init PARAMS ((void)); +void frag_grow PARAMS ((unsigned int nchars)); +char *frag_more PARAMS ((int nchars)); +void frag_align PARAMS ((int alignment, int fill_character)); +void frag_align_pattern PARAMS ((int alignment, + const char *fill_pattern, + int n_fill)); +void frag_new PARAMS ((int old_frags_var_max_size)); +void frag_wane PARAMS ((fragS * fragP)); + +char *frag_variant PARAMS ((relax_stateT type, + int max_chars, + int var, + relax_substateT subtype, + symbolS * symbol, + long offset, + char *opcode, + int pcrel_adjust, + int bsr)); + +char *frag_var PARAMS ((relax_stateT type, + int max_chars, + int var, + relax_substateT subtype, + symbolS * symbol, + long offset, + char *opcode)); /* end of frags.h */ -- cgit v1.1