old-cross-binutils/gas/config
Ken Raeburn bfbfba45ba Lots of changes for:
- sparc[lite]-coff as well as sparc-lynx
 - producing coff (including debug info) under BFD_ASSEMBLER option
 - cleanup of cpu-specific code in non-cpu-specific files
   (especially write.c)
 - providing common code to avoid duplication in cpu-specific files
   (specifically, md_number_to_chars)
 - stylistic changes & misc cleanup

================

* config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be dependent on
howto fields, not on format flavour.

* struc-symbol.h (struct symbol): New fields sy_obj and sy_tc, defined as types
OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those macros are defined.
* config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
(TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
(sy_tc, sy_obj): Define so that the fields look like they used to, until all
references get changed.

* write.c (fixup_segment): Lots of variables no longer register.  Reordered
some code for easier reading.
* config/obj-coff.c (obj_coff_dim): dim_index no longer register.  Deleted
superfluous return statement.
(obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type, obj_coff_val,
tag_init, tag_insert): Deleted superfluous return statement.
(align, obj_coff_section): Deleted debugging printfs.
* config/tc-i386.c (md_assemble): Discard some register decls.  Use assignment
rather than memcpy to copy template.
(op_hash, reg_hash, prefix_hash): Default C initialization of statics is
sufficient.
* config/tc-sparc.c (print_insn): Array Reloc is now const, and points to
const.

* config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if TE_LYNX; use
coff-sparc otherwise.
[USE_NATIVE_HEADERS]: Delete this code; it isn't used.

* write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined, before processing
a fixup.  Call TC_ADJUST_RELOC_COUNT just before returning.  Remove some
i960-coff-specific code.
(TC_ADJUST_RELOC_COUNT): Default to doing nothing.
* config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
(i960_validate_fix): Declare.
(TC_VALIDATE_FIX): Define.
* config/tc-i960.c (i960_validate_fix): New function.

* write.c (number_to_chars_littleendian): New function.  Write out bytes in
little endian order, doing size and range checking.
(number_to_chars_bigendian): New function, similar.
* write.h: Declare them.
* config/tc-*.c (md_number_to_chars): Use them.
* config/tc-vax.c (md_apply_fix): Ditto.
* config/tc-i386.c (md_apply_fix): Ditto.

* config/obj-coff.c: Rearranged code for handling line number data.
(line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case, since the
usage is different from non-BFD_ASSEMBLER case.
(in_function, clear_function, set_function): New macros, to combine some of the
functionality implemented in differnet ways in BFD_ASSEMBLER and non-... code.
Used in other functions that used to check function_lineoff &c.
(obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER, one for not.
Non-BFD_ASSEMBLER version now has temporary variable to contain char* pointer
pointed to by char** argument.  Always follow CROSS_COMPILE code; easier to
read that way.
(obj_coff_ln): Don't call add_lineno or c_line_new if appline is set.
(obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for ".bf", it's
been done elsewhere.
(coff_frob_symbol): If ilne number data is pending, call add_linesym to flush it.
(coff_frob_file): Don't do that here.
* config/obj-coff.h (coff_frob_file): Declare.
(obj_frob_file): Define, to call it.

* config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
md_estimate_size_before_relax: Define them as macros calling as_fatal.
* config/tc-sparc.c: Don't define them as functions.
1993-12-03 03:10:08 +00:00
..
.Sanitize * config/obj-som.[ch]: New files for SOM support in GAS. 1993-10-30 21:55:00 +00:00
aout_gnu.h
atof-ieee.c Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
atof-ns32k.c Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
atof-tahoe.c Whitespace/comment cleanup. Use PARAMS in tc-vax.c. 1993-09-28 04:47:32 +00:00
atof-vax.c
coff_gnu.h guesses for i860 relocs, from fsf code 1992-12-03 23:49:30 +00:00
cplus-dem.c Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ebmon29k.mt
h8300.mt don't specify comopiler here 1993-02-08 19:17:29 +00:00
h8300hds.mt
h8500.mt * config/{h8500.mt, tc-h8500.c, tc-h8500.h, obj-coffbfd.c, 1993-02-04 20:47:48 +00:00
ho-ansi.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ho-decstatn.h * config/ho-decstatn.h: Define BROKEN_ASSERT if not __GNUC__, 1993-04-08 19:55:44 +00:00
ho-generic.h (free): Returns void if __STDC__. 1993-07-07 16:14:44 +00:00
ho-go32.h include fopen-bin.h 1993-12-01 22:53:14 +00:00
ho-hppabsd.h * config/ho-hppabsd.h: Delete IO* macros, they are defined in 1993-10-30 21:29:29 +00:00
ho-hppaosf.h * config/ho-hppaosf.h: Delete _IO* macros. They are defined in 1993-11-02 23:07:00 +00:00
ho-hpux.h * config/ho-hpux.h: Do not include ho-sysv.h. Instead include 1993-11-02 23:38:41 +00:00
ho-i386.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ho-i386aix.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ho-irix.h Include ho-generic.h. 1993-04-02 18:42:37 +00:00
ho-mipsbsd.h from Ralph Campbell's work 1993-02-08 19:20:27 +00:00
ho-rs6000.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ho-sun3.h
ho-sun4.h
ho-sun386.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
ho-sunos.h remove extern time() decl 1993-10-11 21:12:37 +00:00
ho-sysv.h delete HO_USG and setbuffer macros 1992-12-03 23:45:34 +00:00
ho-vax.h delete M_VAX 1992-12-03 23:48:47 +00:00
ho-vms.h Define EXIT_SUCCESS and EXIT_FAILURE if not already defined. 1993-03-12 02:29:11 +00:00
i386coff.mt Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com) 1992-12-13 00:56:14 +00:00
m68k.mt
m68kcoff.mt don't need LOCAL_LOADLIBES any more, with new configure.in changes 1993-02-24 11:16:21 +00:00
m88k-opcode.h correct a few mistakes found while extending the dissassembler. 1993-09-29 23:18:06 +00:00
m88kcoff.mt Add m88k-coff target Makefile fragment. 1993-07-15 16:35:23 +00:00
mips-big.mt * config/mips-opcode.h: Moved to opcode/mips.h. 1993-07-07 17:23:39 +00:00
mips-lit.mt * config/mips-opcode.h: Moved to opcode/mips.h. 1993-07-07 17:23:39 +00:00
obj-aout.c * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set. 1993-09-13 21:32:07 +00:00
obj-aout.h
obj-bout.c Some more gcc lint, and: 1993-09-14 17:58:35 +00:00
obj-bout.h Some more gcc lint, and: 1993-09-14 17:58:35 +00:00
obj-coff.c * Removed sy_forward and replaced it with an undefined expression 1993-07-14 22:21:25 +00:00
obj-coff.h * Changes to keep a full expression as the value of a symbol, not 1993-07-14 19:35:45 +00:00
obj-coffbfd.c * config/obj-coffbfd.c: Use PARAMS rather than EXFUN. 1993-11-19 21:37:50 +00:00
obj-coffbfd.h More Lynx support, plus better stabs-in-coff generation. 1993-09-28 19:22:08 +00:00
obj-ecoff.c * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext. 1993-11-24 07:42:03 +00:00
obj-elf.c * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext. 1993-11-24 07:42:03 +00:00
obj-elf.h * config/obj-elf.h (S_GET_SIZE): Define. 1993-09-17 22:16:29 +00:00
obj-generic.c Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
obj-generic.h * Changes to keep a full expression as the value of a symbol, not 1993-07-14 19:35:45 +00:00
obj-hp300.c override obj_header_append from obj-aout.c 1993-05-14 10:56:24 +00:00
obj-hp300.h override obj_header_append from obj-aout.c 1993-05-14 10:56:24 +00:00
obj-ieee.c * subsegs.c: Renamed non-BFD_ASSEMBLER subseg_new to subseg_set. 1993-09-13 21:32:07 +00:00
obj-ieee.h Ran "indent", for GNU coding style; some code & comments still need fixup. 1992-11-23 20:42:33 +00:00
obj-som.c * config/obj-som.[ch]: New files for SOM support in GAS. 1993-10-30 21:55:00 +00:00
obj-som.h * config/obj-som.h (obj_frob_file): Define. 1993-11-02 05:37:58 +00:00
obj-vms.c Some more gcc lint, and: 1993-09-14 17:58:35 +00:00
obj-vms.h Some more gcc lint, and: 1993-09-14 17:58:35 +00:00
sh.mt Support for Hitachi SH 1993-04-27 01:32:09 +00:00
sparc.mt
tc-a29k.c Lots of changes for: 1993-12-03 03:10:08 +00:00
tc-a29k.h * read.c (cons): Conditionalize parsing of expression. Move 1993-06-30 18:27:41 +00:00
tc-generic.c
tc-generic.h
tc-h8300.c Fixed typos. 1993-07-22 18:02:01 +00:00
tc-h8300.h
tc-h8500.c Lots of changes for: 1993-12-03 03:10:08 +00:00
tc-h8500.h fix decls 1993-07-02 01:33:33 +00:00
tc-hppa.c Lots of changes for: 1993-12-03 03:10:08 +00:00
tc-hppa.h * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define. 1993-11-28 06:54:22 +00:00
tc-i386.c Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org) 1993-10-14 15:41:52 +00:00
tc-i386.h
tc-i860.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-i860.h
tc-i960.c Changes to let cons handle bignums like general expressions. 1993-10-06 17:31:31 +00:00
tc-i960.h
tc-m68k.c * config/tc-m68k.c (md_apply_fix_2): Error if a short branch uses 1993-10-26 21:58:41 +00:00
tc-m68k.h * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variable 1993-10-19 22:18:15 +00:00
tc-m88k.c Lots of changes for: 1993-12-03 03:10:08 +00:00
tc-m88k.h updated copyrights, declare TC_CONS_RELOC 1993-08-20 23:52:10 +00:00
tc-m68851.h
tc-mips.c * config/tc-mips.c (macro): From wilson@cygnus.com: for M_L_DAB, 1993-12-01 19:26:45 +00:00
tc-mips.h * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables to 1993-10-08 20:01:10 +00:00
tc-ns32k.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-ns32k.h
tc-sh.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-sparc.c * config/tc-sparc.c (sparc_ip): Use strtol to parse membar 1993-10-25 18:08:33 +00:00
tc-sparc.h Define ENV64 for sparc v9. 1993-07-07 16:17:29 +00:00
tc-sparc64.c New files for sparc64 cpu. 1993-06-30 10:30:54 +00:00
tc-sparc64.h New files for sparc64 cpu. 1993-06-30 10:30:54 +00:00
tc-tahoe.c Lots of changes for: 1993-12-03 03:10:08 +00:00
tc-tahoe.h tahoe code from fsf - untested 1992-12-03 23:41:18 +00:00
tc-vax.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-vax.h
tc-z8k.c fix definitions of md_create_long_jump, md_create_short_jump, 1993-07-12 19:42:32 +00:00
tc-z8k.h Support for the Z8k 1992-08-25 22:12:54 +00:00
te-dpx2.h
te-generic.h
te-hp300.h hp300 hpux configuration 1993-05-05 12:41:52 +00:00
te-hppa.h hppa configuration 1993-05-05 12:43:06 +00:00
te-i386aix.h
te-ic960.h mostly whitespace/comment changes 1992-12-03 23:52:26 +00:00
te-lynx.h More Lynx support, plus better stabs-in-coff generation. 1993-09-28 19:22:08 +00:00
te-sco386.h * config/tc-i386.h (DOT_LABEL_PREFIX): Delete. 1993-10-31 02:18:17 +00:00
te-sun3.h
te-sysv32.h
vax-inst.h
z8k.mt * write.c (write_contents): Compute the relocs before writing out 1993-03-15 23:58:22 +00:00