Commit graph

1890 commits

Author SHA1 Message Date
Ken Raeburn
51ba1ae69b Fix for PR 6732.
* config/tc-sh.c (md_convert_frag): Instead of aborting on large displacements,
print an error message.  Don't invoke the code that followed the abort call
until it's been verified.
1995-04-13 23:36:33 +00:00
Ken Raeburn
bcee935e6b * config/tc-m68k.c (md_show_usage): Add 68060 to list. Split cpu list into
three lines.
1995-04-13 22:21:11 +00:00
Stan Shebs
0fb26eac12 Always keep MPW support 1995-04-12 19:29:34 +00:00
Stan Shebs
b55496866d Merge MPW ChangeLog with generic ChangeLog 1995-04-12 19:27:42 +00:00
David Edelsohn
fa7a56f8dc * config/tc-arc.c (delay_slot_type): New function.
(md_assemble): Use hashed list of insns.
	Print warning if 8 byte insn appears in delay slot.
	(md_operand): Handle %st(sym1-sym2).
	(get_arc_exp_reloc_type): Likewise.
	(md_apply_fix, case BFD_RELOC_ARC_B26): Now using implicit addends
	so must store them here.
1995-04-12 14:41:21 +00:00
David Edelsohn
5d57a66b5a ARC stuff. 1995-04-12 14:40:14 +00:00
Ken Raeburn
98df091243 * configure.in: Require at least autoconf 2.3, because earlier versions lose on
some AIX versions.
* configure: Regenerated.

* configure.in: Add m68k-*-elf.
* config/tc-m68k.c (comment_chars) [OBJ_ELF]: Include '#'.
(md_pseudo_table) [OBJ_ELF]: Ignore "swbeg".
(md_begin): Set alt_notend_table['&'], so svr4-style immediate operands are
accepted.
(md_apply_fix): Argument VALP should point to valueT.
(md_convert_frag): Argument SEC should be type segT.
(md_shortopts) [OBJ_ELF]: Accept 'Q' with an argument.
(md_parse_option): Ignore it.
(md_convert_frag_1): Add in frag address for the symbol in the displacement
calculation.
* config/tc-m68k.h (TARGET_FORMAT) [OBJ_ELF]: Use "elf32-m68k".
(TARGET_ARCH): Define.
(REGISTER_PREFIX_OPTIONAL) [OBJ_ELF]: Default to 0.
(LOCAL_LABEL, FAKE_LABEL_NAME, REGISTER_PREFIX_OPTIONAL): Handle these the same
way for OBJ_ELF as for M68KCOFF.
1995-04-11 23:51:52 +00:00
Ken Raeburn
7b1f56d41c * as.h (struct relax_type): Add forward declaration for type. 1995-04-11 22:55:29 +00:00
Ken Raeburn
faf2dc2714 note doc changes 1995-04-11 06:34:31 +00:00
Ken Raeburn
7beebeb652 bunch o changes 1995-04-11 06:19:06 +00:00
Ken Raeburn
9b0da28b13 write.c: Complain about .space or .org moving backwards.
Do generic rs_machine_dependent relaxation only if TC_GENERIC_RELAX_TABLE is
defined.  Use its value as the base of the table, so the actual declaration
can be cpu-specific (and const or not as appropriate).  For other cpus where
this isn't done (the majority), delete md_relax_table altogether.

For machines with WORKING_DOT_WORD, delete md_{short,long}_jump_size.
1995-04-11 06:10:34 +00:00
Ken Raeburn
04ef74bb13 (PCINDEX): New macro.
(md_relax_table): No longer const.  Add PCINDEX entries.
(m68k_ip): For AINDX with simple symbol operand, generate a PCINDEX frag if PC
is used, or do normal non-AINDX processing for address register.
(m68k_init_after_args): If cpu is 68000 or 68010, fix md_relax_table to prevent
relaxation of PCINDEX/BYTE mode to SHORT, since they don't support that mode.
(md_convert_frag_1, case PCLEA/LONG): Add 4 to offset, not 2.  Add support for
new PCINDEX modes.
(md_estimate_size_before_relax): Process PCINDEX/SZ_UNDEF mode.
(md_convert_frag_1, case PCLEA/SHORT): Add 2 to offset.
(m68k_ip, case most punctuation/AOFF): If using PC, call add_frag using PCLEA.
1995-04-11 01:31:08 +00:00
Ken Raeburn
d8a1c247ae Fix for PR6697:
(nopic_need_relax): New static function, split out from
md_estimate_size_before_relax.
(md_estimate_size_before_relax): Call it.
(load_address, macro): In NO_PIC branches, if nopic_need_relax returns nonzero,
don't attempt GP optimization.
1995-04-11 01:29:49 +00:00
Ken Raeburn
b79de3a178 Don't explicitly include config.h. Deleted a bunch of "#if 0" code and useless
comments.
(struct m68k_cpu): New type.
(archs, n_archs): New variables, with single list of name/enum mapping and
aliases.
(m68k_ip): Delete the table here.
(m68k_init_after_args): Use the new table here instead of open-coding it.
(md_parse_option, case 'm'): Ditto.
1995-04-11 01:03:07 +00:00
Ken Raeburn
7015284b09 doc changes 1995-04-10 20:11:48 +00:00
Ken Raeburn
ae6cd60f9e * doc/internals.texi: Add loud disclaimer. Refill to 79 columns, specify
fill-column in local-variables section.  Change subheadings to subsections so
they can be cross-referenced.  Describe broken words, frags, frag chains,
generic relaxation, relax table, m68k relaxation, m68k addressing modes, test
suite code.  Add a few words about various file formats.
1995-04-10 20:06:48 +00:00
Ken Raeburn
b3a05d571b * lib/gas-defs.exp (pass_phase): New proc.
(run_dump_test): Note passing or failing of each phase of this test, instead of
failure of phases or passing of complete test.  Ensure test file name is in
reported message.
1995-04-10 19:40:00 +00:00
Ken Raeburn
3af166f1cf Nuke RCS string. Fix comment. 1995-04-10 19:38:56 +00:00
David Edelsohn
02465e5628 Fix patterns. 1995-04-10 08:12:12 +00:00
David Edelsohn
5ceb5916f0 Delete illegal insns. 1995-04-10 08:11:59 +00:00
David Edelsohn
c39cd01b14 (test_template_insn): Delete .s/.d files afterwards.
(main body): Run ld, st tests.
1995-04-10 07:36:06 +00:00
David Edelsohn
d1f32b4e46 * gas/arc/{ld.[sd],st.[sd]}: New files. 1995-04-10 07:34:05 +00:00
David Edelsohn
4bc30d8131 Tests for ld, lr, st, sr insns. 1995-04-10 07:32:57 +00:00
David Edelsohn
d874fb48fa shimm values "are always signed" 1995-04-10 06:54:14 +00:00
David Edelsohn
4028415325 More ARC stuff. 1995-04-09 00:47:26 +00:00
David Edelsohn
c4ec94c9d6 Test extended shifts, mul64/mulu64 insns. 1995-04-09 00:22:54 +00:00
David Edelsohn
3a5e9b6e86 (test_template_insn): Document usage.
New parameter `cpu', callers updated.
(main body): Test host/graphics/audio extensions.
Test ext/sex insns.
1995-04-08 23:43:39 +00:00
David Edelsohn
48fb4d9f90 Tests for various insn3 insns (eg: ext, sex). 1995-04-08 23:25:34 +00:00
David Edelsohn
d4e91451d7 * gas/arc/{arc.exp,math.[sd],flag.[sd],j.[sd]}: New files.
* gas/arc/{branch.[sd],alias.[sd],sshift.[sd]}: New files.
1995-04-08 23:10:39 +00:00
David Edelsohn
04b8d170c1 More tests. 1995-04-08 23:09:56 +00:00
David Edelsohn
32b1930be2 Tests for single bit versions of asr, lsr, ror, rrc. 1995-04-08 23:09:22 +00:00
David Edelsohn
673f0762f6 Testcases for mov, rlc, asl. 1995-04-08 22:31:23 +00:00
David Edelsohn
4f1fc8f9c2 Stay away from duplicate arguments, will collide with aliases (eg: and->mov). 1995-04-08 22:06:24 +00:00
David Edelsohn
e6d7eb499e Testcases for b, bl, and lp insns. 1995-04-08 20:33:35 +00:00
David Edelsohn
02cc32c5c3 Start of ARC testsuite. 1995-04-08 19:58:59 +00:00
David Edelsohn
ac2bed8708 keep arc subdir if keep-arc. 1995-04-08 19:53:24 +00:00
David Edelsohn
003587bd1f * lib/gas-defs.exp (run_dump_test): Handle arguments with paths.
Always resolve testcase status before returning.
	If `slurp_options' fails, return and don't do test.
	(slurp_options): Fix "can't open" error message.
	Return -1 to indicate error.
1995-04-08 19:51:42 +00:00
David Edelsohn
91e3b58270 *** empty log message *** 1995-04-08 19:50:44 +00:00
David Edelsohn
47ba63b2bb ARC stuff. 1995-04-07 03:14:12 +00:00
David Edelsohn
5acf432d3f * config/tc-arc.c (arc_condition_codes): Deleted.
(init_opcode_tables): Delete cpu_type_map, call
	arc_get_opcode_mach instead.
	(arc_common): Delete non-ELF stuff.  Require leading '.' in .data.
	(md_apply_fix): Delete non-ELF stuff.
	Disable special handling of limm values, treat them normally.
	(get_arc_exp_reloc_type): New argument `data_p'.  Callers updated.
	(md_assemble): All limm operands must be output by gas, the opcode
	insertion routines cannot be used (they don't do anything and we're
	using implicit addends now so we need to output something).
	* config/tc-arc.h (FAKE_LABEL_NAME): Define.
1995-04-07 03:13:42 +00:00
Torbjorn Granlund
6d7bcd2f26 Changes for hosting on 64 bit machines. 1995-03-30 01:18:40 +00:00
Ian Lance Taylor
350f083c5f * config/tc-mips.c (md_show_usage): Mention -mips4 and -m4650. 1995-03-21 21:54:25 +00:00
Jeff Law
9f2c5c9751 * gas/hppa/unsorted/common.s: New test.
* gas/hppa/unsorted/unsorted.exp: Run it.
1995-03-21 05:47:14 +00:00
Stan Shebs
f64fd87f2b * mpw-config.in (TDEFINES): Put empty definition into
makefile fragment.
	* mpw-make.in (xmalloc.c.o): Remove.
	(as.new): Depend on Version.r.
	(Version.r): Generate from version info.
1995-03-18 00:50:51 +00:00
Jeff Law
bff1e14da7 * config/tc-hppa.c (pa_comm): Make sure to always reset the frag
and section for common symbols.
1995-03-17 19:42:22 +00:00
Ian Lance Taylor
e5926c4a4c * ecoff.c (ecoff_build_debug): The cur_scope field of a fil_ptr
may be NULL when given strange input.  Don't core dump.
PR 6509.
1995-03-15 19:47:15 +00:00
Ian Lance Taylor
a7f668c02f * config/tc-mips.c (load_register): Don't use addiu for dli of an
unsigned seemingly negative number.  Don't bother shifting a zero
	value.
	(mips_ip): For case 'j', if there are more alternatives, and the
	ISA level is at least 3, don't accept an unsigned seemingly
	negative number.
1995-03-15 02:39:39 +00:00
Ken Raeburn
f6bc42a3c0 * read.c (s_app_line): Fix last patch to deal with a line number of 1. 1995-03-15 00:44:25 +00:00
Michael Meissner
ce9a280583 Warn rather than cause an error if the reloc is not compatible with -mrelocatable. 1995-03-14 22:05:48 +00:00
Ken Raeburn
85a30e5978 Mon Mar 13 17:03:46 1995 Pat Rankin (rankin@eql.caltech.edu)
* config/tc-vax.c (md_assemble):  issue a warning if a constant
	is used as an operand where an immediate value is not allowed.
1995-03-14 02:27:26 +00:00