Ian Lance Taylor
c916764078
* config/tc-mips.c (mips16_ip): Accept floating point registers in
...
the operand of the exit instruction.
1997-02-05 16:12:04 +00:00
Ian Lance Taylor
76801700d7
* symbols.c (resolve_symbol_value): If we leave an equated symbol
...
as O_symbol, copy over the segment.
1997-02-04 19:13:11 +00:00
Ian Lance Taylor
1748b9d8f0
* config/tc-mips.c (md_apply_fix): If we aren't adjusting this
...
fixup to be against the section symbol, adjust the value
accordingly.
1997-02-03 17:56:00 +00:00
Ian Lance Taylor
3569064fb5
* symbols.c (resolve_symbol_value): Don't change X_add_number for
...
an equated symbol.
* write.c (write_relocs): Avoid looping on equated symbols.
Adjust fx_offset by X_add_number for each symbol.
* config/obj-coff.c (do_relocs_for): Avoid looping on equated
symbols.
(fixup_segment): Add a loop to track down equated symbols and
adjust fx_offset appropriately.
1997-02-03 17:38:41 +00:00
Jeff Law
f5d7f6fb53
* config/tc-mn10200.c (md_relax_table): Add entries to allow
...
jmp -> bra relaxing.
(md_convert_frag): Handle jmp->bra relaxing.
(md_assemble): Handle jmp->bra relaxing.
(md_estimate_size_before_relax): Likewise.
1997-01-31 22:23:10 +00:00
Ian Lance Taylor
2b063e6d64
* config/tc-sparc.c (enforce_aligned_data): New static variable.
...
(sparc_cons_align): Don't do anything unless enforce_aligned_data
is set.
(md_longopts): Add "enforce-aligned-data".
(md_show_usage): Mention --enforce-aligned-data.
* doc/c-sparc.texi (Sparc-Aligned-Data): New node; document
enforce-aligned-data.
1997-01-31 20:34:22 +00:00
Ian Lance Taylor
fbd929fd05
* config/tc-ppc.c (md_pseudo_table): If OBJ_XCOFF, add "long",
...
"word", and "short".
(ppc_xcoff_cons): New static function.
1997-01-31 19:57:31 +00:00
Ian Lance Taylor
fb50cd4ef2
Fri Jan 31 13:15:05 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
...
* config/tc-i386.c (i386_align_code): Add comments explaining the
nop instructions.
1997-01-31 18:16:15 +00:00
Ian Lance Taylor
a75abb6f0a
* write.c (relax_segment): Give an error if a .space symbol is
...
common or undefined.
* read.c (read_a_source_file): Don't handle mri_pending_align if
the handler is s_globl or s_ignore.
1997-01-31 15:47:41 +00:00
Ian Lance Taylor
0d7f9025b9
* config/tc-mips.c (mips_fix_adjustable): New function.
...
* config/tc-mips.h (tc_fix_adjustable): Call mips_fix_adjustable.
(mips_fix_adjustable): Declare.
1997-01-30 21:19:36 +00:00
Fred Fish
f1ce6af4fe
* config/tc-d10v.c (find_opcode): Remove unused variable "numops".
...
* config/tc-tic80.c: Many additions to previous placeholder file.
* config/tc-tic80.h: Ditto.
1997-01-30 20:35:02 +00:00
Ian Lance Taylor
0b476c533b
Thu Jan 30 12:28:18 1997 Alan Modra <alan@spri.levels.unisa.edu.au>
...
* config/tc-i386.c (i386_align_code): Improve the nop patterns.
1997-01-30 17:29:28 +00:00
Ian Lance Taylor
a6b200da04
Ideas from Srinivas Addagarla <srinivas@cdotd.ernet.in>:
...
* read.c (read_a_source_file): After doing an mri_pending_align,
adjust the line_label if there is one.
(s_space): Set mri_pending_align if an odd number of bytes were
output.
1997-01-30 17:10:28 +00:00
Martin Hunt
9073144e40
Wed Jan 29 15:31:12 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
...
* tc-d10v.h (md_do_align): Add this hook to call
d10v_cleanup() when a ".align" is detected. Fixes PR11487.
* tc-d10v.c (find_opcode): Correctly calculate
branch displacement when .aligns are present.
1997-01-29 23:36:25 +00:00
Jeff Law
33a4c28dc0
* config/tc-mn10200.c (md_relax_table): Define.
...
(md_convert_frag): Implement.
(md_assemble): Handle relaxable operands/instructions correctly.
(md_estimate_size_before_relax): Implement.
* config/tc-mn10200.h (TC_GENERIC_RELAX_TABLE): Define.
Some simple branch relaxing.
1997-01-29 16:46:31 +00:00
Ian Lance Taylor
39bb58e0ad
* config/tc-mips.c (append_insn): Give an error for jumps to a
...
misaligned address.
1997-01-28 21:14:37 +00:00
Ian Lance Taylor
3b320c48cf
* config/tc-mips.c (md_apply_fix): Make a branch to an odd address
...
an error rather than a warning.
1997-01-28 21:09:52 +00:00
Ian Lance Taylor
31a2c6ffd7
* config/tc-mips.c (md_convert_frag): If the user explicitly
...
requested an extended opcode, pass warn as true to mips16_immed.
1997-01-28 20:37:27 +00:00
Ian Lance Taylor
645cb4dc28
* config/tc-mips.c (mips16_ip): Handle a missing expression like
...
an explicit 0, so that explicitly extended instructions work
correctly.
1997-01-28 20:28:18 +00:00
Ian Lance Taylor
0192b099bd
* ecoff.c (ecoff_build_symbols): Don't generate a local ECOFF
...
symbol for a common symbol.
1997-01-27 22:41:43 +00:00
David Edelsohn
f7ab94418c
Patch presumed to have been checked in awhile ago but wasn't.
...
Mon Nov 25 10:45:14 1996 Doug Evans <dje@seba.cygnus.com>
* write.c: Delete "ifndef md_relax_frag" around is_dnrange.
(relax_segment, case rs_org): Move code inside braces. Move locals
target,after inside too.
(relax_segment, case rs_machine_dependent): Guts moved to ...
(relax_frag): New function.
Call md_prepare_relax_scan if defined.
1997-01-22 18:41:50 +00:00
Ian Lance Taylor
b3a64736a1
* config/tc-mips.c (md_begin): Don't set SEC_ALLOC or SEC_LOAD for
...
the .reginfo or .MIPS.options section if configured for an
embedded target.
1997-01-20 19:27:11 +00:00
J.T. Conklin
0ce48081b2
* config/tc-m68k.c (m68k_ip): Reject pc-relative addresses for the
...
'p' operand specifier.
1997-01-20 19:00:03 +00:00
J.T. Conklin
ffecfc8b60
* config/tc-m68k.c (HAVE_LONG_BRANCH): New macro, returns true for
...
m68k family cpus which support long branch addressing modes.
(m68k_ip, md_convert_frag_1, md_estimate_size_before_relax,
md_create_long_jump): Use it.
1997-01-20 18:47:48 +00:00
Ian Lance Taylor
c36a90ef65
* config/tc-mips.c (md_begin): Don't set interlocks for
...
mips_4650.
PR 11507.
1997-01-20 17:43:43 +00:00
Ian Lance Taylor
ad423373db
* read.c (read_a_source_file): Make sure the symbol ends with
...
whitespace before checking whether the next character is '='.
PR 11461.
1997-01-15 18:52:53 +00:00
Ian Lance Taylor
03b240371f
* config/tc-i386.c (sco_id): Moved from here...
...
* config/obj-elf.c (sco_id): ...to here. Adding the identifier
really is an SCO ELF specific thing, not just a SCO x86 specific
thing.
1997-01-14 20:08:43 +00:00
Michael Meissner
4af93ad0dc
Allow tic80-*-*, not just tic80-*-coff
1997-01-14 03:45:03 +00:00
Ian Lance Taylor
6468dabdec
* read.c (emit_expr): Check for overflow of a negative value
...
correctly.
* write.c (fixup_segment): Likewise.
* config/obj-coff.c (fixup_segment): Likewise.
PR 11411.
1997-01-09 19:13:42 +00:00
Ian Lance Taylor
d703b5a783
* config/tc-m68k.c (struct label_line): Define.
...
(labels, current_label): New static variables.
(md_assemble): Mark current_label as text, and clear it.
(m68k_frob_label): New function.
(m68k_flush_pending_output): New function.
(m68k_frob_symbol): New function.
* config/tc-m68k.h (tc_frob_label): Define.
(md_flush_pending_output): Define.
(tc_frob_symbol): Don't warn, just call m68k_frob_symbol.
(tc_frob_coff_symbol): Likewise.
PR 11417.
1997-01-09 18:18:01 +00:00
Ian Lance Taylor
8ff750011b
* read.c (read_a_source_file): When defining a macro in MRI mode,
...
don't add the symbol to the symbol table.
PR 11423.
1997-01-09 17:10:09 +00:00
Jeff Law
7899862954
* config/tc-mn10300.c (tc_gen_reloc): Handle sym1-sym2 fixups
...
here since fixup_segment doesn't (linkrelax is set).
* config/tc-mn10200.c (tc_gen_reloc): Likewise.
Should fix line # stabs & block scope stabs.
1997-01-07 18:27:20 +00:00
Jeff Law
62b2acbabf
* config/tc-mn10200.c (md_assemble): Tweak fx_offset for pc-relative
...
relocs.
Relocs for the mn10200.
1997-01-06 22:25:05 +00:00
Jeff Law
ac866582d9
* config/tc-hppa.c (struct hppa_fix_struct): Steak fx_r_field's type
...
to avoid warnings with the native HP compiler.
(fix_new_hppa): Similarly for the r_type argument.
(pa_build_unwind_subspace, hppa_elf_mark_end_of_function): Enclose
in an #if OBJ_ELF to keep gcc -Wall quiet.
(md_apply_fix): Always initialize "result".
Minor maintenance.
* config/tc-mn10200.c (md_assemble): Generate relocations.
mn10200 has relocs now!
1997-01-03 23:55:22 +00:00
Ian Lance Taylor
79811f6f41
Fri Jan 3 18:17:23 1997 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
...
* config/tc-m68k.c (s_even): Adjust the alignment of the current
section.
1997-01-03 23:20:21 +00:00
Ian Lance Taylor
3df036e9d2
tipo
1997-01-03 23:15:44 +00:00
Ian Lance Taylor
9f94df3847
* config/obj-coff.c (yank_symbols): If tc_frob_coff_symbol is
...
defined, call it.
* config/tc-m68k.c (tc_frob_symbol): Check whether text label is
aligned to odd boundary.
(tc_frob_coff_symbol): Define.
1997-01-03 22:41:26 +00:00
Ian Lance Taylor
8185fc28bd
revert last patch
1997-01-03 22:27:24 +00:00
Ian Lance Taylor
ba8f9c0955
Fri Jan 3 17:10:33 1997 Richard Henderson <rth@tamu.edu>
...
* config/obj-elf.c (elf_file_symbol): When using ECOFF debugging,
pass on the new file hook.
* config/tc-alpha.c (alpha_fix_adjustable): Not quite the same as
!alpha_force_relocation, as local LITERALs can be adjusted to be
relative to the section.
1997-01-03 22:13:05 +00:00
Ian Lance Taylor
039d5a6040
* doc/as.texinfo (Set): Change parenthesized @xref to @pxref.
1997-01-03 18:02:55 +00:00
Ian Lance Taylor
de9df5fa1d
* config/tc-m68k.h (tc_frob_label): Define to warn about a
...
misaligned text label. Based on patch from Ronald F. Guilmette
<rfg@monkeys.com>.
1997-01-03 17:50:06 +00:00
Ian Lance Taylor
7b0688dff7
* macro.c (macro_expand_body): In MRI mode, just copy a single &.
1997-01-03 17:40:43 +00:00
Ian Lance Taylor
2156d0d747
* config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
...
PCINDEX frag. From Ronald F. Guilmette <rfg@monkeys.com>.
1997-01-03 17:22:34 +00:00
Ian Lance Taylor
a78bc55196
* config/tc-m68k.c (m68k_ip): Accept 'B' as a size for an
...
immediate value.
(md_assemble): If the size is 'B', set fx_signed.
(md_apply_fix_2): Use fx_signed when checking for overflow.
* write.h (struct fix): Add fx_signed field.
* write.c (fix_new_internal): Initialize fx_no_overflow and
fx_signed fields.
(fixup_segment): Use fx_signed when checking for overflow.
* config/obj-coff.c (fixup_segment): Check fx_no_overflow and
fx_signed when checking for overflow.
1997-01-03 17:14:02 +00:00
Ian Lance Taylor
0abdf2800c
* NOTES, NOTES.config: Removed. These are rarely, if ever,
...
updated, and all the useful information is in doc/internals.texi.
1997-01-03 03:13:47 +00:00
Ian Lance Taylor
a986926b11
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
...
* read.c (read_a_source_file): Check for conditional operators
before doing an MRI pending alignment.
* config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
(tc_conditional_pseudop): Define.
* config/tc-m68k.c (m68k_conditional_pseudop): New function.
* doc/internals.texi (CPU backend): Describe
tc_conditional_pseudoop.
1997-01-03 03:07:01 +00:00
Ian Lance Taylor
924160b0d6
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
...
* config/tc-m68k.c (m68k_rel32_from_cmdline): New static
variable.
(md_begin): Check m68k_rel32_from_cmdline before setting
m68k_rel32.
(m68k_mri_mode_change): Likewise.
(md_longopts): Add --disp-size-default-16 and
--disp-size-default-32.
(md_parse_option): Handle new options.
(md_show_usage): Mention new options.
* doc/c-m68k.texi (M68K-Opts): Document new options.
1997-01-03 00:03:28 +00:00
Ian Lance Taylor
b4d51f3dd4
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
...
* config/tc-m68k.c (m68k_index_width_default): New static
variable.
(m68k_ip): Use m68k_index_width_default to set the size of a base
register whose size was not given.
(md_longopts): Add --base-size-default-16 and
--base-size-default-32.
(md_parse_option): Handle new options.
(md_show_usage): Mention new options.
* doc/c-m68k.texi (M68K-Opts): Document new options.
1997-01-02 23:48:20 +00:00
Ian Lance Taylor
103e1158ca
* doc/c-mips.texi: Mention ISA level 4, and the -mips16 option.
1997-01-02 23:07:09 +00:00
Ian Lance Taylor
e16b9537c1
* configure.in: Recognize mips-*-linux* target.
...
* configure: Rebuild.
1997-01-02 21:53:52 +00:00