Commit Graph

4254 Commits

Author SHA1 Message Date
Doug Evans
d734c861b4 * config/tc-mips.c (append_insn): Don't move INSN_SYNC
instructions into delay slot.
Bring over from sky-980617-branch.
1998-12-10 04:19:50 +00:00
Doug Evans
84177a47f5 * config/tc-dvp.h (md_end): Define.
* config/tc-dvp.c (dvp_end): New function.
Bring over from sky-980617-branch.
1998-12-10 01:19:52 +00:00
Jeff Law
e121918a4f * gas/vtable/vtable.exp: Do not run these tests for the dvp assembler. 1998-12-09 21:04:28 +00:00
Jeff Law
3b35597c52 * config/tc-mips.c (gpr_interlocks): The r5900 always has
gpr interlocks.
Fixes minor assembler testsuite failure on the r5900.
1998-12-09 19:33:06 +00:00
Ian Lance Taylor
4533e615d7 Tue Dec 8 19:51:50 1998 Mark Klein <mklein@dis.com>
* configure.in (hppa-*-mpeix*): New target.
	* config/obj-som.h (obj_som_compiler): Declare.
	* config/obj-som.c (compiler_seen): New static variable.
	(obj_som_compiler): New function.
	* config/tc-hppa.c: Update tc_data uses for change to bfd/som.h.
 	(md_pseudo_table): Add "compiler" if OBJ_SOM.
	(pa_type_args): Set hppa_priv_level.
	(pa_compiler): New static function if OBJ_SOM.
	* configure: Rebuild.
1998-12-09 00:55:55 +00:00
Ian Lance Taylor
9f3ab15add * read.c (output_leb128): Don't mark as inline. 1998-12-08 20:01:58 +00:00
Andrew Macleod
a31eb1a195 * config/tc-ppc.c (ppc_vbyte): Prototype and new function for
AIX .vbyte unaligned data support.
  (md_pseudo_table): Add 'vbyte' to list of valid pseudos.
  (ppc_elf_validate_fix): Add eh_frame to list of ELF relocatable
  sections.
1998-12-08 17:05:38 +00:00
Nick Clifton
10b5c3732c Imrpve handling of erroneous input. 1998-12-07 15:54:34 +00:00
Catherine Moore
fc32c96d2b Check for BFD_RELOC_ARM_PCREL_BRANCH in elf32_arm_force_relocation. 1998-12-07 15:54:33 +00:00
Ian Lance Taylor
ae6130f111 * configure.in: Define TARGET_BYTES_{BIG,LITTLE}_ENDIAN after
checking the target type.
	(mips-dec-bsd*): Set endian to little.
	* configure: Rebuild.
1998-12-07 03:41:40 +00:00
Ian Lance Taylor
c8989232c3 COFF weak symbol support, based on patches from Mark Elbrecht
<snowball3@usa.net>:
	* config/obj-coff.h (S_IS_WEAK): Define if not BFD_ASSEMBLER.
	* config/obj-coff.c (obj_coff_weak): New static function.
	(obj_coff_endef) [both versions]: Handle weak symbols.
	(coff_frob_symbol): Likewise.
	(yank_symbols): Likewise.
	(obj_pseudo_table): Add "weak".
1998-12-07 02:46:56 +00:00
Ian Lance Taylor
44be43971b * configure.in (m68k-*-gnu*): New target. From Aymeric Vincent
<aymeric.vincent@emi.u-bordeaux.fr>.
	* aclocal.m4: Rebuild with current tools.
	* configure: Rebuild.
1998-12-06 21:48:34 +00:00
Ian Lance Taylor
bc99705349 * config/tc-alpha.c (emit_ldgp): Give an error message rather than
an assertion failure for a case we can't handle when OBJ_ECOFF.
1998-12-06 20:10:52 +00:00
Ian Lance Taylor
3885a41e32 * expr.c (operator): And with 0xff to avoid problems with signed
char.
1998-12-06 17:52:58 +00:00
Nick Clifton
2f53621405 change BFD_RELOC_FR30_32 to BFD_RELOC_FR30_48 1998-12-03 17:02:49 +00:00
Nick Clifton
36b9061355 Updated to match latest assembler output. 1998-12-03 13:19:21 +00:00
Nick Clifton
38c01dc96e Enable relocs for ldi:20 insn 1998-12-02 15:53:48 +00:00
Gavin Romig-Koch
01b7cec600 missing stuff for vr4xxx 1998-11-30 19:28:22 +00:00
Dave Brolley
12f2784d7f Thu Nov 26 11:23:48 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c (md_pcrel_from_section): Restore previous calculation
	of pcrel point.
1998-11-26 16:25:57 +00:00
Dave Brolley
46530d767a Thu Nov 26 11:23:48 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c (md_pcrel_from_section): Restore previous calculation
	of pcrel point.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
1998-11-26 16:25:34 +00:00
Nick Clifton
ff95478c14 Fix calculation of address for pc rel operations. 1998-11-25 01:22:54 +00:00
Gavin Romig-Koch
f8c41900fc For top level:
* config.sub (mips64vr4xxx,mips64vr4xxxel): New.


For gcc:
	* config.sub (mips64vr4xxx,mips64vr4xxxel): New.
	* configure.in (mips64vr4xxx,mips64vr4xxxel): New.
	* config/mips/t-vr4xxx: New.
	* config/mips/elfb4xxx.h: New.
	* config/mips/elfl4xxx.h: New.
	* configure: Rebuilt.

For gas:
	* config/tc-mips.c (md_begin): Added mip64vr4xxx as a
	possible CPU_TARGET.

For gdb:
	* configure.tgt: Handle mips64*vr4xxx.

For ld:
	* configure.tgt: Handle mips64*vr4xxx.
1998-11-25 01:10:52 +00:00
Nick Clifton
0e92e723c9 Add support for FR30_OPERAND_I32 1998-11-20 19:42:45 +00:00
Nick Clifton
d2e2384b83 Add support for -marm6xxx and -marm7xxx command line switches 1998-11-19 23:03:04 +00:00
Doug Evans
009c4572b6 run sanitize over Makefile.{am,in} for fr30 1998-11-19 21:35:59 +00:00
Doug Evans
4764e0cfc4 * gas/mips/sync.[sd]: New testcase.
* gas/mips/mips.exp: Run it.
pr 18302
1998-11-19 16:06:02 +00:00
Doug Evans
11d06c350c * Makefile.am (DEP): Use $(srcdir)/../mkdep.
(itbl-ops.o): Delete duplicate dependencies.
	Rebuild dependencies.
	Add fr30 dependencies.
	* Makefile.in: Rebuild.
1998-11-19 00:23:24 +00:00
Dave Brolley
a20d433120 Wed Nov 18 11:27:56 1998 Dave Brolley <brolley@cygnus.com>
* gas/fr30/allinsn.s (dmov): Correct hex literals.
1998-11-18 16:29:08 +00:00
Nick Clifton
2ca484a711 Fixed reloc generation to match latest opcoide list from cgen. 1998-11-17 23:28:19 +00:00
Nick Clifton
a88a845a87 Moved bad insns to end of test file and added disassembly of good insns. 1998-11-17 23:26:18 +00:00
Nick Clifton
3b0ae69636 PR17074 - ignore line terminator characters found inside strings. 1998-11-17 21:44:22 +00:00
Nick Clifton
67c72211ac Fix syntax errors 1998-11-17 00:53:19 +00:00
Dave Brolley
4229bee92c Mon Nov 16 19:27:52 1998 Dave Brolley <brolley@cygnus.com>
* gas/fr30/allinsn.s: Fixed more typos.
1998-11-17 00:29:18 +00:00
Nick Clifton
3c0b1a5c8a Fixed typos and added some uppercase vs lowercase testing 1998-11-13 21:17:07 +00:00
Nick Clifton
b91e1ec1e4 Add support for delay slot insns. 1998-11-13 01:15:29 +00:00
Dave Brolley
4ad7b0c376 Thu Nov 12 19:21:24 1998 Dave Brolley <brolley@cygnus.com>
* po/gas.pot: Regenerated.
1998-11-13 00:34:11 +00:00
Nick Clifton
5ed0e368c6 Add code to support FR30 instrucitons which contain a colon in their mnemonic 1998-11-12 18:55:57 +00:00
Doug Evans
93db5513ee sanitize fr30 parts 1998-11-11 23:31:52 +00:00
Nick Clifton
b67f7834e2 Removed superflous code. 1998-11-11 17:59:42 +00:00
Nick Clifton
bb7c5d2a02 New files for testing fr30 assembler 1998-11-10 22:55:51 +00:00
Nick Clifton
a833b07a5d Added fr30 directory to things to loose 1998-11-10 21:34:41 +00:00
Nick Clifton
0012cae090 Added tc-fr30.h to things to loose 1998-11-10 21:32:30 +00:00
Nick Clifton
8f83181c30 Changes so that GAS will build - not work - just build. 1998-11-10 21:14:43 +00:00
Catherine Moore
de2c5b0dae * config/tc-d10v.h (obj_fix_adjustable): Define.
(TC_FORCE_RELOCATION):  Define.
        (d10v_force_relocation):  Declare.
        * config/tc-d10v.c (tc_gen_reloc):  Handle Vtable relocs.
        (md_apply_fix3):  Handle Vtable relocs.
        (d10v_fix_adjustable):  New.
        (d10v_force_relocation):  New.
1998-11-10 20:50:34 +00:00
Nick Clifton
a1bda8d6bc Change default behaviour so that conflicts between register names and usr symbols
are ignored.
1998-11-09 22:26:47 +00:00
Doug Evans
71e6edeab4 redo fr30 sanitization 1998-11-06 00:10:54 +00:00
Doug Evans
f3dc77c243 sanitize fr30 port for now 1998-11-05 23:53:05 +00:00
Dave Brolley
aa6c50c1e9 Wed Nov 4 18:42:00 1998 Dave Brolley <brolley@cygnus.com>
* po/gas.pot: Regenerated.
1998-11-05 21:18:31 +00:00
Dave Brolley
352b0f4d64 Wed Nov 4 18:42:00 1998 Dave Brolley <brolley@cygnus.com>
* configure.in: Add fr30-*-*.
	* config/tc-fr30.c: New file.
	* Makefile.in: Regenerated.
	* config.in: Regenerated.
	* configure: Regenerated.
1998-11-05 21:17:23 +00:00
Dave Brolley
d22910f69f Wed Nov 4 18:42:00 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c: New file.
1998-11-05 21:11:29 +00:00
Doug Evans
29e9c76053 * config/tc-m32r.c (assemble_two_insns): Ensure both insns
are 16 bit insns.
PR 18135.
1998-11-03 05:05:58 +00:00
Doug Evans
e35350e414 * gas/m32r/error.exp: New error testcase driver.
* gas/m32r/wrongsize.s: New testcase.
PR 18135.
1998-11-03 05:03:11 +00:00
Doug Evans
7c678e9e63 * gas/m32r/fslot.[sd]: New testcase.
* gas/m32r/m32r.exp: Run it.
	* gas/m32r/fslotx.[sd]: New testcase.
	* gas/m32r/m32rx.exp: Run it.
	* gas/m32r/m32rx.[sd]: Update.
PR 18134.
1998-11-03 04:25:28 +00:00
Ian Lance Taylor
668f52e048 Mon Nov 2 20:10:18 1998 Martin von Loewis <loewis@informatik.hu-berlin.de>
* app.c (do_scrub_begin): Set characters above 127 to be symbol
	characters.
	(do_scrub_chars): Add some casts to unsigned char to avoid
	unwanted sign extension.
	* read.c (lex_type): Set characters about 127 to be symbol
	characters.
	* config/tc-i386.c (md_begin): Set identifier_chars and
	operand_chars for values above 127.
1998-11-03 01:16:02 +00:00
Geoffrey Noer
c296a05229 Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
* configure.in: detect cygwin* instead of cygwin32*
        * configure: regenerate
1998-11-02 23:16:11 +00:00
Nick Clifton
7a6f678220 Add support for producing a lsiting from piped input. 1998-10-27 21:19:21 +00:00
Gavin Romig-Koch
d3b42ce1c7 * config/tc-mips.c (hilo_interlocks): Remove mips_3900.
(append_insn): Account for the tx39's multiply behavior.
	* mips.h (INSN_MULT): Added.
	* mips-opc.c (IS_M): Added.
1998-10-27 14:04:03 +00:00
Michael Meissner
a561cd980b PR 17947: Add -> to indicate two instructions are explicitly serial 1998-10-27 00:36:15 +00:00
Catherine Moore
5aa001ff77 * config/tc-sh.c (sh_fix_adjustable): Adjust EXTERN and
WEAK handling.
1998-10-24 20:24:50 +00:00
Frank Ch. Eigler
24b2f07acf * Fix for PR 17559 brought over from sky branch
start-sanitize-r5900
Fri Oct 23 13:01:24 EDT 1998 Frank Ch. Eigler <fche@cygnus.com>
	* gas/mips/vu0.[sd]: Update tests for VRNEXT and VRGET
	instructions, to match corrected operand synatx.
end-sanitize-r5900
1998-10-23 11:30:09 +00:00
Catherine Moore
046381da3a Revert last change. 1998-10-22 17:46:33 +00:00
Ron Unrau
993b4e8d38 * config/tc-mips.c : support frame and regmask/fregmask when
MIPS_STABS_ELF is specified.
1998-10-22 16:02:52 +00:00
Ian Lance Taylor
a0bc1e7d2b Tue Oct 20 11:35:06 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* gas/i386/i386.exp: Run AMD insn test.
	* gas/i386/amd.s: New test.
	* gas/i386/amd.d: New test results.
1998-10-20 15:36:31 +00:00
Ian Lance Taylor
6e1acc623a Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* doc/c-i386.texi: Replace occurences of "opcode" with
	"instruction mnemonic", "instruction", or "mnemonic" when
	referring to the name of an instruction.  Use "opcode" when
	referring to the sequence of machine bytes.

	* config/tc-i386.c (opcode_chars): Rename to mnemonic_chars.
	(is_opcode_char): Rename to is_mnemonic_char.
	(md_assemble and i386_operand): Correct error messages from
        "opcode" to "instruction mnemonic"
	Rename throughout opcode[] -> mnemonic[], opp -> mnem_p,
	MAX_OPCODE_SIZE -> MAX_MNEM_SIZE,
	DWORD_OPCODE_SUFFIX -> DWORD_MNEM_SUFFIX,
	WORD_OPCODE_SUFFIX -> WORD_MNEM_SUFFIX,
	BYTE_OPCODE_SUFFIX -> BYTE_MNEM_SUFFIX,
	SHORT_OPCODE_SUFFIX -> SHORT_MNEM_SUFFIX
	LONG_OPCODE_SUFFIX -> LONG_MNEM_SUFFIX

	* config/tc-i386.h (*_MNEM_SUFFIX): Rename from *_OPCODE_SUFFIX.
1998-10-20 15:33:27 +00:00
Ian Lance Taylor
7540e47096 Tue Oct 20 11:18:28 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (i386_operand): Check for garbage after
	register name.
1998-10-20 15:24:45 +00:00
Ian Lance Taylor
f5003e7d62 * config/tc-i386.c (md_apply_fix3): Change handling of PCREL reloc
for BFD_ASSEMBLER to only change value when COFF if TE_PE.
1998-10-20 14:51:09 +00:00
Catherine Moore
7e2014e092 * config/tc-sh.h (obj_fix_adjustable): Define.
* config/tc-sh.c (sh_force_relocation):  Handle VT relocs.
        (md_apply_fix):  Likewise.
        (tc_gen_reloc):  Likewise.
        (sh_fix_adjustable):  New.
1998-10-20 01:26:55 +00:00
Doug Evans
1ab68803c4 * cgen.c (gas_cgen_finish_insn): Update handling of CGEN_INT_INSN_P.
* cgen.h (gas_cgen_finish_insn): Update prototype.
	* config/tc-m32r.c (m32r_insn): CGEN_INT_INSN -> CGEN_INT_INSN_P.
	cgen_insn_t -> CGEN_INSN_INT.
	(make_parallel): Update handling of CGEN_INT_INSN_P.
	(assemble_parallel_insn): Ditto.
	(target_make_parallel): New function.
	(md_assemble): Use it.
1998-10-19 19:45:40 +00:00
Catherine Moore
5dbf2f20a1 Fix typo. 1998-10-19 18:21:05 +00:00
Jeff Law
0ef1fa08dc * config/tc-sh.c (md_assemble): Make sure the entire opcode is
converted into lower case.
pr17413
1998-10-19 00:50:59 +00:00
Catherine Moore
0f829c8eae * cgen.c (gas_cgen_md_apply_fix3): Handle VTABLE relocs.
(gas_cgen_tc_gen_reloc):  Likewise.
        * config/tc-m32r.h (obj_fix_adjustable):  Define.
        * config/tc-m32r.c (m32r_fix_adjustable):  New.
        (m32r_force_relocation):  Handle VTABLE relocs.
1998-10-16 18:45:25 +00:00
Nick Clifton
908b913631 Fix PR17762 - convert second opcode of a parallel insn to lower case before
parsing.
1998-10-13 00:45:27 +00:00
Nick Clifton
172fc86df5 Fix for PR 17008 - ignore conflicts when explicitly parallel instructions
both set bits in the PSW as side effects.
1998-10-12 18:09:31 +00:00
Nick Clifton
633f501677 Apply patches from PRs 16299, 17008 and 17140 1998-10-08 17:55:58 +00:00
Nick Clifton
726a394601 Ooops - failed to check in first part of patch for PR 17438 1998-10-08 17:19:55 +00:00
Nick Clifton
644a26542c Fix for PR 16299: Do not assume that bad relocations always have an associated symbol. 1998-10-07 21:10:16 +00:00
Catherine Moore
1a113a4cdc * tc-sparc.h (TC_FORCE_RELOCATION): Define.
(elf32_sparc_force_relocation):  Declare.
        * tc-sparc.c (md_apply_fix3):  Handle vtable relocs.
        (tc_gen_reloc):  Handle vtable relocs.
        (elf32_sparc_force_relocation):  New.
1998-10-06 14:37:23 +00:00
Catherine Moore
272cea1421 * symbols.c (S_IS_FUNCTION): New.
* config/tc-v850.h (obj_fix_adjustable):  Define.
        (TC_FORCE_RELOCATION):  Define.
        (v850_force_relocation):  Declare.
        * config/tc-v850.c (tc_gen_reloc):  Use offset instead
        of fx_addnumber for VTABLE reloc addends.
        (md_apply_fix3):  Handle VTABLE relocs.
        (v850_fix_adjustable):  New.
        (v850_force_relocation):  New.
1998-10-05 14:30:25 +00:00
Jeff Law
e963374a58 * tc-hppa.c (fp_operand_format): Add some additional formats.
(pa_ip): Do not automatically promote into pa2.0 mode.
        (pa_level): Handle ".level 2.0".
start-sanitize-cygnus
        (struct pa_it): New field "trunc".
        (pa_parse_fp_cnv_format): New function.
        (pa_parse_ftest_gfx_completer): New function.
        (pa_ip): Handle various new letters for PA2.0 support.
end-sanitize-cygnus
1998-10-05 06:52:58 +00:00
Ian Lance Taylor
b3ef365828 Sun Oct 4 20:57:43 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* config/tc-i386.c (md_assemble): Handle AMD_3DNOW_OPCODE.
	* config/tc-i386.h (template.extension_opcode): Change to
        unsigned int to allow full range of 8-bit opcode suffixes.
	(None): Redefine as 0xffff.

	From Jeff B Epler <jepler@usgs.gov>
	* doc/c-i386.texi (i386-SIMD): New section.
1998-10-05 00:59:52 +00:00
Richard Henderson
f2bd868044 * read.c (discard_rest_of_line): New function.
* read.h: Declare it.
        * config/tc-alpha.c (s_alpha_mask, s_alpha_frame): Use it.
1998-10-01 22:39:35 +00:00
Nick Clifton
6d48238de9 Enhanced fix for PR 14826 - cope with the case where a symbol name matches
a register name
1998-10-01 17:35:17 +00:00
Nick Clifton
b481c113bb Fix PR 17042 - Do not attempt to resolve offsets to symbols in other sections
at assembly time.
1998-09-30 18:12:57 +00:00
Nick Clifton
4c404e8d9c Apply fix from PR 14826 - generate an error if a register is supplied for a
operand that should not be a register.
1998-09-28 18:02:50 +00:00
Nick Clifton
1af37f6bde Addtional fix for PR17045 - allowed delayed branches to have insns in the
R container
1998-09-25 17:06:05 +00:00
Nick Clifton
a173c5db00 Fic PR 17045: Do not allow insns in R bin if L bin contains a branch. 1998-09-24 16:31:20 +00:00
Nick Clifton
21056c79a4 PR 17438 - fix parsing of MVTSYS and MVFSYS insns. 1998-09-23 17:56:40 +00:00
Nick Clifton
973e995d34 Fix PR 16898 - Implement EITHER_BUT_PREFER_MU execution class
Fix PR 17135 - Prefer register names over symbol names, except when registers
		are unacceptable.
1998-09-23 01:11:23 +00:00
Jim Wilson
6c173d732e Fix non-ISO C code found by SGI C compiler.
* config/obj-elf.h (ECOFF_DEBUGGING): Add missing parens.
1998-09-23 00:00:45 +00:00
Nick Clifton
aa7bf2a890 Fix PR 17135 (whilst keeping PR14827 fixed) by prefering register names over
symbolic names, except where the register name is unacceptable.
1998-09-22 22:48:42 +00:00
Doug Evans
3c62de83cd update tc-dvp.c with sky-980617-branch 1998-09-21 20:27:28 +00:00
Nick Clifton
e8dedcb3fe Fix PR 17105 - reset previous insn to empty after emitting NOPs. 1998-09-21 17:44:48 +00:00
Michael Meissner
4abb25eaff Do not require an ANSI compiler 1998-09-20 22:21:23 +00:00
Ian Lance Taylor
568caf5326 Sun Sep 20 01:00:01 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* gas/vtable/inherit1.l: Require only the word GAS somewere in the
	first line of the listing.
1998-09-20 05:00:45 +00:00
Ian Lance Taylor
ba5900222d Sun Sep 20 00:58:12 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* config/tc-m68k.h (TC_FORCE_RELOCATION): New macro.  Force vtable
	relocs.
	* config/tc-m68k.c (md_apply_fix_2): Do nothing for vtable relocs.
1998-09-20 04:59:11 +00:00
Catherine Moore
61b113a94e * config/obj-elf.c (obj_elf_vtable_inherit): Handle arm
assembler syntax.
(obj_elf_vtable_entry):  Likewise.
* config/tc-arm.h:  Define TC_FORCE_RELOCATION for OBJ_ELF.
* config/tc-arm.c (md_apply_fix3): Handle VTABLE relocations.
(tc_gen_reloc): Likewise.
(arm_fix_adjustable): Likewise.
(elf32_arm_force_relocation): New.
(armelf_frob_symbol):  Remove coff-style symbol support.
Remove armelf sanitization.
1998-09-15 14:47:51 +00:00
Richard Henderson
1891eb9f0d * config/tc-i386.c (i386_operand): Fix typo in last patch. 1998-09-09 18:27:52 +00:00
Catherine Moore
d22136dc8c Tue Sep 8 18:10:01 1998 Catherine Moore <clm@cygnus.com>
* config/tc-arm.c (arm_adjust_symtab):  Move #ifdef
        OBJ_COFF so that routine is defined for a.out format.
1998-09-08 23:20:30 +00:00
Richard Henderson
de1d28b669 * config/tc-i386.c (i386_operand): Detect non-segment registers
used as segment prefixes.
1998-09-08 22:57:36 +00:00
Ian Lance Taylor
5c27572868 * ehopt.c (check_eh_frame): Check the size of the FDE, and don't
optimize across FDE boundaries.
1998-09-06 00:39:46 +00:00