Ben Elliston
1a9a8ab429
Remove redundant returns in void functions.
2003-12-10 06:41:08 +00:00
Paul Brook
5533419b3d
* config/tc-arm.c (do_umaal): Fix typo.
2003-12-09 17:41:12 +00:00
Richard Sandiford
0a6ace1e0e
gas/
...
* config/tc-mips.c (macro): Switch misordered call to frag_grow()
and setting of tc_fr_offset.
gas/testsuite/
* gas/mips/elf-rel16.[sd]: New test.
* gas/mips/mips.exp: Run it.
* gas/mips/elf-rel-xgot-n32.d: Fix addends for "lw $5,dl1+34($5)".
* gas/mips/elf-rel-xgot-n64.d: Likewise.
2003-12-06 13:52:23 +00:00
Mark Mitchell
09d92015d3
* gas/arm/arm.exp: Add archv6 and thumbv6.
...
* gas/arm/archv6.d: New file.
* gas/arm/archv6.s: Likewise.
* gas/arm/thumbv6.d: Likewise.
* gas/arm/thumbv6.s: Likewise.
Add V6 support.
* config/tc-arm.c (ARM_EXT_V6): New macro.
(ARM_ARCH_V6): Likewise.
(SHIFT_IMMEDIATE): Likewise.
(SHIFT_LSL_OR_ASR_IMMEDIATE): Likewise.
(SHIFT_ASR_IMMEDIATE): Likewise.
(SHIFT_LSL_IMMMEDIATE): Likewise.
(do_cps): New function.
(do_cpsi): Likewise.
(do_ldrex): Likewise.
(do_pkhbt): Likewise.
(do_pkhtb): Likewise.
(do_qadd16): Likewise.
(do_rev): Likewise.
(do_rfe): Likewise.
(do_sxtah): Likewise.
(do_sxth): Likewise.
(do_setend): Likewise.
(do_smlad): Likewise.
(do_smlald): Likewise.
(do_smmul): Likewise.
(do_ssat): Likewise.
(do_usat): Likewise.
(do_srs): Likewise.
(do_ssat16): Likewise.
(do_usat16): Likewise.
(do_strex): Likewise.
(do_umaal): Likewise.
(do_cps_mode): Likewise.
(do_cps_flags): Likewise.
(do_endian_specifier): Likewise.
(do_pkh_core): Likewise.
(do_sat): Likewise.
(do_sat16): Likewise.
(insns): Add V6 instructions.
(do_t_cps): New function.
(do_t_cpy): Likewise.
(do_t_setend): Likewise.
(THUMB_CPY): New macro.
(tinsns): Add V6 instructions.
(decode_shift): Handle V6 restricted-shift options.
(thumb_mov_compare): Support CPY.
(arm_cores): Add arm1136js and arm1136jfs.
(arm_archs): Add armv6.
(arm_fpus): Add arm1136jfs.
* doc/c-arm.texi (ARM Options): Mention arm1136js, arm1136jfs, and
armv6 options.
* gas/arm/arm.exp: Add archv6 and thumbv6.
* gas/arm/archv6.d: New file.
* gas/arm/archv6.s: Likewise.
* gas/arm/thumbv6.d: Likewise.
* gas/arm/thumbv6.s: Likewise.
* arm-dis.c (print_arm_insn): Add 'W' macro.
* arm-opc.h (arm_opcodes): Add V6 instructions.
(thumb_opcodes): Likewise.
2003-12-06 01:25:29 +00:00
Christian Groessler
f69532ae1b
* config/tc-z8k.c (parse_reg): Be case insensitive when checking
...
register names.
(get_ctrl_operand): Be case insensitive when checking ctrl names.
2003-12-05 23:40:04 +00:00
Nick Clifton
2acb89ed54
Fix SH compilation problems introduced by previous delta
2003-12-05 11:55:01 +00:00
Michael Snyder
88da98f3d4
2003-12-03 Alexandre Oliva <aoliva@redhat.com>
...
* config/tc-sh.c: Add support for sh4a and no-fpu variants,
with appropriate additions to md_show_usage.
* testsuite/gas/sh/basic.exp: Call tests for sh4a.
* testsuite/gas/sh/{err-sh4a-fp.s, err-sh4a.s,
err-sh4al-dsp.s, sh4a-dsp.d, sh4a-dsp.s, sh4a-fp.d,
sh4a-fp.s, sh4a.d, sh4a.s, sh4al-dsp.d, sh4al-dsp.s:
New files, tests for sh4a and related variants.
* doc/c-sh.texi: Document new -isa options.
* doc/c-sh64.texi: Ditto.
* NEWS: Mention new support for sh4a.
2003-12-05 01:59:55 +00:00
H.J. Lu
b80901c73f
2003-11-24 H.J. Lu <hongjiu.lu@intel.com>
...
* config/tc-alpha.c (s_alpha_end): Don't crash if there is no
matching .ent.
2003-12-04 00:54:16 +00:00
Nick Clifton
8884595866
Add support for the M32R2 processor.
2003-12-03 17:38:48 +00:00
Nick Clifton
f8fc344381
Add vax-linux-gnu target
2003-12-03 15:07:17 +00:00
Kazu Hirata
7efd976aa8
* config/obj-elf.c: Remove ARGSUSED.
2003-12-03 03:20:13 +00:00
Christian Groessler
464800cafe
* config/tc-z8k.c: Convert to ISO-C.
...
* config/tc-z8k.h: Likewise.
2003-11-28 20:10:18 +00:00
Nick Clifton
028f09bd7f
Check for alignment when emitting constants on the sh-elf target
2003-11-27 08:29:29 +00:00
Alexandre Oliva
a939d0907f
* config/tc-frv.c (md_pcrel_from_section): Don't adjust when
...
referencing symbol in a different section.
2003-11-27 02:30:55 +00:00
Christian Groessler
d5bf5799d9
* config/tc-z8k.c (s_segm): Fix indentation.
...
(md_apply_fix3): Likewise.
(cc_names): Add alias names for the names generated by the
disassembler.
(get_cc_operand): Be case insensitive.
(get_operands): Improve error handling for cc operands.
(check_operand): Not used, remove.
(md_assemble): Remove unused variable prev_opcode. Skip
whitespace until end-of-line only. Restore *op_end after call to
hash_find.
2003-11-26 21:24:53 +00:00
Nick Clifton
b4f16abb97
Revert change to t01_mov test.
...
Fix ldm/stm verifying code to allow er4-er7 for H8SX.
2003-11-26 13:18:23 +00:00
Kazu Hirata
3db8d52cad
* config/tc-h8300.c (h8_exp): Remove.
2003-11-25 23:09:47 +00:00
Nick Clifton
4892e51064
Catch illegal register pairings in ldm/stm instructions.
...
Update test files to avoid illegal pairings.
2003-11-25 16:13:36 +00:00
Kazu Hirata
66faad269b
* config/tc-h8300.c (Hmode): Make it global.
...
(Smode): Likewise.
(Nmode): Likewise.
(SXmode): Likewise.
2003-11-23 15:43:50 +00:00
Kazu Hirata
33b7f69788
* config/atof-tahoe.c: Fix comment typos.
...
* config/m68k-parse.y: Likewise.
* config/obj-aout.c: Likewise.
* config/obj-bout.c: Likewise.
* config/obj-vms.c: Likewise.
* config/tc-tahoe.c: Likewise.
* config/tc-tic30.c: Likewise.
* config/tc-tic4x.c: Likewise.
* config/tc-tic54x.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/te-delt88.h: Likewise.
* config/te-delta.h: Likewise.
* config/te-generic.h: Likewise.
* config/te-macos.h: Likewise.
* config/te-ppcnw.h: Likewise.
* config/te-psos.h: Likewise.
* config/te-sun3.h: Likewise.
* config/te-tmips.h: Likewise.
* config/xtensa-relax.c: Likewise.
2003-11-22 15:32:28 +00:00
Kazu Hirata
67c1ffbec9
* config/tc-a29k.h: Fix comment typos.
...
* config/tc-arm.c: Likewise.
* config/tc-dlx.h: Likewise.
* config/tc-hppa.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-m32r.c: Likewise.
* config/tc-m68hc11.c: Likewise.
* config/tc-m68k.c: Likewise.
* config/tc-m88k.c: Likewise.
* config/tc-mcore.c: Likewise.
* config/tc-mips.c: Likewise.
* config/tc-mmix.c: Likewise.
* config/tc-msp430.c: Likewise.
* config/tc-ns32k.c: Likewise.
* config/tc-or32.c: Likewise.
* config/tc-or32.h: Likewise.
* config/tc-pj.c: Likewise.
* config/tc-ppc.c: Likewise.
* config/tc-s390.c: Likewise.
* config/tc-sh64.c: Likewise.
* config/tc-sh.c: Likewise.
* config/tc-sparc.c: Likewise.
2003-11-22 02:35:31 +00:00
Alan Modra
69c040dfe9
* config/tc-ppc.c (parse_cpu): New function, broken out from..
...
(md_parse_option): ..here.
(ppc_setup_opcodes): New function, broken out from..
(md_begin): ..here.
(ppc_machine): Implement .machine pseudo op.
2003-11-21 15:05:15 +00:00
Kazu Hirata
0234cb7c70
* config/tc-hppa.c: Fix comment typos.
...
* config/tc-i370.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-i386.h: Likewise.
* config/tc-i960.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-iq2000.h: Likewise.
2003-11-21 14:38:06 +00:00
Kazu Hirata
2d2255b58e
* config/tc-a29k.h: Fix comment typos.
...
* config/tc-alpha.c: Likewise.
* config/tc-alpha.h: Likewise.
* config/tc-arc.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-arm.h: Likewise.
* config/tc-cris.c: Likewise.
* config/tc-d10v.c: Likewise.
* config/tc-d30v.c: Likewise.
* config/tc-dlx.c: Likewise.
* config/tc-dlx.h: Likewise.
2003-11-21 00:24:40 +00:00
DJ Delorie
0d78efdfab
* config/tc-sh64.c (shmedia_frob_section): Only frob elf32
...
sections.
2003-11-20 20:08:20 +00:00
Kazu Hirata
600e9c9985
* config/tc-h8300.c: Make some functions and global
...
variables static appropriately.
2003-11-20 04:25:26 +00:00
Kazu Hirata
d492b58e48
* config/obj-ieee.c: Remove duplicate prototypes.
...
* config/tc-h8300.c: Likewise.
2003-11-20 04:12:19 +00:00
Kazu Hirata
b54a33920b
* config/tc-h8300.c: Convert to ISO-C.
...
* config/tc-h8300.h: Likewise.
2003-11-20 03:31:36 +00:00
Kazu Hirata
fe01a20a70
* config/tc-mcore.h: Remove prototypes already in tc.h.
...
* config/tc-tic4x.c: Likewise.
2003-11-20 03:11:18 +00:00
Kazu Hirata
43b5c447a2
* config/tc-arc.c: Remove a local prototype of atof_ieee.
...
* config/tc-ip2k.c: Likewise.
* config/tc-iq2000.c: Likewise.
* config/tc-tic30.c: Remove a comment.
2003-11-20 01:36:49 +00:00
Kazu Hirata
aaa2624bf8
* config/obj-aout.h: Fix comment typos.
...
* config/obj-bout.h: Likewise.
* config/obj-coff.c: Likewise.
* config/obj-coff.h: Likewise.
* config/obj-elf.c: Likewise.
* config/obj-ieee.c: Likewise.
* config/obj-som.c: Likewise.
* config/obj-vms.c: Likewise.
* config/obj-vms.h: Likewise.
2003-11-20 00:01:55 +00:00
Bob Wilson
cda2eb9eeb
* config/tc-xtensa.c (xg_emit_insn): Include "dwarf2dbg.h" and add
...
call to dwarf2_emit_insn.
2003-11-19 23:55:06 +00:00
Maciej W. Rozycki
1abe91b1db
* config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"
...
for loading addresses using CALL relocations.
Don't emit CALL relocations when a base register is used.
* gas/mips/lca-svr4pic.d: New test for the "lca" macro.
* gas/mips/lca-xgot.d: Likewise.
* gas/mips/lca.s: Source for the new tests.
* gas/mips/mips.exp: Run the new tests.
* opcode/mips.h: Define new enum members, M_LCA_AB and M_DLCA_AB.
* mips-opc.c (mips_builtin_opcodes): Handle new macros: "lca" and
"dlca".
2003-11-18 21:22:57 +00:00
Maciej W. Rozycki
bf151ce78e
* config/tc-mips.c: Formatting fixes.
2003-11-15 15:57:14 +00:00
Ben Elliston
9ce887a1cd
* config/tc-arm.c (arm_elf_change_section): Not static.
2003-11-14 06:55:21 +00:00
Nick Clifton
6057a28fab
Add support for ARM ELF Mapping symbols
2003-11-13 14:19:01 +00:00
Andreas Jaeger
8d01d9a97d
2003-11-11 Jan Hubicka <jh@suse.cz>
...
* config/tc-i386.c (tc_i386_fix_adjustable):
2003-11-11 09:30:48 +00:00
Alan Modra
012a452b43
* config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
2003-11-10 03:07:52 +00:00
Nick Clifton
0bbf2aa424
* config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
...
(rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
mav_mvax_table, mav_dspc_table): Initialise new field.
(insert_reg_alias): Initialise new field.
(md_pseudo_table): Add "unreq" entry.
(s_unreq): New function: Undo the effects of a previous .req.
* doc/c-arm.texi: Document new pseudo op.
* NEWS: Mention new feature.
* testsuite/gas/arm/req.s: New test file. Check .req and .unreq psuedo ops.
* testsuite/gas/arm/req.l: Expected error output from req.s test.
* testsuite/gas/arm/copro.d: Set target architecture for objdump so that the
test will work on architectures which cannot encode higher arm architecture
types in their file headers.
* testsuite/gas/arm/arm.exp: Run new req.s test.
Skip thumb instruction test for PE targets which do not support
thumb relocations.
* testsuite/gas/elf/elf.exp: Skip special handling of section2 test for XScale
targets - it is no longer needed.
2003-11-06 15:30:05 +00:00
Nick Clifton
1be5957932
Fix 'the the' typo
2003-11-06 11:58:58 +00:00
Alan Modra
5f5c1f759d
* config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
2003-11-04 23:35:54 +00:00
Christian Groessler
eb9618da3b
* config/tc-i860.c (md_pcrel_from): Fix typo in comment.
2003-10-31 21:33:59 +00:00
Stephane Carrez
ca43c8544a
* config/tc-m68hc11.c: Convert to ISO C90.
...
* config/tc-m68hc11.h: Likewise.
2003-10-27 09:57:59 +00:00
H.J. Lu
ea8f8eab20
2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
...
* config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
for .interp, .strtab and .symtab. Use specified section
attributes.
2003-10-24 15:41:23 +00:00
H.J. Lu
5e2f667360
gas/
...
2003-10-22 Andreas Schwab <schwab@suse.de>
H.J. Lu <hongjiu.lu@intel.com>
Jim Wilson <wilson@specifixinc.com>
* config/tc-ia64.c (update_qp_mutex): New.
(note_register_values): Properly handle one of PRs in compare
is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
Clear mutex relation for .none/.unc. Don't clear mutex relation
on predicated compare.
testsuite/
2003-10-22 Andreas Schwab <schwab@suse.de>
H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/dv-mutex-err.s: Add more tests for compare.
* gas/ia64/dv-mutex.s: Likewise.
* gas/ia64/dv-mutex-err.l: Updated.
* gas/ia64/dv-mutex.d: Likewise.
2003-10-23 06:12:17 +00:00
Nick Clifton
5a21e886d0
Fix up error messages for Maverick.
2003-10-21 14:20:40 +00:00
Nick Clifton
3e60263266
Add ColfFire v4 support
2003-10-21 13:28:59 +00:00
Thiemo Seufer
13757d0cbb
* config/tc-mips.c (normalize_constant_expr): New function to fix sign
...
extensions broken by gas' expression evaluation of constants.
(check_absolute_expr): Use it.
(mips_ip): Likewise.
2003-10-19 21:50:43 +00:00
Hans-Peter Nilsson
88fc725d2f
Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
...
* doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
--no-stubs.
* config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
comment.
(expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
(pushj_stubs): New variable.
(OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
(PUSHJSTUB_MAX): New macros.
(md_longopts): New options "--no-pushj-stubs" and synonym
"--no-stubs".
(mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
(md_parse_option): Handle OPTION_NOPUSHJSTUBS.
(md_estimate_size_before_relax): Modify STATE_PUSHJ state for
PUSHJ stub relaxation.
(md_convert_frag): Handle STATE_PUSHJSTUB.
(md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
(tc_gen_reloc): Ditto.
(mmix_md_relax_frag): Handle PUSHJ stub relaxation.
* config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
(struct mmix_segment_info_type): New.
2003-10-18 15:53:40 +00:00
Nick Clifton
3675967994
Enforce PC-relative jumps with --pcrel.
2003-10-17 10:50:27 +00:00