aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
1993-10-24use lowercase "format" instead of Format/formatDavid D. Zuhn1-0/+8
1993-10-22 * input-scrub.c (physical_input_file, logical_input_file,Ian Lance Taylor2-7/+31
physical_input_line, logical_input_line): Made static. (as_where): Return current file name and line number, don't print them out. * messages.c (as_show_where): New static function. Other functions use it instead of as_where. (as_bad_internal): New static function. (as_bad): Use as_bad_internal. (as_bad_where): New function, like as_bad but taking a file name and line number. * as.h (as_bad_where): Declare. (as_where): Change prototype for new arguments. * write.h (fixS): Added fields fx_file and fx_line. * write.c (fix_new_internal): Save file and line number in fix. (fixup_segment): Use as_bad_where, not as_bad. * input-file.c (f_in, file_name): Made static. * cond.c (struct file_line): Just use file and line fields. (s_else): Use as_where and as_bad_where, not get_file_line and set_file_line. (get_file_line, set_file_line): Removed. * listing.c (listing_newline): Use as_where. * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where. * config/obj-ecoff.c (add_file): Use as_where. * config/obj-elf.c (obj_elf_init_stab_section): Use as_where. * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where. * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
1993-10-21Various arious PA changes from Utah.Ken Raeburn3-5/+117
V9 bugfix. See changelog...
1993-10-21delete some code in "#if 0"Ken Raeburn1-6/+0
1993-10-21 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparcIan Lance Taylor2-54/+51
option, which is used by the SunOS make default .s.o rule.
1993-10-21Set bfd_gas for all sparc targets. Added facility for keeping or rejectingKen Raeburn1-62/+88
configurations still under development; default is to assume production environment, and reject configs still being worked on. Mark Elf configurations (except sparc and i386) as developmental. Deleted cases matching some generic names in favor of more specific names. (E.g., when we get Alpha support, we'll still only support VMS for Vax.)
1993-10-20new test m68k/pic1.s - simple pic code generationKen Raeburn1-0/+5
1993-10-20new test diff1.s - difference of two undefined symbols (should be rejected)Ken Raeburn1-0/+5
1993-10-20* Makefile.in (OBJDUMP_FOR_TARGET): Define similar to AS_FOR_TARGET.Ken Raeburn1-17/+30
(check): Don't pass ASFLAGS variable. (site.exp): Put ASFLAGS, OBJDUMP, OBJDUMPFLAGS into site.exp.
1993-10-20Makefile.in (OBJDUMP_FOR_TARGET): Define similar to AS_FOR_TARGET.Ken Raeburn1-0/+15
(check): Don't pass ASFLAGS variable. (site.exp): Put ASFLAGS, OBJDUMP, OBJDUMPFLAGS into site.exp. From Jeff Law: lib/gas-defs.exp (objdump_start, objdump_finish): New functions so that tests can parse the output of objdump looking for errors in relocation entires, file headers and the like.
1993-10-19 * config/tc-m68k.h (AOUT_MACHTYPE): Define to be external variableIan Lance Taylor3-32/+50
m68k_aout_machtype. * config/tc-m68k.c (omagic): Remove obsolete and unused variable. (m68k_aout_machtype): New variable, if OBJ_AOUT. (md_assemble): Initialize m68k_aout_machtype based on current_architecture, if OBJ_AOUT. (md_parse_option): Remove obsolete reference to omagic.
1993-10-14 * config/tc-mips.c (md_pseudo_table): Ignore .livereg pseudo-op.Ian Lance Taylor2-5/+23
(s_option): Ignore .option O* and .option pic*. (s_ent): Skip whitespace between symbol and optional digit.
1993-10-14 * app.c (do_scrub_next_char): Always accept 'x' and 'X' as escapeIan Lance Taylor1-0/+5
characters in state 6. * read.c (next_char_of_string): Accept \Xh* and \xh* where h* are hexidecimal digits.
1993-10-14 * config/tc-i386.c (md_apply_fix_1): Make cross segment calls workIan Lance Taylor1-0/+6
for ELF by hacking around bizarre bfd_perform_relocation behaviour that I don't dare change.
1993-10-14Thu Oct 14 11:33:25 1993 Michael Meissner (meissner@osf.org)Ian Lance Taylor2-104/+196
* config/tc-i386.c: (md_begin): Do not zero static arrays. Don't call strchr for each character to see if it is a special char, instead add a second loop over special_chars. Set alignment of text, data and bss sections to 4. (pi, te, pt, pe, ps): Add declarations so that DEBUG386 can be used again. (reloc): Don't return 8 and 16 bit non-PC relative relocations on ELF, since the ELF object format does not have these type of relocations. Change the abort into as as_bad and return BFD_RELOC_NONE to silence compiler warnings. (md_assemble): Keep track of the instruction size. Allow white space between the $ and the constant for compatibility with older gases and other assemblers. (i386_operand): Skip spaces between $ and expression. (tc_gen_reloc): Don't allow anything but 32 bit relocations on ELF. Convert abort into an as_bad and assert into as_fatal.
1993-10-13obj-coffbfd change for wellfleet picKen Raeburn1-15/+21
1993-10-13 * config/obj-coffbfd.c (fixup_segment) [DIFF_EXPR_OK]: IfKen Raeburn1-0/+13
sub_symbolP is in the current segment, convert to a PC-relative fixup and discard the symbol. (Copied from write.c.)
1993-10-13 * config/obj-ecoff.c (ecoff_build_symbols): Handle st_End symbolIan Lance Taylor1-0/+3
for st_StaticProc just like st_Proc.
1993-10-13 * write.c (relax_and_size_all_segments): Moved #endif for OBJ_BOUTIan Lance Taylor1-0/+6
so that OBJ_BOUT doesn't forget to adjust all the fragments in the .bss section. Fixes critical PR 3600.
1993-10-12 * config/tc-mips.c: If OBJ_ELF, include elf/mips.h.Ian Lance Taylor2-0/+62
(mips_regmask_frag): New static variable, if OBJ_ELF. (md_begin): If OBJ_ELF, create .reginfo section and set mips_regmask_frag to a frag. (mips_elf_final_processing): New function, if OBJ_ELF. Set mips_regmask_frag to register mask information. * config/tc-mips.h (elf_tc_final_processing): New macro, defined if OBJ_ELF.
1993-10-12messages.c (as_fatal): use myname in printed messageKen Raeburn1-0/+2
1993-10-12more null/empty string fixupsKen Raeburn4-4/+16
1993-10-11 fix for pr 3571Steve Chamberlain1-0/+8
* config/tc-h8300.c (get_specific): Special action if 8 bit address seen. (check_operand): Don't complain if truncating top bits of an 8 bit address. (build_bytes): Allow an immediate and an absolute in the same insn.
1993-10-11 * write.c (write_contents): Don't crash if seginfo is NULL.Ian Lance Taylor3-8/+34
* config/obj-ecoff.c (ecoff_frob_file): Write out register masks by modifying .reginfo section, not by directly modifying BFD backend data.
1993-10-11remove extern time() declDavid D. Zuhn2-1/+4
1993-10-11 * messages.c (as_fatal): Do mention that it's the assembler thatKen Raeburn2-11/+53
got the fatal error.
1993-10-08 * config/tc-mips.c (mips_gprmask, mips_cprmask): New variables toIan Lance Taylor4-201/+215
hold register masks. (md_begin): Initialize them to zero. (append_insn): Update mips_gprmask and mips_cprmask. Also add register variables pinfo and prev_pinfo. * config/tc-mips.h (mips_gprmask, mips_cprmask): Declare. * config/obj-ecoff.c (ecoff_frob_file): If TC_MIPS, set gprmask and cprmask from mips_gprmask and mips_cprmask.
1993-10-08 * config/tc-mips.h: Define TARGET_FORMAT if OBJ_ELF.Ian Lance Taylor3-27/+81
* config/tc-mips.c (GPOPT): Define if OBJ_ECOFF or OBJ_ELF. (various): Change all references to GP references to apply if GPOPT, not if OBJ_ECOFF. (s_change_sec): Rearrange somewhat. If OBJ_ELF, use .rodata instead of .rdata. If OBJ_ELF, set section flags for .rodata and .sdata sections. (s_frame, s_loc, s_mask): Comment out entire functions, rather than just body. They're not used anyhow. * configure.in: Set cpu_type to mips for mips*. Accept mips-*-elfl* and mips-*-elf*.
1993-10-08Thu Oct 7 18:36:29 1993 Michael Meissner (meissner@osf.org)Ian Lance Taylor1-0/+5
* config/obj-elf.c (obj_elf_common): Allow the alignment field to not be specified.
1993-10-06 * config/tc-mips.c (cons_fix_new_mips): New function. TurnIan Lance Taylor3-3/+50
BFD_RELOC_64 into BFD_RELOC_32. * config/tc-mips.h (TC_CONS_FIX_NEW): Define. (cons_fix_new_mips): Declare.
1993-10-06 Changes to let cons handle bignums like general expressions.Ian Lance Taylor6-644/+511
* expr.h (expressionS): New field X_unsigned. * expr.c (operand): Initialize X_unsigned to 1. Set it to 0 for unary minus case. (expr) Fix typo resultP to right if missing operand. Set X_unsigned to 1 when building new expression. * read.c (potable): Make "octa" and "quad" call cons, not big_cons. (cons): Handle bignums. If given an O_constant (small integer) to fill a big space, turn it into a bignum. (parse_bitfield_cons): Set X_unsigned field. (bignum_low, bignum_limit, bignum_high, grow_bignum, big_cons): Removed. * read.h (big_cons): Remove prototype. * symbols.c (resolve_symbol_value): Don't give a warning if a symbol in expr_section can not be resolved. (S_SET_VALUE): Clear X_unsigned. * write.c (write_object_file): If resolve_symbol_value failed on a symbol we are writing out, give a warning. * config/tc-h8500.c (parse_reglist): Set X_unsigned. * config/tc-hppa.c (md_pseudo_table): Change "octa" and "quad" to call pa_cons, not pa_big_cons. (pa_big_cons): Remove. * config/tc-hppa.h (pa_big_cons): Remove declaration. * config/tc-i960.c (md_pseudo_table): Change "quad" to call cons, not big_cons.
1993-10-04 * read.c (big_cons): Handle "0" correctly.Ian Lance Taylor1-0/+6
* config/tc-mips.c (md_begin): Set target_big_endian correctly.
1993-10-04configure.in: Alphabetize list of cpu type alternatives. Enable OS values ofKen Raeburn1-0/+5
"linux*elf*" and "linux*coff*" to select those formats, with linux emulation. Don't bother checking for upper- or mixed-case versions of "ose".
1993-10-04tc-m68k.c changeKen Raeburn1-0/+10
1993-09-29correct a few mistakes found while extending the dissassembler.K. Richard Pixley2-3/+8
1993-09-28Keep te-lynx.hStan Shebs1-0/+1
1993-09-28More Lynx support, plus better stabs-in-coff generation.Stan Shebs4-4/+126
1993-09-28Whitespace/comment cleanup. Use PARAMS in tc-vax.c.Ken Raeburn6-12/+27
Make various routines return null pointer instead of empty string for success indication.
1993-09-27expr.c (expr) [DIFF_EXPR_OK]: Permit subtraction of symbols in different segs.Ken Raeburn1-0/+3
1993-09-27some 68k pic stuffKen Raeburn1-0/+12
1993-09-27define DIFF_EXPR_OKKen Raeburn1-26/+33
1993-09-27(flag_want_pic): New variable, mostly ignored.Ken Raeburn1-0/+19
(md_parse_option) [TE_SUN3]: Set it for "-k". (m68k_ip): Generate proper fixup for mode 7.3.
1993-09-25minor tc-m68k.c changesKen Raeburn1-0/+7
1993-09-25Moved struct m68k_incant and related macros earlier in the file.Ken Raeburn1-278/+286
Make insop and add_exp functions for readability. Whitespace/comment changes.
1993-09-24 * config/tc-m88k.c (get_o6): new function.K. Richard Pixley2-32/+72
(get_bf, get_cmp, get_cnd, get_cr, get_fcr, get_imm16, get_reg, get_vec9, getval, get_pcr, calcop, match_name): make static and prototype. (s_file): remove extraneous forward decl. (md_begin): add const to retval decl. (calcop): cope with instructions without arguments. Handle 'o' type argument, the o6 field of the prot insn. (md_estimate_size_before_relax): return a dummy value.
1993-09-24 * config/m88k-opcode.h (m88k_opcodes): comment change; o6 field isK. Richard Pixley2-4/+37
in bits 10 through 7. flt.[dxs]s requires an r register in the second argument. New instruction lda.x. New instruction muls (alias for mul).
1993-09-24 * config/tc-mips.c (md_begin): Set BFD architecture and machineIan Lance Taylor1-0/+19
based on MIPS ISA level.
1993-09-23Add some "setup_xfail" commands, correct at least for sun4 native.Ken Raeburn2-0/+77
1993-09-23obj-coffbfd relax_align changeKen Raeburn1-0/+4
1993-09-23relax_align is now staticKen Raeburn1-1/+1