From: Ken Raeburn Date: Sun, 30 Jan 1994 23:26:55 +0000 (+0000) Subject: (Already checked in write.c and config/tc-alpha.c, but no log msg went X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=424263203943ca8331f5fef67b026323bfd24e2b;p=binutils-gdb.git (Already checked in write.c and config/tc-alpha.c, but no log msg went out because $CVSROOT was wrong...) * write.c (write_object_file): If tc_frob_file is defined, call it just before calling obj_frob_file. * config/tc-alpha.c (alpha_gp_value): Renamed from gp_value (references changed), and made non-static. (getExpression): Return void. (select_gp_value): Abort if gp_value is non-zero. Delete call to non-existent bfd_set_gp_value. (alpha_validate_fix): Function deleted. (alpha_frob_symbol): Function deleted. (alpha_local_label): Function deleted. (alpha_frob_file): Renamed from alpha_end. * config/tc-alpha.h (alpha_frob_symbol, alpha_validate_fix, alpha_local_label, alpha_end): Declarations deleted. (alpha_gp_value, alpha_frob_file): Declare. (tc_frob_symbol, TC_VALIDATE_FIX, md_end): Macros deleted. (LOCAL_LABEL): Move code here from tc-alpha.c:alpha_local_label. (md_convert_frag): Simplified slightly. (tc_frob_file): New macro. --- diff --git a/gas/config/tc-alpha.h b/gas/config/tc-alpha.h index 4994cf962b8..809bc67b5ed 100644 --- a/gas/config/tc-alpha.h +++ b/gas/config/tc-alpha.h @@ -34,18 +34,15 @@ extern int alpha_force_relocation PARAMS ((struct fix *)); extern int alpha_fix_adjustable PARAMS ((struct fix *)); -extern int alpha_frob_symbol PARAMS ((struct symbol *)); -extern int alpha_validate_fix PARAMS ((struct fix *, segT)); extern unsigned long alpha_gprmask, alpha_fprmask; +extern valueT alpha_gp_value; #define TC_FORCE_RELOCATION(FIXP) alpha_force_relocation (FIXP) #define tc_fix_adjustable(FIXP) alpha_fix_adjustable (FIXP) #define RELOC_REQUIRES_SYMBOL -#define tc_frob_symbol(S,P) ((P) = alpha_frob_symbol (S)) -#define TC_VALIDATE_FIX(F,S,L) if(alpha_validate_fix(F,S))goto L; -#define md_convert_frag(b,s,f) {as_fatal ("alpha convert_frag\n");} +#define md_convert_frag(b,s,f) as_fatal ("alpha convert_frag\n") #define md_create_long_jump(p,f,t,fr,s) as_fatal("alpha_create_long_jump") #define md_create_short_jump(p,f,t,fr,s) as_fatal("alpha_create_short_jump") #define md_estimate_size_before_relax(f,s) \ @@ -55,13 +52,13 @@ extern unsigned long alpha_gprmask, alpha_fprmask; extern unsigned long md_section_align PARAMS ((segT, unsigned long)); #define md_undefined_symbol(name) (0) -extern void alpha_end (); -#define md_end() alpha_end () -extern int alpha_local_label PARAMS ((const char *)); -#define LOCAL_LABEL(name) alpha_local_label (name) +#define LOCAL_LABEL(name) ((name)[0] == 'L') #define md_number_to_chars number_to_chars_littleendian extern int alpha_do_align (); #define md_do_align(n,fill,l) if (alpha_do_align(n,fill)) goto l + +extern void alpha_frob_file (); +#define tc_frob_file alpha_frob_file