From 4b18b7cd8881ad48fea58ab030fa455ead217e9d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 6 Jul 1995 02:52:44 +0000 Subject: more vms fixes from Pat Rankin --- gas/config/obj-vms.h | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'gas/config/obj-vms.h') diff --git a/gas/config/obj-vms.h b/gas/config/obj-vms.h index 1fc8ba7..c0582e3 100644 --- a/gas/config/obj-vms.h +++ b/gas/config/obj-vms.h @@ -43,11 +43,6 @@ extern char const_flag; #define IN_DEFAULT_SECTION 0x80 -/* Compiler-generated label "__vax_g_doubles" is used to augment .stabs. */ - -#define tc_frob_label(X) vms_check_for_special_label(X) -extern void vms_check_for_special_label(); - /* These are defined in obj-vms.c. */ extern const short seg_N_TYPE[]; extern const segT N_TYPE_seg[]; @@ -214,12 +209,23 @@ typedef struct nlist obj_symbol_type; /* Symbol table entry */ #define obj_symbol_new_hook(s) {;} +/* Force structure tags into scope so that their use in prototypes + will never be their first occurance. */ struct fix; +struct symbol; +struct frag; + +/* obj-vms routines visible to the rest of gas. */ + extern void tc_aout_fix_to_chars PARAMS ((char *,struct fix *,relax_addressT)); -extern int vms_resolve_symbol_redef (); +extern int vms_resolve_symbol_redef PARAMS ((struct symbol *)); #define RESOLVE_SYMBOL_REDEFINITION(X) vms_resolve_symbol_redef(X) +/* Compiler-generated label "__vax_g_doubles" is used to augment .stabs. */ +extern void vms_check_for_special_label PARAMS ((struct symbol *)); +#define tc_frob_label(X) vms_check_for_special_label(X) + extern void vms_check_for_main PARAMS ((void)); extern void vms_write_object_file PARAMS ((unsigned,unsigned,unsigned, @@ -231,9 +237,11 @@ extern void vms_write_object_file PARAMS ((unsigned,unsigned,unsigned, #define AOUT_STABS -/* The rest of this file contains definitions for constants used within the actual - VMS object file. We do not use a $ in the symbols (as per usual VMS - convention) since System V gags on it. */ +#ifdef WANT_VMS_OBJ_DEFS + +/* The rest of this file contains definitions for constants used within + the actual VMS object file. We do not use a $ in the symbols (as per + usual VMS convention) since System V gags on it. */ #define OBJ_S_C_HDR 0 #define OBJ_S_C_HDR_MHD 0 @@ -534,4 +542,7 @@ extern void vms_write_object_file PARAMS ((unsigned,unsigned,unsigned, #define DBG_S_C_POINTER DST_K_TS_TPTR #define DBG_S_C_VOID DST_K_TS_PTR #define DBG_S_C_COMPLEX_ARRAY DST_K_TS_ARRAY + +#endif /* WANT_VMS_OBJ_DEFS */ + /* end of obj-vms.h */ -- cgit v1.1