aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2002-12-05Patch to update IA-64 port to SDM 2.1.Jim Wilson13-10/+150
bfd/ChangeLog * cpu-ia64-opc.c: Add operand constant "ar.csd". gas/ChangeLog * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint" instruction. (emit_one_bundle): Handle "hint" instruction. (operand_match): Match IA64_OPND_AR_CSD. gas/testsuite/ChangeLog * gas/ia64/opc-b.d: Update for instructions added by SDM2.1. * gas/ia64/opc-b.s: Ditto. * gas/ia64/opc-f.d: Ditto. * gas/ia64/opc-f.s: Ditto. * gas/ia64/opc-i.d: Ditto. * gas/ia64/opc-i.s: Ditto. * gas/ia64/opc-m.d: Ditto. * gas/ia64/opc-m.s: Ditto. * gas/ia64/opc-x.d: Ditto. * gas/ia64/opc-x.s: Ditto. include/opcode/ChangeLog * ia64.h: Fix copyright message. (IA64_OPND_AR_CSD): New operand kind. opcodes/ChangeLog * ia64-opc-d.c (ia64_opcodes_d): Add "hint" instruction. * ia64-opc-b.c: Add "hint.b" instruction. * ia64-opc-f.c: Add "hint.f" instruction. * ia64-opc-i.c: Add "hint.i" instruction. * ia64-opc-m.c: Add "hint.m", "fc.i", "ld16", "st16", and "cmp8xchg16" instructions. * ia64-opc-x.c: Add "hint.x" instruction. * ia64-opc.h (AR_CSD): New macro. * ia64-ic.tbl: Update according to SDM2.1. * ia64-raw.tbl: Ditto. * ia64-waw.tbl: Ditto. * ia64-gen.c (in_iclass): Handle "hint" like "nop". (lookup_regindex): Recognize AR[FCR], AR[EFLAG], AR[CSD], AR[SSD], AR[CFLG], AR[FSR], AR[FIR], and AR[FDR]. * ia64-asmtab.c: Regenerate.
2002-12-04 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototypeAlan Modra2-2/+8
inside #if.
2002-12-03Fix typo in ChangeLog entry.Nick Clifton1-1/+1
Add paranoia checks to .PPC.EMB.apuinfo merging code.
2002-12-03Fix the merging of .PPC.EMB.apuinfo sections. Add a test to make sure thatNick Clifton2-1/+6
the fix continues to work.
2002-12-03include/opcode/Richard Henderson8-0/+60
* ia64.h (enum ia64_opnd): Add IA64_OPND_LDXMOV. bfd/ * cpu-ia64-opc.c (elf64_ia64_operands): Add ldxmov entry. opcodes/ * ia64-opc-m.c: Add ld8.mov. * ia64-asmtab.c: Regenerate. gas/ * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case. gas/testsuite/ * gas/ia64/ldxmov-1.[ds]: New. * gas/ia64/ldxmov-2.[ls]: New. * gas/ia64/ia64.exp: Run them.
2002-12-03 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.Alan Modra4-93/+64
(cons, s_align_bytes): Delete declaration. (relax): Delete. (md_begin): Constify "struct opinfo *" var. Don't try to make "name" strings common. (dot): Delete unused function. (w65_expression): Remove unused arg. (parse_exp): Prototype. Remove unused arg. Adjust w65_expression call. (get_operands): Prototype. Constify "struct opinfo *" arg. Fix parse_exp call. (get_specific): Prototype. Constify "struct opinfo *" arg and return value. (check): Remove unused function. (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort on unhandled switch case. (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify "opcode". (tc_crawl_symbol_chain): Delete unused function. (tc_headers_hook): Likewise. (tc_Nout_fix_to_chars): Likewise. (md_undefined_symbol): Add ATTRIBUTE_UNUSED. (md_parse_option): Likewise. (md_convert_frag): Likewise. (tc_coff_symbol_emit_hook): Likewise. (md_show_usage): Likewise. * config/tc-w65.h (tc_coff_sizemachdep): Declare. (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg. (w65_expression): Declare. * po/POTFILES.in: Regenerate.
2002-12-03 * gas/arm/adrl.s: Test behaviour against globals too.Alan Modra3-5/+24
* gas/arm/adrl.d: Adjust.
2002-12-03 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATEAlan Modra2-4/+14
and ARM_ADRL_IMMEDIATE.
2002-12-02Remove GASP.Nick Clifton134-13998/+93
2002-12-02Fix typo last entryHans-Peter Nilsson1-1/+1
2002-12-02 * read.c (emit_expr) [WORKING_DOT_WORD]: Initialize x->use_jump.Hans-Peter Nilsson2-0/+5
2002-12-01 * gas/m68hc11/m68hc11.exp: Rename from all.exp; run the new tests.Stephane Carrez6-0/+488
* gas/m68hc11/all.exp: Remove. * gas/m68hc11/indexed12.d: New test. * gas/m68hc11/indexed12.s: Likewise. * gas/m68hc11/bug-1825.d: Likewise. * gas/m68hc11/bug-1825.s: Likewise.
2002-12-01 * gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdumpStephane Carrez1-2/+2
can find the real symbol and not a gas internal debug symbol. * gas/m68hc11/insns.d: Update. * gas/m68hc11/insns-dwarf2.d: Update. * gas/m68hc11/insns12.d: Update. * gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min. * gas/m68hc11/opers12.d: Update after indexed offset operand fixes. * gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-12-01 * gas/m68hc11/insns.s: Don't use .comm for stack symbol so that objdumpStephane Carrez7-47/+60
can find the real symbol and not a gas internal debug symbol. * gas/m68hc11/insns.d: Update. * gas/m68hc11/insns-dwarf2.d: Update. * gas/m68hc11/insns12.d: Update. * gas/m68hc11/opers12.s (min5b, min9b): Use 16 and -256 for the min. * gas/m68hc11/opers12.d: Update after indexed offset operand fixes. * gas/m68hc11/opers12-dwarf2.d: Likewise.
2002-12-01 * config/tc-m68hc11.c (md_begin): Fix qsort warning.Stephane Carrez2-2/+8
(tc_gen_reloc): Mark section param as not used.
2002-12-01 Fix Bug savannah/1825:Stephane Carrez3-26/+163
* config/tc-m68hc11.h (md_relax_frag): Define to support relaxations that are not pc-relative. (m68hc11_relax_frag): Declare. * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle the offsetable indexed addressing modes (n,r). (build_insn): Cleanup some locals. (m68hc11_relax_frag): New function imported from tc-cris.c to handle relaxation of difference between two symbols of same section. (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement only when this is a PC-relative operand and the offset is not absolute. (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will be handled by m68hc11_relax_frag.
2002-12-01 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc defaultStephane Carrez3-1/+57
(32-bit int, 64-bit double). (md_longopts): New options -mshort, -mlong, -mshort-double and -mlong-double to control the ABI. (md_show_usage): Update. (md_parse_option): Handle new options. * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2002-12-01 * symbols.c (report_op_error): New function, broken out of ...Alan Modra2-53/+88
(resolve_symbol_value): ... here. Use for both monadic and dyadic operators.
2002-11-30 * config/tc-sh.c (md_apply_fix3): Take account of fx_offsetKaz Kojima5-1/+16
for BFD_RELOC_32_PLT_PCREL. * sh/gas/sh/pic.s: Add a test for ".long foo@PLT+.-2-label". * sh/gas/sh/pic.d: Add expected output.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra47-747/+852
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-29Allow BKPT instruction to be specified without an operand. Add a test for this.Nick Clifton5-11/+27
2002-11-28 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCALKaz Kojima2-3/+12
for TLS relocations.
2002-11-28 * config/tc-ia64.c (md_apply_fix3): Add default case.Jakub Jelinek2-0/+7
2002-11-28 * symbols.c (S_SET_THREAD_LOCAL): New function.Jakub Jelinek6-3/+59
* symbols.h (S_SET_THREAD_LOCAL): New prototype. * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL for TLS relocations. * config/tc-ia64.c (md_apply_fix3): Likewise. * config/tc-alpha.c (md_apply_fix3): Likewise. * ld-i386/tlsnopic.rd: Change NOTYPE to TLS for UND sg* symbols.
2002-11-28 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragmentJakub Jelinek2-1/+24
to entsize.
2002-11-26* dwarf2dbg.c (scale_addr_delta): New.DJ Delorie2-8/+28
(size_inc_line_addr): Use it. (emit_inc_line_addr): Use it.
2002-11-26 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.Hans-Peter Nilsson2-5/+9
(md_assemble): Don't pass on branches to constants as relaxable. Tweak comment.
2002-11-26 * gas/cris/rd-bcnst.d, gas/cris/rd-bcnst.d: New test.Hans-Peter Nilsson3-0/+29
2002-11-25* gas/xstormy16/allinsn.d: Fix sdiv/sdivlh encodings.DJ Delorie2-2/+6
2002-11-25 * gas/config/tc-tic4x.c (c4x_operands_match): Bugfix in directSvein Seldal2-15/+8
mode
2002-11-21 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbolsDave Anglin2-1/+7
only if they have default visibility.
2002-11-21 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundantRichard Henderson2-1/+6
S_IS_DEFINED test.
2002-11-21 * config/tc-mcore.c (mcore_pool_count): New function.Alan Modra2-98/+65
(mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2002-11-212002-11-20 Klee Dienes <kdienes@apple.com>Klee Dienes3-17/+15
* config/tc-mcore.c (md_begin): Use a const iterator. Don't coalesce the name fields to use the same pointer. * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce the name fields to use the same pointer. (get_specific): Check for opcodes with the same name using strcmp as well as comparing the pointer.
2002-11-20 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups withAlan Modra2-1/+7
fx_subsy non-NULL.
2002-11-20* gas/xstormy16/allinsn.sh: Add sdiv, divlh, and sdivlh.DJ Delorie4-155/+194
* gas/xstormy16/allinsn.d: Regenerate. * gas/xstormy16/allinsn.s: Regenerate.
2002-11-20move testsuite entries to the correct changelogAlan Modra2-125/+133
2002-11-20 * config/obj-elf.c (obj_elf_visibility): Overwrite only theRichard Henderson2-1/+7
visibility portion of st_other.
2002-11-192002-11-19 Klee Dienes <kdienes@apple.com>Klee Dienes2-55/+97
* config/tc-h8300.c (struct h8_instruction): New type, used to wrap h8_opcodes with length, noperands, idx, and size fields (computed at run-time). (h8_instructions): New variable. (md_begin): Allocate the storage for h8_instructions. Fill h8_instructions with pointers to the appropriate opcode and the correct value for the additional fields. (clever_message): Update to use h8_instructions instead of h8_opcodes. (build_bytes): Ditto. (get_specific): Ditto. (md_assemble): Ditto.
2002-11-19* config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to preventMartin Schwidefsky2-0/+8
adjustments to symbols in merge sections.
2002-11-19 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.Alan Modra2-1/+10
2002-11-18Add support for 64-bit DWARF 2 formats to gas.Kevin Buettner6-6/+116
2002-11-18* config/tc-mips.c (s_change_section): Make sure input bufferAlexandre Oliva2-1/+13
is not accessed past the end. Don't hand obj_elf_change_section a pointer into the input buffer.
2002-11-18* config/tc-mips.c (tc_gen_reloc): Fix typo in handling ofAlexandre Oliva2-1/+6
GOT_LO16 on NEWABI.
2002-11-18Fixups in ChangeLog entries which has been filed in the wrong place.Svein Seldal2-35/+30
2002-11-18 * gas/config/tc-tic4x.c: Fixed proper commandlineSvein Seldal12-805/+2209
parameters. Added support for new opcode-list format. General error message fixups. (c4x_inst_add): Reject insn not for our CPU (md_begin): Added matrix for setting the proper opcode-level & device-flags according to cpu type and revision. Rewrite the opcode hasher. (c4x_operand_parse): Fix opcode bug (c4x_operands_match): New function argument. Added dry-run mechanism, that is optional error generation. Added constraint 'i' and 'j'. (c4x_insn_check): Added new function for post-verification of the generated insn. (md_assemble): Check all opcodes before croaking because of an argument mismatch. Need this to be able to fully support ortogonally arguments. (md_parse_options): Revised commandprompt swicthes and added new ones. (md_show_usage): Complete rewrite of printout. * gas/testsuite/gas/tic4x/addressing.s: Fix bug in one insn * gas/testsuite/gas/tic4x/addressing_c3x.d: Update thereafter * gas/testsuite/gas/tic4x/addressing_c4x.d: Update thereafter * gas/testsuite/gas/tic4x/allopcodes.S: Add support for new opclass.h changes * gas/testsuite/gas/tic4x/opclasses.h: Added testsuites for the new enhanced opcodes. * gas/testsuite/gas/tic4x/opcodes.s: Regenerate * gas/testsuite/gas/tic4x/opcodes_c3x.d: Update from above * gas/testsuite/gas/tic4x/opcodes_c4x.d: Update from above * gas/testsuite/gas/tic4x/opcodes_new.d: Added new testsuite for the enhanced and special insns. * gas/testsuite/gas/tic4x/tic4x.exp: Added the opcodes_new testsuite * include/opcode/tic4x.h: File reordering. Added enhanced opcodes. * opcodes/tic4x-dis.c: Added support for enhanced and special insn. (c4x_print_op): Added insn class 'i' and 'j' (c4x_hash_opcode_special): Add to support special insn (c4x_hash_opcode): Update to support the new opcode-list format. Add support for the new special insns. (c4x_disassemble): New opcode-list support.
2002-11-18TIC4X testcase commitSvein Seldal22-7/+6334
* binutils/testsuite/binutils-all/objcopy.exp: Disable tic4x from test * binutils/testsuite/binutils-all/objdump.exp: Setup proper values for tic4x testcase * gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase * gas/testsuite/gas/macros/macros.exp: Ditto * gas/testsuite/gas/all/gas.exp: Setup for tic4x testcase * gas/testsuite/gas/macros/macros.exp: Ditto * gas/testsuite/gas/tic4x: New tic4x gas testsuite directory * ld/testsuite/ld-scripts/script.exp: Setup for tic4x testcase
2002-11-16 * gas/config/tc-tic4x.c: Remove c4x_pseudo_ignore function.Svein Seldal2-16/+109
(c4x_operands_match): Added check for 8-bits LDF insn. Give warning when using constant direct bigger than 2^16. Add the new arguments. * include/opcode/tic4x.h: Major rewrite of entire file. Define instruction classes, and put each instruction into a class. * opcodes/tic4x-dis.c: (c4x_print_op): Add support for the new argument format. Fix bug in 'N' register printer.
2002-11-12 * gas/ppc/booke.d: Adjust output for corrected condition reg.Alan Modra2-2/+6
2002-11-11* configure.in: Use .gdbinit under Cygwin.Christopher Faylor3-2/+7
* configure: Regenerate.