2000-09-13 Kazu Hirata <kazu@hxi.com>

* config/obj-ecoff.c: Fix formatting.
	* config/obj-elf.c: Likewise.
	* config/obj-elf.h: Likewise.
	* config/obj-evax.h: Likewise.
	* config/obj-generic.h: Likewise.
	* config/obj-hp300.c: Likewise.
	* config/obj-hp300.h: Likewise.
	* config/obj-ieee.h: Likewise.
	* config/obj-vms.c: Likewise.
	* config/obj-vms.h: Likewise.
This commit is contained in:
Kazu Hirata
2000-09-14 11:48:26 +00:00
parent 06bb75c14b
commit bf514e2154
11 changed files with 84 additions and 141 deletions

View File

@ -1,3 +1,16 @@
2000-09-13 Kazu Hirata <kazu@hxi.com>
* config/obj-ecoff.c: Fix formatting.
* config/obj-elf.c: Likewise.
* config/obj-elf.h: Likewise.
* config/obj-evax.h: Likewise.
* config/obj-generic.h: Likewise.
* config/obj-hp300.c: Likewise.
* config/obj-hp300.h: Likewise.
* config/obj-ieee.h: Likewise.
* config/obj-vms.c: Likewise.
* config/obj-vms.h: Likewise.
2000-09-13 Anders Norlander <anorland@acc.umu.se>
* config/tc-mips.c (md_begin): Recognize 4Kc, 4Km and 4Kp processors.

View File

@ -542,7 +542,6 @@ obj_elf_visibility (visibility)
demand_empty_rest_of_line ();
}
static segT previous_section;
static int previous_subsection;
@ -555,7 +554,6 @@ struct section_stack
static struct section_stack *section_stack;
/* Handle the .section pseudo-op. This code supports two different
syntaxes.

View File

@ -19,7 +19,6 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
/* HP PA-RISC support was contributed by the Center for Software Science
at the University of Utah. */

View File

@ -93,5 +93,3 @@ typedef void *object_headers;
* fill-column: 131
* End:
*/
/* end of obj-evax.h */

View File

@ -1,5 +1,5 @@
/* This file is obj-generic.h
Copyright (C) 1987-1992 Free Software Foundation, Inc.
Copyright (C) 1987-1992, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -14,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
/*
* This file is obj-generic.h and is intended to be a template for
@ -65,7 +66,6 @@ typedef void *object_headers;
/* symbols may or may not be defined */
#define S_IS_DEFINED(s) (0)
#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE (0) /* your magic number */
#define OBJ_EMIT_LINENO(a,b,c) /* must be *something*. This no-op's it out. */
@ -76,5 +76,3 @@ typedef void *object_headers;
* fill-column: 131
* End:
*/
/* end of obj-generic.h */

View File

@ -1,5 +1,5 @@
/* This file is obj-hp300.h
Copyright (C) 1993 Free Software Foundation, Inc.
Copyright (C) 1993, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -14,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#include "config/obj-aout.c"

View File

@ -1,5 +1,5 @@
/* This file is obj-hp300.h
Copyright (C) 1993 Free Software Foundation, Inc.
Copyright (C) 1993, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -14,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#define __STRUCT_EXEC_OVERRIDE__

View File

@ -1,6 +1,5 @@
/* This file is obj-ieee.h
Copyright (C) 1987-1992 Free Software Foundation, Inc.
Copyright (C) 1987-1992, 2000 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -15,8 +14,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GAS; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
along with GAS; see the file COPYING. If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#define BFD 1
@ -41,10 +41,6 @@ object_headers;
#define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE 1
int lineno_rootP;
#define IEEE_STYLE
/* end of obj-ieee.h */

View File

@ -1,5 +1,6 @@
/* vms.c -- Write out a VAX/VMS object file
Copyright (C) 1987, 88, 92, 94, 95, 97, 1998 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 92, 94, 95, 97, 98, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -102,7 +103,6 @@ struct input_file
static struct input_file *file_root = (struct input_file *) NULL;
/*
* Styles of PSECTS (program sections) that we generate; just shorthand
* to avoid lists of section attributes. Used by VMS_Psect_Spec().
@ -256,7 +256,6 @@ static int total_len; /* used to calculate the total length of variable
section. */
static int gave_compiler_message = 0;
/*
* Global data (Object records limited to 512 bytes by VAX-11 "C" runtime)
*/
@ -447,7 +446,6 @@ const pseudo_typeS obj_pseudo_table[] =
{0, 0, 0},
}; /* obj_pseudo_table */
/* Routine to perform RESOLVE_SYMBOL_REDEFINITION(). */
int
@ -484,7 +482,6 @@ vms_resolve_symbol_redef (sym)
return 0;
}
/* `tc_frob_label' handler for colon(symbols.c), used to examine the
dummy label(s) gcc inserts at the beginning of each file it generates.
gcc 1.x put "gcc_compiled."; gcc 2.x (as of 2.7) puts "gcc2_compiled."
@ -518,14 +515,12 @@ symbolS *symbolP;
return;
}
void
obj_read_begin_hook ()
{
return;
}
void
obj_crawl_symbol_chain (headers)
object_headers *headers;
@ -579,7 +574,6 @@ obj_crawl_symbol_chain (headers)
/****** VMS OBJECT FILE HACKING ROUTINES *******/
/* Create the VMS object file. */
static void
@ -600,7 +594,6 @@ Create_VMS_Object_File ()
Current_Object_Record_Type = -1;
}
/* Flush the object record buffer to the object file. */
static void
@ -640,7 +633,6 @@ Flush_VMS_Object_Record_Buffer ()
Object_Record_Offset = 0;
}
/* Declare a particular type of object file record. */
static void
@ -656,7 +648,6 @@ Set_VMS_Object_File_Record (Type)
Current_Object_Record_Type = Type;
}
/* Close the VMS Object file. */
static void
@ -689,7 +680,6 @@ Close_VMS_Object_File ()
/****** Text Information and Relocation routines ******/
/* Stack Psect base followed by signed, varying-sized offset.
Common to several object records. */
@ -736,7 +726,6 @@ vms_tir_stack_psect (Psect_Index, Offset, Force)
#undef Sta_P
}
/* Store immediate data in current Psect. */
static void
@ -773,7 +762,6 @@ VMS_Store_Immediate_Data (Pointer, Size, Record_Type)
Flush_VMS_Object_Record_Buffer ();
}
/* Make a data reference. */
static void
@ -796,7 +784,6 @@ VMS_Set_Data (Psect_Index, Offset, Record_Type, Force)
Flush_VMS_Object_Record_Buffer ();
}
/* Make a debugger reference to a struct, union or enum. */
static void
@ -817,7 +804,6 @@ VMS_Store_Struct (Struct_Index)
Flush_VMS_Object_Record_Buffer ();
}
/* Make a debugger reference to partially define a struct, union or enum. */
static void
@ -854,7 +840,6 @@ VMS_Set_Struct (Struct_Index)
/****** Traceback Information routines ******/
/* Write the Traceback Module Begin record. */
static void
@ -888,7 +873,6 @@ VMS_TBT_Module_Begin ()
VMS_Store_Immediate_Data (Local, Size, OBJ_S_C_TBT);
}
/* Write the Traceback Module End record. */
static void
@ -903,7 +887,6 @@ VMS_TBT_Module_End ()
VMS_Store_Immediate_Data (Local, 2, OBJ_S_C_TBT);
}
/* Write a Traceback Routine Begin record. */
static void
@ -949,7 +932,6 @@ VMS_TBT_Routine_Begin (symbolP, Psect)
VMS_Store_Immediate_Data (Local, Size, OBJ_S_C_TBT);
}
/* Write a Traceback Routine End record.
We *must* search the symbol table to find the next routine, since the
@ -1006,7 +988,6 @@ VMS_TBT_Routine_End (Max_Size, sp)
VMS_Store_Immediate_Data (Local, 7, OBJ_S_C_TBT);
}
/* Write a Traceback Block Begin record. */
static void
@ -1050,7 +1031,6 @@ VMS_TBT_Block_Begin (symbolP, Psect, Name)
VMS_Store_Immediate_Data (Local, Size, OBJ_S_C_DBG);
}
/* Write a Traceback Block End record. */
static void
@ -1287,7 +1267,6 @@ VMS_TBT_Source_File (Filename, ID_Number)
return 1;
}
/* Traceback information is described in terms of lines from compiler
listing files, not lines from source files. We need to set up the
correlation between listing line numbers and source line numbers.
@ -1347,7 +1326,6 @@ VMS_TBT_Source_Lines (ID_Number, Starting_Line_Number, Number_Of_Lines)
/****** Debugger Information support routines ******/
/* This routine locates a file in the list of files. If an entry does
not exist, one is created. For include files, a new entry is always
created such that inline functions can be properly debugged. */
@ -1394,7 +1372,6 @@ find_file (sp)
return fpnt;
}
/* This routine converts a number string into an integer, and stops when
it sees an invalid character. The return value is the address of the
character just past the last character read. No error is generated. */
@ -1426,7 +1403,6 @@ cvt_integer (str, rtn)
* sections have already been output.
*/
/* This routine fixes the names that are generated by C++, ".this" is a good
example. The period does not work for the debugger, since it looks like
the syntax for a structure element, and thus it gets mightily confused.
@ -1468,7 +1444,6 @@ fix_name (pnt)
return pnt;
}
/* When defining a structure, this routine is called to find the name of
the actual structure. It is assumed that str points to the equal sign
in the definition, and it moves backward until it finds the start of the
@ -1497,7 +1472,6 @@ get_struct_name (str)
return pnt;
}
/* Search symbol list for type number dbx_type.
Return a pointer to struct. */
@ -1519,7 +1493,6 @@ find_symbol (dbx_type)
return find_symbol (spnt->type2);
}
#if 0 /* obsolete */
/* this routine puts info into either Local or Asuffix, depending on the sign
* of size. The reason is that it is easier to build the variable descriptor
@ -1556,7 +1529,6 @@ push (value, size1)
}
#endif
static void
fpush (value, size)
int value, size;
@ -1595,7 +1567,6 @@ rpush (value, size)
}
}
/* This routine generates the array descriptor for a given array. */
static void
@ -1652,7 +1623,6 @@ array_suffix (spnt2)
}
}
/* This routine generates the start of a variable descriptor based upon
a struct/union/enum that has yet to be defined. We define this spot as
a new location, and save four bytes for the address. When the struct is
@ -1675,7 +1645,6 @@ new_forward_ref (dbx_type)
struct_number = -fpnt->struc_numb;
}
/* This routine generates the variable descriptor used to describe non-basic
variables. It calls itself recursively until it gets to the bottom of it
all, and then builds the descriptor backwards. It is easiest to do it
@ -1780,7 +1749,6 @@ gen1 (spnt, array_suffix_len)
return 0;
}
/* This generates a suffix for a variable. If it is not a defined type yet,
then dbx_type contains the type we are expecting so we can generate a
forward reference. This calls gen1 to build most of the descriptor, and
@ -1860,7 +1828,6 @@ generate_suffix (spnt, dbx_type)
Lpnt = 0;
}
/* "novel length" type doesn't work for simple atomic types */
#define USE_BITSTRING_DESCRIPTOR(t) ((t)->advanced == BASIC)
#undef SETUP_BASIC_TYPES
@ -1887,7 +1854,6 @@ bitfield_suffix (spnt, width)
VMS_Store_Struct (spnt->struc_numb); /* output 4 more bytes */
}
/* Formally define a builtin type, so that it can serve as the target of
an indirect reference. It makes bitfield_suffix() easier by avoiding
the need to use a forward reference for the first occurrence of each
@ -1942,7 +1908,6 @@ setup_basic_type (spnt)
return;
}
/* This routine generates a symbol definition for a C symbol for the debugger.
It takes a psect and offset for global symbols; if psect < 0, then this is
a local variable and the offset is relative to FP. In this case it can
@ -1988,7 +1953,6 @@ VMS_DBG_record (spnt, Psect, Offset, Name)
generate_suffix (spnt, 0);
}
/* This routine parses the stabs entries in order to make the definition
for the debugger of local symbols and function parameters. */
@ -2062,7 +2026,6 @@ VMS_local_stab_Parse (sp)
return;
}
/* This routine parses a stabs entry to find the information required
to define a variable. It is used for global and static variables.
Basically we need to know the address of the symbol. With older
@ -2170,7 +2133,6 @@ VMS_stab_parse (sp, expected_type, type1, type2, Text_Psect)
return;
}
/* Simpler interfaces into VMS_stab_parse(). */
static void
@ -2197,7 +2159,6 @@ VMS_STSYM_Parse (sp, Text_Psect)
VMS_stab_parse (sp, 'S', N_DATA, -1, Text_Psect);
}
/* For register symbols, we must figure out what range of addresses
within the psect are valid. We will use the brackets in the stab
directives to give us guidance as to the PC range that this variable
@ -2319,7 +2280,6 @@ VMS_RSYM_Parse (sp, Current_Routine, Text_Psect)
generate_suffix (spnt, 0);
}
/* This function examines a structure definition, checking all of the elements
to make sure that all of them are fully defined. The only thing that we
kick out are arrays of undefined structs, since we do not know how big
@ -2353,7 +2313,6 @@ forward_reference (pnt)
return 0; /* no forward refences found */
}
/* Used to check a single element of a structure on the final pass. */
static int
@ -2372,7 +2331,6 @@ final_forward_reference (spnt)
return 0; /* no forward refences found */
}
/* This routine parses the stabs directives to find any definitions of dbx
type numbers. It makes a note of all of them, creating a structure
element of VMS_DBG_Symbol that describes it. This also generates the
@ -2802,7 +2760,6 @@ VMS_typedef_parse (str)
return 0;
}
/* This is the root routine that parses the stabs entries for definitions.
it calls VMS_typedef_parse, which can in turn call itself. We need to
be careful, since sometimes there are forward references to other symbol
@ -2947,7 +2904,6 @@ VMS_LSYM_Parse ()
}
}
static void
Define_Local_Symbols (s0P, s2P, Current_Routine, Text_Psect)
symbolS *s0P, *s2P;
@ -2987,7 +2943,6 @@ Define_Local_Symbols (s0P, s2P, Current_Routine, Text_Psect)
} /* for */
}
/* This function crawls the symbol chain searching for local symbols that
need to be described to the debugger. When we enter a new scope with
a "{", it creates a new "block", which helps the debugger keep track
@ -3072,7 +3027,6 @@ get_VMS_time_on_unix (Now)
}
#endif /* not VMS */
/* Write the MHD (Module Header) records. */
static void
@ -3179,7 +3133,6 @@ Write_VMS_MHD_Records ()
Flush_VMS_Object_Record_Buffer ();
}
/* Write the EOM (End Of Module) record. */
static void
@ -3417,7 +3370,6 @@ VMS_Case_Hack_Symbol (In, Out)
#define GLOBALSYMBOL_BIT 0x10000
#define GLOBALVALUE_BIT 0x20000
static void
VMS_Modify_Psect_Attributes (Name, Attribute_Pointer)
const char *Name;
@ -3805,7 +3757,6 @@ VMS_Initialized_Data_Size (s0P, End_Of_Data)
return (offsetT) (nearest_val - s0P_val);
}
/* Check symbol names for the Psect hack with a globalvalue, and then
generate globalvalues for those that have it. */
@ -4533,7 +4484,6 @@ struct vms_obj_state {
#define Local_Initd_Data_Size vms_obj_state.local_initd_data_size
#define Data_Segment vms_obj_state.data_segment
#define IS_GXX_VTABLE(symP) (strncmp (S_GET_NAME (symP), "__vt.", 5) == 0)
#define IS_GXX_XTOR(symP) (strncmp (S_GET_NAME (symP), "__GLOBAL_.", 10) == 0)
#define XTOR_SIZE 4
@ -4671,7 +4621,6 @@ synthesize_data_segment (data_siz, text_siz, data_frag_root)
return;
}
/* Perform data segment fixups. */
static void
@ -5105,7 +5054,6 @@ local_symbols_DST (s0P, Current_Routine)
}
}
/* Construct and output the debug symbol table. */
static void
@ -5429,7 +5377,6 @@ vms_write_object_file (text_siz, data_siz, bss_siz, text_frag_root,
if (data_siz > 0)
synthesize_data_segment (data_siz, text_siz, data_frag_root);
/******* Global Symbol Directory *******/
/*
@ -5473,7 +5420,6 @@ vms_write_object_file (text_siz, data_siz, bss_siz, text_frag_root,
vsp->Psect_Index = Data_Psect;
}
if (Ctors_Symbols != 0)
{
char *ps_name = "$ctors";
@ -5524,12 +5470,10 @@ vms_write_object_file (text_siz, data_siz, bss_siz, text_frag_root,
vms_fixup_xtors_section (Dtors_Symbols, Dtors_Psect);
}
/******* Debugger Symbol Table Records *******/
vms_build_DST (text_siz);
/******* Wrap things up *******/
/*
@ -5545,5 +5489,3 @@ vms_write_object_file (text_siz, data_siz, bss_siz, text_frag_root,
*/
Close_VMS_Object_File ();
}
/* end of obj-vms.c */

View File

@ -1,5 +1,5 @@
/* VMS object file format
Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 1999
Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 99, 2000
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@ -191,7 +191,6 @@ typedef struct nlist obj_symbol_type; /* Symbol table entry */
/* Set the n_type expression value */
#define S_SET_TYPE(s,v) ((s)->sy_symbol.n_type = (v))
/* File header macro and type definition */
#define H_GET_TEXT_SIZE(h) ((h)->header.a_text)
@ -547,5 +546,3 @@ extern void vms_write_object_file PARAMS ((unsigned,unsigned,unsigned,
#define DBG_S_C_COMPLEX_ARRAY DST_K_TS_ARRAY
#endif /* WANT_VMS_OBJ_DEFS */
/* end of obj-vms.h */