aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
1993-12-11 * config/tc-h8500.c (build_bytes): Get reloc type right for aSteve Chamberlain4-237/+287
%page operation. (md_assemble): Don't modify input_line_pointer. (mdcoff_sizemachdep): New function. * config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro. * config/tc-z8k.c (get_operand): Delete bogus check.
1993-12-11Recognise SH.Steve Chamberlain1-2/+5
1993-12-09output-file.c, write.c changesKen Raeburn1-0/+6
1993-12-09(number_to_chars_*): Delete bogus range checks.Ken Raeburn1-249/+269
1993-12-08 * gas/m68k/disperr.s: New test.Jeff Law3-0/+22
* gas/m68k/all.exp: Run it.
1993-12-08Tue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)Steve Chamberlain1-0/+6
* config/tc-sh.c (md_convert_frag): Truncate disps before calling md_number_to_chars. (md_assemble): Don't modify input_line_pointer.
1993-12-06* config/tc-h8300.c (md_assemble): Don't update input_line_pointer.David Edelsohn1-0/+4
1993-12-06 * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.Jeff Law2-244/+23
Breaks with the HP compilers. * config/tc-hppa.c (struct call_info): Remove fields which were set but never used. Remove all code which sets those fields. (struct subspace_dictionary_chain): Likewise. (struct space_dictionary_chain): Likewise. (pa_desc): Delete useless function. Delete all references. (hppa_tc_make_sections): No need to count the number of symbols for the symbol extension section.
1993-12-06 * config/obj-som.c (obj_som_version): Pass version string toJeff Law3-37/+85
SOM BFD backend. (obj_som_copyright): New function. Much like obj_som_version. * config/tc-hppa.c (obj_copyright): Define as appropriate for SOM and ELF. (pa_copyright): Just a stub now.
1993-12-06 * config/obj-som.c (obj_read_begin_hook): Delete unused function.Jeff Law3-20/+83
* config/obj-som.h (obj_read_begin_hook): Provide dummy definition. (TARGET_SYMBOL_FIELDS): Delete. SOM isn't making use of them.
1993-12-06 * gas/hppa/reloc/roundmode.s: New test.Jeff Law3-0/+34
* gas/hppa/reloc/reloc.exp: Run it. Fix typo in last change.
1993-12-06 * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocationJeff Law2-21/+22
expansion due to rounding mode selectors. Handle R_[RDSN]_MODE relocations for selecting the current rounding mode.
1993-12-06 * config/tc-hppa.c (evaluate_absolute): Support e_rrsel andJeff Law2-8/+22
e_rlsel field selectors.
1993-12-03 Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)Jeff Law1-0/+6
* tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should be either 0 or 2 (no static link or static link required). Always assume no static link.
1993-12-03 * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.Jeff Law2-44/+40
(md_apply_fix_1): Rename to md_apply_fix. Fix argument decls. Fix comments in various places. Always return a value. Avoid dereferencing a NULL fx_addsy. (hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.
1993-12-03Deleted RCS crap, since it frequently seems to wind up being the onlyKen Raeburn1-178/+0
thing "changed", and somehow cvs thinks the file has really been modified.
1993-12-03Lots of changes for:Ken Raeburn7-74/+164
- 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-02 * Makefile (clean): Depend on clean-here.Jeff Law1-0/+4
1993-12-01changes so farKen Raeburn1-0/+21
1993-12-01include fopen-bin.hKen Raeburn1-0/+2
1993-12-01 * config/tc-mips.c (macro): From wilson@cygnus.com: for M_L_DAB,Ian Lance Taylor2-2/+3
set coproc before doing goto ld.
1993-12-01 * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.Jeff Law2-43/+76
(pa_process_exit, pa_procend): Call it for ELF objects.
1993-12-01 * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.dIan Lance Taylor2-1/+18
case. See comment.
1993-11-30 * gas/hppa/more.parse/parse.exp: Test for error on for subspaceJeff Law4-1/+12
directive is an XFAIL for SOM assmeblers. * gas/hppa/reloc/reloc.exp: Remove XFAIL for relocation on cross-subspace call test.
1993-11-30 * write.c (TC_FORCE_RELOCATION): Provide a default definition.Jeff Law3-56/+117
(fixup_segment): Allow the target machine to specify that a relocation must be generated for a particular fixup. Remove #ifndef TC_HPPA hack. * config/tc-hppa.h (TC_FORCE_RELOCATION): Define. * config/tc-hppa.c (md_apply_fix_1): Never change fx_addsy to be NULL. Only fixup_segment is supposed to do that. (hppa_force_relocation): New function.
1993-11-30 * Makefile.in (stabs.o): Added dependencies.Ian Lance Taylor2-0/+8
1993-11-30 * config/obj-ecoff.c (ecoff_frob_file): Don't call bfd_set_symtab.Ian Lance Taylor1-0/+4
1993-11-28 * gas/hppa/more.parse/appbug.s: New test.Jeff Law7-0/+13
* gas/hppa/more.parse/parse.exp: Run it.
1993-11-28 * app.c (do_scrub_next_char): Output a TAB before anyJeff Law1-0/+3
.app* directive.
1993-11-28 * config/tc-hppa.c (fix_new_hppa): Make sure a sub_symbolJeff Law2-52/+10
exists before trying to peek at its name. (pa_space): Do not call pa_align_subseg. See hppa/unsorted/align3.s for testcase. (pa_align_subseg): Delete unused/unwanted function.
1993-11-28 * gas/hppa/unsorted/align3.s: New test.Jeff Law3-0/+26
* gas/hppa/unsorted/unsorted.exp: Run it.
1993-11-28Fix typo in last change.Jeff Law1-1/+1
1993-11-28 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.Jeff Law1-5/+13
1993-11-28 * read.c (read_a_source_file): Fix test for when to stick a colonJeff Law3-374/+43
on the end of a label. Make code conditional on either MRI or LABELS_WITHOUT_COLONS. * app.c (do_scrub_next_char): If a line begins with whitespace, leave the single whitespace character alone. Eat all others. * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define.
1993-11-28 * gas/all/p2425.s: Insert a tab before assembler directives soJeff Law1-0/+11
that the directives are not interpreted as labels. * gas/hppa/basic/weird.s: Sync with GDB version. * gas/hppa/more.parse/labelbug.s: New test. * gas/hppa/more.parse/parse.exp: Run it.
1993-11-28 * gas/hppa/more.parse/labelbug.s: New test.Jeff Law6-0/+44
* gas/hppa/more.parse/parse.exp: Run it.
1993-11-24 * gas/hppa/reloc/fixupbug.s: New test.Jeff Law4-0/+61
* gas/hppa/reloc/reloc.exp: Run it.
1993-11-24 * gas/hppa/reloc/exitbug.s: New test.Jeff Law4-7/+74
* gas/hppa/reloc/reloc.exp: Run it.
1993-11-24 * config/tc-hppa.c (pa_procend): Do not call process_exit.Jeff Law2-9/+8
(exit_processing_complete): Delete unwanted variable and all references.
1993-11-24 * ecoff.c (ecoff_setup_ext): Renamed from ecoff_build_ext.Ian Lance Taylor3-4914/+254
Changed to not actually build the external symbol information, as that is now done by the ECOFF back end. (ecoff_build_debug): Changed accordingly. * ecoff.h (obj_ecoff_set_ext): Declare. obj-format.c function called by ecoff_setup_ext. * config/obj-ecoff.c (ecoff_frob_file): If debug_info count is 0, set corresponding pointer to NULL. Don't set raw_size and raw_syments. (obj_ecoff_set_sym_index): Removed. (obj_ecoff_set_ext): New function. * config/obj-ecoff.h (obj_set_sym_index): Don't define. (obj_ecoff_set_sym_index): Don't declare. * config/obj-elf.c (obj_ecoff_set_ext, elf_get_extr, elf_set_index): New functions used for ECOFF_DEBUGGING. (elf_frob_file): Reworked ECOFF debug generation to use new functions in bfd/ecofflink.c.
1993-11-22 * gas/hppa/reloc/reloc.exp: Minor fixes so that SOM & ELF canJeff Law1-1/+1
share the same test code. * gas/hppa/reloc/relocreduce.s: Likewise.
1993-11-22 * gas/hppa/basic/fmem.s: Add quadword FP store instructions.Jeff Law1-0/+8
* gas/hppa/basic/basic.exp: Test quadword FP store instructions.
1993-11-22Add stabs.c to things-to-keep.Jeff Law1-1/+5
1993-11-19 * config/obj-coffbfd.c: Use PARAMS rather than EXFUN.Ian Lance Taylor2-25/+30
(yank_symbols): Don't call S_SET_EXTERNAL if the storage class is already set. Fixes .def var; .val external_var; .scl 3; .endef. (adjust_stab_section): Make static. Declare return type. Remove unused variables. * config/tc-i386.h: Declare tc_coff_fix2rtype and tc_coff_sizemachdep.
1993-11-19sparc-coff related changesKen Raeburn1-0/+38
1993-11-18Get ECOFF gas to work again after this morning's checkins.Ian Lance Taylor1-1/+1
1993-11-18Various entries.Ian Lance Taylor1-0/+129
1993-11-18 * config/tc-mips.c: Check ECOFF_DEBUGGING rather thanIan Lance Taylor1-635/+1462
OBJ_ECOFF in many cases. (mips_any_noreorder): New variable. (mips_cprestore_offset): Initialize to -1. (mips_frame_reg): New variable. (RELAX_ENCODE, RELAX_OLD, RELAX_NEW, RELAX_RELOC1, RELAX_RELOC2, RELAX_RELOC3, RELAX_WARN): New macros. (md_pseudo_table): Handle "gpword" and "cpadd". (md_begin): Initialize ok to false. If OBJ_ELF, set alignment of text, data and bss sections to 4. Set alignment of .reginfo section to 2. If ECOFF_DEBUGGING, create .mdebug section. (ALIGN_ERR, ALIGN_ERR2): Removed unused and useless alignment check. (append_insn, macro_build, macro_build_lui): Take place argument. Changed all callers. (append_insn): If appending a nop, don't emit one. (macro_build): Changed assertion for 'i', 'j', 'o' case. (gp_reference): Removed. (load_address): New function. (macro): If mips_noreorder is used, set mips_any_noreorder. Extensive changes to handle GP and PIC symbols differently. Build both possible code choices using a variant frag, and make a final decision at the end of assembly when all information is known. Added PIC support for all symbol references. (mips_ip): Don't permit anything but a number after $ for a coprocessor register. Don't use .lit4 or .lit8 sections when generating PIC code. If OBJ_ELF, set alignment of .lit4 or .lit8 section to 4. (md_apply_fix): Accept and ignore GOT16 and GPREL32 relocs. (s_change_sec): Set alignment of ELF .rodata or .sdata section to 4. (s_mipsset): If .set noreorder, set mips_any_noreorder. (s_cpload): Ignore .cpload if not generating PIC code. Warn if .cpload is not in noreorder section. (s_cprestore): Ignore .cprestore if not generating PIC code. (s_gpword, s_cpadd): New functions. (tc_get_register): Added frame argument; if true, set mips_frame_reg to return value. Changed all callers. (md_estimate_size_before_relax): Don't error out, but instead determine how much a frag should grow. (tc_gen_reloc): Return multiple relocs if appropriate, as determined by md_estimate_size_before_relax. (md_convert_frag): New function. (mips_elf_final_processing): Set ELF header flags based on mips_any_noreorder and mips_pic. * config/tc-mips.h (RELOC_EXPANSION_POSSIBLE): Define. (MAX_RELOC_EXPANSION): Define to be 3. (md_relax_frag): Define to be 0. (md_convert_frag): Don't define. (tc_get_register): Changed declaration.
1993-11-17 * configure.in (mips-*-irix5*): New target. Use elf and mips-big.Ian Lance Taylor1-1/+1
1993-11-17 * Makefile.in (REAL_SOURCES): Added ecoff.c.Ian Lance Taylor1-2/+11
(REAL_HEADERS): Added ecoff.h. (OBJS): Added ecoff.o. (ecoff.o): New target.