Commit graph

3826 commits

Author SHA1 Message Date
Nick Clifton
4bda141818 Fix satb bit pattern. 1998-04-01 23:00:03 +00:00
Ian Lance Taylor
91852c944d fix copyright 1998-04-01 19:44:29 +00:00
Nick Clifton
f71d1797c5 Add patch from Dean Deaver (deaver@amt.tay1.dec.com) via Richard Earnshaw
(richard.earnshaw@arm.com) to fix addressing mode 2 using rrx.
Add super interworking support.
1998-04-01 19:17:20 +00:00
Ian Lance Taylor
8f6a0cad4a Wed Apr 1 13:13:20 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* doc/as.texinfo: Use @itemx for a secondary item in a table.
	* doc/c-hppa.texi: Likewise.
1998-04-01 18:14:54 +00:00
Ian Lance Taylor
08eefd3ef1 x 1998-04-01 17:00:11 +00:00
Catherine Moore
cb720e4fb6 Mods to generate RELA style relocations instead
of REL style.
1998-04-01 16:53:51 +00:00
Ian Lance Taylor
b9b299ba24 Final tweaks for dependency building with relative srcdir, and rebuild
dependencies.
1998-03-31 23:58:45 +00:00
Ian Lance Taylor
cfa9f8450c tweak 1998-03-31 23:00:57 +00:00
Ian Lance Taylor
ba91002682 * Makefile.am (DEP_INCLUDES): New variable.
(.dep1): Change to work when srcdir is not an absolute path.
	(.tcdep, .objdep, .dep2): Likewise.
	* Makefile.in: Rebuild.
1998-03-31 22:54:00 +00:00
Ian Lance Taylor
504a476485 * config/tc-i386.h, config/tc-i386.c: Revert March 24
LinearAddress patch.
1998-03-31 02:36:59 +00:00
Ian Lance Taylor
f3aa01e2a4 * configure.in: Set version to 2.9.1.
* configure: Rebuild.
1998-03-30 22:35:51 +00:00
Ian Lance Taylor
8a81fdbbd5 Mon Mar 30 11:22:08 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.h (FWait): Define.
	* config/tc-i386.c (md_assemble): Emit fwait prefix before any
	other prefixes.  Check FWait flag in opcode table to see which
	instructions require an fwait prefix.
1998-03-30 16:24:28 +00:00
Ian Lance Taylor
14ff3d69bc Mon Mar 30 10:12:00 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* stabs.c (get_stab_string_offset): Always create a stab string
	section.
1998-03-30 15:13:33 +00:00
Ian Lance Taylor
c246596af7 Fix gcc -Wall warnings. See ChangeLog for details. 1998-03-29 03:45:46 +00:00
Ian Lance Taylor
19db82d5fc * config/tc-m68k.c (m68k_ip): Check legal addressing modes for
mcf5200 just as we do for m68000.
	(m68k_init_after_args): Likewise.
	(md_estimate_size_before_relax): Likewise.
1998-03-27 17:48:28 +00:00
Ian Lance Taylor
227b6b55fa Thu Mar 26 23:07:18 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (md_assemble): Swap template arguments to
	CONSISTENT_REGISTER_MATCH macro in reverse direction test.
	This macro is currently symmetric, so passing them the wrong
	way didn't cause any problem, but may if the macro is changed
	in the future.
	After copying template to i.tm, use i.tm. rather than t-> to
	access fields, and make t a const*
	Move i.tm.operand_types[] swap to immediately after the copy.
1998-03-27 04:10:05 +00:00
Doug Evans
5c4442531f * config/tc-dvp.c (s_endunpack): Round up to word boundary after
we've computed the data length.
1998-03-26 21:34:03 +00:00
Doug Evans
d747041128 changelog entry for yesterday's tc-dvp.[ch] changes 1998-03-26 17:59:21 +00:00
Doug Evans
8b901ef830 * config/tc-dvp.h (md_estimate_size_before_relax): Delete.
(md_convert_frag): Delete.
	(TC_FIX_TYPE): New fields wl,cl,user_value;
	* config/tc-dvp.c (insert_mpg_marker): New argument ignore.
	All callers updated.
	(insert_unpack_marker): New function.
	(insert_file): New argument insert_marker_arg.  All callers updated.
	(gif_user_value): New static local.
	(vif_data_start,vif_data_end): New static locals.
	(mpgloc_sym,unpackloc_sym): New static locals.
	(cur_varlen_frag,cur_varlen_insn,cur_varlen_value): Delete.
	(cur_opcode,cur_operand): New static locals.
	(endmpg_caller): New enum.
	(md_pseudo_table): Pass ENDMPG_USER to s_endmpg.
	(md_begin): Initialize mpgloc_sym, unpackloc_sym.
	(dvp_fixup): New members user_value,wl,cl;
	(assemble_vif): Rewrite.
	(assemble_gif): Tweak name of data start label.
	(assemble_one_insn): Allow special parser to punt and call the
	normal expression parser.  Set cur_opcode,cur_operand for md_operand.
	(md_operand): Handle '*' value for mpgloc,unpackloc.
	(md_estimate_size_before_relax): New function.
	(dvp_relax_frag,md_convert_frag): New functions.
	(md_pcrel_from_section): Handle end data label for variable length
	vif insns.
	(md_apply_fix3): Handle count field for variable length vif insns.
	Handle address field for mpg,unpack.
	(eval_expr): Initialize user_value,wl,cl fields of the fixup.
	(cur_vif_insn_length): Delete.
	(vif_length_value): New function.
	(install_vif_length): Don't perform logical->physical conversion here.
	(s_enddirect,s_endmpg,s_endunpack): Rewrite.
1998-03-25 22:31:13 +00:00
Doug Evans
5b8fd65cf9 * gas/dvp/vif-1.d: Update. 1998-03-25 22:30:01 +00:00
Doug Evans
e5d62150f3 * expr.h (expr_build_uconstant): Add prototype.
(expr_build_unary,expr_build_binary): Add prototypes.
	* expr.c (expr_build_uconstant): New function.
	(expr_build_unary,expr_build_binary): New functions.
1998-03-25 22:03:19 +00:00
Ian Lance Taylor
36abac7fd3 Wed Mar 25 13:10:42 1998 Bruno Haible <bruno@linuix.mathematik.uni-karlsruhe.de>
* gasp.c (IS*): Cast argument to unsigned char, not unsigned int.
        * macro.c (macro_expand_body): Increase buffer size.
        * messages.c (as_warn): Likewise.
	(as_warn_where, as_bad, as_bad_where): Likewise.
1998-03-25 18:12:52 +00:00
Ian Lance Taylor
fb8a5cecae Based on patch from H.J. Lu <hjl@gnu.org>:
* Makefile.am (DISTSTUFF): New variable.
	(diststuff): New target.
	* Makefile.in: Rebuild.
1998-03-25 18:00:09 +00:00
Jeff Law
818c1ddd6e * gas/mips/vu0.s: Add tests for "bc2f", "bc2fl", "bc2t", "bc2tl",
"cfc.i", "cfc.ni", "ctc.i", and "ctc.ni".
        * gas/mips/vu0.d: Corresponding changes.
1998-03-25 01:17:32 +00:00
Nick Clifton
c671714870 Fix PR15434 by emitting a nop if a section ends with a 16 bit instruction. 1998-03-25 00:54:54 +00:00
Ian Lance Taylor
75777e9b0e * config/obj-coff.c (obj_coff_bss): Compile unconditionally. Call
s_lcomm rather than obj_coff_lcomm.
	(obj_pseudo_table): Compile .bss pseudo-op unconditionally.
1998-03-25 00:48:51 +00:00
Ian Lance Taylor
dddc8a823d Tue Mar 24 18:30:58 1998 H.J. Lu <hjl@gnu.org>
* config/tc-i386.h (LinearAddress): Define.
	* config/tc-i386.c (md_assemble): If LinearAddress is set for the
	instruction, don't use a default segment.
1998-03-24 23:34:45 +00:00
Ian Lance Taylor
1cc7b6b26c Mon Mar 23 18:53:40 1998 Joel Sherrill <joel@OARcorp.com>
* configure.in: (sh*-*-rtems*): Switched from ELF to COFF.
	* configure: Rebuild.
1998-03-23 23:54:49 +00:00
Doug Evans
7a22fb9fc3 * gas/dvp/mpg-1.[sd]: New files.
* gas/dvp/mpg-1vu.s: New file.
	* gas/dvp/dvp.exp: Run new test mpg-1.s.
1998-03-23 21:31:08 +00:00
Doug Evans
e7201c9e36 * config/tc-dvp.c (insert_mpg_marker): Update mpgloc. 1998-03-23 21:19:04 +00:00
Nick Clifton
89e759089c Fix SATH bit pattern 1998-03-23 19:35:49 +00:00
Frank Ch. Eigler
6d2c139e5a * Backing out non-dvp changes from 1998-03-20; ".section text" is not
understood to be the same as ".text" on all ports.  The DVP assembler
  will resume failing these two tests.
1998-03-23 16:04:22 +00:00
Jeff Law
04f385a916 * config/tc-mips.c (validate_mips_insn): Handle r5900 operands. 1998-03-23 07:46:11 +00:00
Jeff Law
0bc0e337fc * config/tc-mips.c (append_insn): Handle BFD_RELOC_MIPS16_S3.
(mips_ip): Handle 'O' operand.
        (md_apply_fix): Handle BFD_RELOC_MIPS16_S3.
1998-03-22 20:17:34 +00:00
Frank Ch. Eigler
6cfaad4d88 * Updated DVP test case to match new alignment code that was checked in two
nights ago.  Patched other two test cases to explicitly specify the ".text"
  segment for tests since the DVP assembler defaults to ".vutext".
1998-03-21 00:29:55 +00:00
Ian Lance Taylor
fc6f7f6cb7 * aclocal.m4, configure: Rebuild with libtool 1.2. 1998-03-21 00:16:42 +00:00
Jeff Law
981ce1861f * config/tc-mips.c: Change '%' to '#' in r5900 code to avoid conflict
with vr5400 support.
1998-03-20 16:04:15 +00:00
Nick Clifton
15752c5ba1 Fix for PR15358 (out of range PC relative branches not being caught)
submitted by Jonathan Walton, c/o Tony Thompson at ARM.
1998-03-20 00:09:24 +00:00
Jeff Law
059a638882 * config/tc-mips.c (mips_ip): Handle opcodes which have the form
"name.completer" where only the name is actually in the opcode
        table.  Allow various operands for base register in load/store
        instructions.  Handle various new argument characters for the
        cop2/vu0 co-processor.
1998-03-19 21:28:24 +00:00
Jeff Law
b44cac60e4 * gas/mips/vu0.s, gas/mips/vu0.d: New testfiles.
* gas/mips/mips.exp: Run vu0 tests.
1998-03-19 21:16:39 +00:00
Doug Evans
dd1e151aa9 * gas/dvp/vif-1.[sd]: stcycle -> stcycl. 1998-03-19 18:51:19 +00:00
Frank Ch. Eigler
4ebb52f117 * Added forced 16-byte alignment to a sky-only (tc-dvp) assembler
pseudo-op: `.dmadata'.
1998-03-18 19:02:00 +00:00
Nick Clifton
22d3fbd6a2 Add thumb-pe target. 1998-03-18 17:31:54 +00:00
Doug Evans
8903601144 * config/tc-dvp.c (s_enddmadata): Always fill dma data out to 16
byte boundary.
1998-03-17 22:19:12 +00:00
Doug Evans
3b4389e23e * config/tc-dvp.h (TC_START_LABEL): Define.
* config/tc-dvp.c (force_mach_label): New function.
	(md_begin,create_colon_label,s_dmadata): Use it.
1998-03-17 22:10:10 +00:00
Doug Evans
1de230de3e * gas/dvp/dma-[12].[sd]: New testcases.
* gas/dvp/dvp.exp: Run them.
1998-03-17 22:04:22 +00:00
Ken Raeburn
9636f59b6a * itbl-lex.l (yywrap): Don't define if already defined as a macro. 1998-03-17 22:01:10 +00:00
Doug Evans
7f28a81d93 * config/tc-dvp.c (md_begin): Turn dma/vif packing on by default.
(assemble_dma): Only output 8 bytes for actual dma insn if dma/vif
	packing is enabled.  Emit VIF cpu marker after dma insn.
1998-03-17 18:51:57 +00:00
Doug Evans
fa3671a34f * config/tc-dvp.c (md_pseudo_table): Make .quad 16 bytes. 1998-03-16 18:22:18 +00:00
Tom Tromey
008a80d207 Merged recent change from rembrandt branch
* depend.c (quote_string_for_make): New function.
	(wrap_output): Use it.
1998-03-14 00:27:43 +00:00
Doug Evans
6d0a565ce2 * config/tc-dvp.h (TC_FIX_TYPE,TC_INIT_FIX_DATA): Define.
* config/tc-dvp.c (compute_nloop,check_nloop): New functions.
	(gif_insn_frag_loc): New static global.
	(assemble_gif): Record frag and location frag of insn.
	(md_apply_fix3): Validate user specified nloop if we couldn't do
	it earlier.
	(s_endgif): Queue fixup to install nloop if we can't compute it here.
1998-03-13 00:17:35 +00:00
Doug Evans
ba4be194df (insert_mpg_marker): New function.
(insert_file): New args insert_marker, size.  All callers updated.
	(assemble_vif): Rewrite varlen insn handling.
	(assemble_vu): Call insert_mpg_marker when 256th insn reached.
	(s_enddirect,s_endunpack): Rename arg to internal_p.
1998-03-07 03:22:18 +00:00
Doug Evans
65309b9834 (install_vif_length): Second pass at unpack len calcs.
(s_endunpack): Round data up to word boundary.
1998-03-07 01:43:32 +00:00
Joern Rennecke
5f1a734712 Remove SH4 sanitation. 1998-03-07 00:31:19 +00:00
Gavin Romig-Koch
e599ab169e Scrap the un-needed vr4111 stuff. 1998-03-06 21:22:59 +00:00
Doug Evans
6addb8d9fe * gas/dvp/vif-2.[sd]: New testcases. 1998-03-06 20:54:22 +00:00
Doug Evans
d030671bfc * config/tc-dvp.c (s_endgif): Fix nloop calc and test. Warn if
insufficient data present.  Fix insertion of computed nloop value.
1998-03-06 19:40:53 +00:00
Doug Evans
e1888c9576 * gas/dvp/upper-2.d (loi): Fix expected output.
* gas/dvp/vif-1.[sd]: Add more tests.
	* gas/dvp/gif{packed,reglist,image}-1.[sd]: New testcases.
	* gas/dvp/dvp.exp: Run them.  Pass -I${srcdir}/${subdir} to gas.
1998-03-06 19:27:21 +00:00
Gavin Romig-Koch
2d035a507f * config/tc-mips.c : Added vr4320 similar to vr4300. 1998-03-03 16:45:13 +00:00
Gavin Romig-Koch
c594deb253 * gas/mips/mips.exp (ilocks) : Added mips64vr4320*-*-*. 1998-03-03 16:12:56 +00:00
Doug Evans
69d2f4a744 * gas/m32r/allinsn.[sd] (ldi8a,ldi16a): Delete.
(ldi16): Improve test.
	(nop): Fix test.
1998-03-02 21:31:45 +00:00
Richard Henderson
626d6b2e55 * config/tc-alpha.c (md_shortopts, md_longopts, md_parse_option):
Recognize -GN and -relax.
        (md_begin): Initialize gp size from -G switch.
        (alpha_force_relocation): Always force if -relax.
        (alpha_align): Take a new argument that will specify when to
        emit an R_ALPHA_ALIGN relocation (though we don't do that now).
        Change all callers.  Emit nop alignment padding as nop+unop pair.
1998-03-01 01:34:22 +00:00
Richard Henderson
c35d42c21a * config/obj-elf.c [TC_ALPHA]: Include <elf/alpha.h>.
* config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): New.
1998-03-01 01:08:03 +00:00
Michael Meissner
6c116dfc4b Delayed jsr instructions do not require padding to next long word boundary 1998-02-27 19:15:38 +00:00
Doug Evans
1fb06680cf * config/tc-dvp.c (assemble_vif): Insert cpu type marker before
inserted binary files.
1998-02-27 18:10:03 +00:00
Doug Evans
8ca85ce00a * config/tc-m32r.c (optimize): New static local.
(md_shortopts): Add -O.
	(md_parse_option): Recognize it.
	(md_show_usage): Document it.
	(md_assemble): Don't try to combine insns in parallel if !optimize.
1998-02-25 19:54:59 +00:00
Nick Clifton
39149be224 Fix bug detected by Michael snyder. 1998-02-25 02:05:09 +00:00
Doug Evans
b439fb8117 (s_endgif): Update. NLOOP is in quadwords for IMAGE mode now. 1998-02-25 01:05:10 +00:00
Doug Evans
9152bebae6 (UNIQUE_LABEL_PREFIX): New macro.
(unique_label): Use it.
	(assemble_gif): Emit start label before mach label.
	(s_endgif): Update.
1998-02-24 22:08:40 +00:00
Doug Evans
ef9448db9a (s_endgif): Change length mismatched errors to warnings. 1998-02-24 21:39:58 +00:00
Doug Evans
b6d331b9cd (create_colon_label): New argument `sto'. All callers updated.
(record_mach): New argument `force_next_p'.  All callers updated.
	(cpu_sto): New function.
1998-02-24 20:40:41 +00:00
Doug Evans
69312dac86 * config/tc-dvp.h (tc_frob_label): Define.
* config/tc-dvp.c (dvp_frob_label): New function.
1998-02-24 19:04:22 +00:00
Doug Evans
e9cb12e459 * config/tc-dvp.c (assemble_dma): Do alignment before parsing insn.
(setup_dma_autocount): Renamed from setup_autocount.  New argument
	inline_p.  All callers changed.  Fix word address of count.
	(parse_dma_addr_autocount): Fix word address of address.
1998-02-24 00:00:18 +00:00
James Lemke
c74ca124fe Added sanitization for my latest changelog entry. 1998-02-23 23:50:39 +00:00
James Lemke
96f5b6b2a5 Instead of changing the names of .bss etc, add .vubss etc via
the macro ELF_TC_SPECIAL_SECTIONS.  As per Ian's suggestion.
1998-02-23 22:27:12 +00:00
Doug Evans
a15a45e51f * cgen.c: #include symcat.h.
* config/tc-m32r.c: Likewise.
1998-02-23 19:30:18 +00:00
Jeff Law
0504414dc9 * gas/mips/vr5400.s: Use absolute expression for performance
register number.
        * gas/mips/vr5400.d: Corresponding changes.

        * gas/mips/r5900.s: Use absolute expression for performance
        register number.
        * gas/mips/r5900.d: Corresponding changes.
1998-02-23 17:35:44 +00:00
Jeff Law
59ef7c27fb * gas/mips/vr5400.s: Use absolute expression for performance
register number.

        * gas/mips/r5900.s: Use absolute expression for performance
        register number.
1998-02-23 17:29:31 +00:00
Jeff Law
65d2c7d3de * config/tc-mips.c (mips_ip, case 'P'): Make 'P' arguments be
absolute expressions instead of '$' prefixed register names.
1998-02-23 17:26:25 +00:00
Richard Henderson
56c99b3ea7 * read.c (s_set): Record file and line info for symbols when -as.
(pseudo_set): Don't overwrite that dummy fragment.

PR 14986
1998-02-22 06:36:20 +00:00
Doug Evans
83920d292b (vu_count): New static local.
(assemble_vif): Temporary hack to properly align mpg/direct data.
	(assemble_vu): Insert mpg every 256 insns.
1998-02-21 07:44:25 +00:00
Doug Evans
ee753b4b6b tc-dvp.c (cur_mach): New static local.
(record_mach): New function.
	(md_begin): Initialize `cur_mach'.
	(assemble_*): Record current mach type.
1998-02-21 06:28:46 +00:00
Doug Evans
57d0c8302d (cur_mach): New static local.
(record_mach): New function.
	(md_begin): Initialize `cur_mach'.
	(assemble_*): Record current mach type.
1998-02-21 06:28:18 +00:00
Doug Evans
498fcb9cdb (asm_state_stack): Maintain stack of parsing states.
({push,pop,set}_asm_state): New functions.
	(CUR_ASM_STATE): Renamed from cur_asm_state, all uses updated.
1998-02-21 03:26:47 +00:00
Doug Evans
8151801a09 (asm_state): New state ASM_GIF.
(gif_{insn_type,data_name,insn_frag}): New static locals.
	(md_assemble): Watch for .endgif if in ASM_GIF state.
	(assemble_gif): Complete.
	(s_endgif): Complete.
1998-02-21 02:12:15 +00:00
Doug Evans
d3c6610c00 * confirg/tc-dvp.c (md_assemble): Handle ASM_DIRECT state.
(dvp_parse_done): Comment out contents.
	(s_enddirect,s_endmpg,s_endunpack): Call demand_empty_rest_of_line.
	(s_state): Handle .vu in included file.
1998-02-20 20:48:39 +00:00
Ian Lance Taylor
c634d13e18 * config/tc-ppc.c (md_pseudo_table): Add "section".
(ppc_named_section): New static function.
1998-02-20 20:04:09 +00:00
Jeff Law
47558b4c64 * gas/mips/r5900.s, gas/mips/r5900.d: Update for "mula.s" change. 1998-02-20 08:27:32 +00:00
Richard Henderson
9db4b37c3f * tc-ppc.c (ppc_biei): Cache the last symbol we inserted
so we don't have to scan the entire list.
1998-02-20 06:27:12 +00:00
Fred Fish
a1bbc57c69 Fixup my email addresses to be at cygnus.com 1998-02-20 05:52:58 +00:00
Fred Fish
ccc12f73ce * config/tc-d30v.c (parallel_ok): For the explicitly parallel
case, allow the parallel instructions to modify the same flag
 	bits.
PR 14883
1998-02-20 05:47:40 +00:00
Richard Henderson
ecc9627d6f * listing.c (list_symbol_table): Categorize symbols by
undefined_section rather than sy_frag->line == NULL.

PR 14986
1998-02-20 00:16:51 +00:00
Doug Evans
915729414d * config/tc-dvp.c (LOCAL_LABEL_PREFIX,END_LABEL_PREFIX): New macros.
(inline_dmadata): Renamed from s_dmadata_implied.
	(assemble_one_insn): Rewrite dma operand processing.
	(md_apply_fix3): Handle DVP_OPERAND_DMA_NEXT.
	(unique_name,setup_autocount): New functions.
1998-02-19 22:51:08 +00:00
Doug Evans
1ece1d561b * config/tc-dvp.c: Include stdarg.h/varargs.h.
(md_pseudo_table): Add .word.
	(assemble_dma): Set alignment to 16 bytes.  Enable code that records
	fixups.
	(assemble_one_insn): Handle DVP_OPERAND_DMA_{ADDR,AUTOCOUNT}.
	(md_apply_fix3): Handle DVP_OPERAND_DMA_ADDR.
	(parse_dma_addr_autocount): Renamed from parse_dma_ptr_autocount.
	Rewrite.
	(eval_expr): New function.
	(create_label,create_colon_label): New function.
	(s_enddmadata): Rewrite.
1998-02-19 10:24:15 +00:00
Richard Henderson
9c0e2b9ee4 * Makefile.am (install-exec-local): Install properly when ln
fails or tooldir == prefix.
1998-02-19 07:44:04 +00:00
Nick Clifton
65850016ba Special case handling of updates to the condition bit to allow for the fact
that it is shadowed by several registers.
1998-02-19 02:13:27 +00:00
Doug Evans
1028c33feb * tc-dvp.c: Allow FAKE arguments to have a parser handler. 1998-02-19 00:40:15 +00:00
Doug Evans
a48a6f2301 Allow FAKE arguments to have a parser handler. 1998-02-19 00:39:38 +00:00
Doug Evans
18daef646e fix thinko in last patch 1998-02-18 23:57:47 +00:00
Doug Evans
19f12fb41c * config/tc-dvp.c (parse_float): New function.
(assemble_vu): Handle loi insns.
	(assemble_one_insn): Simplify suffix parsing.
	Handle DVP_OPERAND_FLOAT.
1998-02-18 23:56:15 +00:00