1 2007-05-28 Nathan Sidwell <nathan@codesourcery.com>
3 * app.c (do_scrub_chars): Cope with \ at end of buffer.
5 2007-05-26 Alan Modra <amodra@bigpond.net.au>
7 * config/tc-ppc.c (ppc_insert_operand): Truncate sign bits in
8 top 32 bits of 64 bit value if so doing results in passing
9 range check. Rewrite sign extension fudges similarly. Enable
10 fudges for powerpc64 too. Report user value if range check
11 fails rather than fudged value. Negate PPC_OPERAND_NEGATIVE
12 range rather than value, also to report user value on failure.
14 2007-03-25 Paul Brook <paul@codesourcery.com>
16 * config/tc-arm.c (T2_SUBS_PC_LR): Define.
17 (do_t_add_sub): Correctly encode subs pc, lr, #const.
18 (do_t_mov_cmp): Correctly encode movs pc, lr.
20 2007-05-24 Steve Ellcey <sje@cup.hp.com>
22 * Makefile.in: Regnerate.
23 * configure: Regenerate.
24 * aclocal.m4: Regenerate.
25 * doc/Makefile.in: Regenerate.
27 2007-05-22 Bob Wilson <bob.wilson@acm.org>
29 * doc/c-xtensa.texi (Xtensa Automatic Alignment): Remove statements
30 and index entries about automatic alignment of ENTRY instructions.
32 2007-05-22 Nick Clifton <nickc@redhat.com>
34 * doc/as.texinfo: Use @copying around the copyright notice.
36 2007-05-18 Joseph Myers <joseph@codesourcery.com>
38 * config/tc-mips.c (s_mipsset): Use generic s_set for directives
41 2007-05-17 H.J. Lu <hongjiu.lu@intel.com>
44 2003-06-05 Michal Ludvig <mludvig@suse.cz>
45 * doc/as.texinfo: Document new directives: .cfi_restore,
46 .cfi_undefined, .cfi_same_value, .cfi_return_column,
47 .cfi_remember_state and .cfi_restore_state.
49 2007-05-17 Nathan Sidwell <nathan@codesourcery.com>
51 * config/tc-m68k.c (md_apply_fix): Show value of out of range
52 fixups in error message.
53 (md_conver_frag_1): Propagate the fix source location and use
54 as_bad_where rather than fatal, for better error messages.
56 2007-05-16 Paul Brook <paul@codesourcery.com>
58 * config/tc-arm.c (v7m_psrs): Add uppercase PSR names and xpsr.
60 2007-05-15 Mark Shinwell <shinwell@codesourcery.com>
62 * app.c (do_scrub_chars): Don't damage \@ pseudo-variables.
64 2007-05-15 Vincent Riviere <vincent.riviere@freesbee.fr>
67 * config/tc-m68k.c (relaxable_symbol): Make sure that the correct
68 addend is stored for relocs against weak symbols.
69 (md_apply_fix): So not loose track of addend for relocs against
72 2007-05-14 Thiemo Seufer <ths@mips.com>
74 * config/tc-mips.c (md_parse_option): Fix parsing of -O option.
76 2007-05-14 Mei Ligang <ligang@sunnorth.com.cn>
78 * config/tc-score.c (data_op2, validate_immediate): Fix bug for
79 addri, addri.c, subi, and subi.c when immediate number is hex.
80 (score_insns): Remove subis and subis.c.
81 (do_sub_rdi16): Delete.
83 2007-05-11 Alan Modra <amodra@bigpond.net.au>
85 * config/tc-spu.c (md_pseudo_table): Add int, long, quad. Call
87 (md_assemble): Tidy use of insn.flag.
88 (get_imm): Likewise. Handle uppercase input too.
89 (spu_cons): New function.
90 * config/tc-spu.h (tc_fix_adjustable): Don't adjust SPU_PPU relocs.
91 (TC_FORCE_RELOCATION): Don't resolve them either.
93 2007-05-05 Mark Shinwell <shinwell@codesourcery.com>
95 * config/tc-arm.c (md_apply_fix): Generate more accurate
96 diagnostic when 8-bit immediate range is exceeded for
97 BFD_RELOC_ARM_OFFSET_IMM8.
99 2007-05-04 Alan Modra <amodra@bigpond.net.au>
102 * config/tc-i386.c (lex_got): Don't replace the reloc token with
103 a space if we already have a space.
105 2007-05-03 H.J. Lu <hongjiu.lu@intel.com>
107 * config/tc-i386.c (match_template): Don't explicitly check
108 suffix for crc32 in Intel mode.
109 (process_suffix): Issue an error for crc32 if the operand size
112 2007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
113 Nick Clifton <nickc@redhat.com>
116 * config/tc-m68k.c (relaxable_symbol): Do not relax weak symbols.
117 (tc_gen_reloc): Adjust the addend of relocs against weak symbols.
118 (md_apply_fix): Put zero values into the frags referencing weak
121 2007-05-02 Alan Modra <amodra@bigpond.net.au>
124 * config/tc-ppc.c (ppc_insert_operand): Don't increase min for
127 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
129 * config/tc-i386.c (match_template): Check suffix for crc32 in
131 (process_suffix): Default the suffix of 8bit crc32 to
133 (check_byte_reg): Skip check for 8bit crc32.
135 2007-04-30 H.J. Lu <hongjiu.lu@intel.com>
137 * config/tc-i386.c (md_assemble): Use register_prefix in
138 error/warning message.
139 (check_byte_reg): Likewise.
140 (check_long_reg): Likewise.
141 (check_qword_reg): Likewise.
142 (check_word_reg): Likewise.
143 (process_operands): Likewise.
145 2007-04-30 Alan Modra <amodra@bigpond.net.au>
148 * config/tc-ppc.c (ppc_insert_operand): Disable range check if
151 2007-04-28 Thiemo Seufer <ths@networkno.de>
153 * config/tc-mips.c: Fix comment.
155 2007-04-26 Anatoly Sokolov <aesok@post.ru>
157 * config/tc-avr.c (mcu_types): Add support for atmega8hva and
158 atmega16hva devices. Move at90usb82 device to 'avr5' architecture.
159 * doc/c-avr.texi: Document new devices.
161 2007-04-24 Alan Modra <amodra@bigpond.net.au>
163 * Makefile.am: Run "make dep-am".
164 * Makefile.in: Regenerate.
166 2007-04-23 Nathan Sidwell <nathan@codesourcery.com>
168 * config/tc-m68k.c (mcf54455_ctrl): New.
169 (HAVE_LONG_DISP, HAVE_LONG_CALL, HAVE_LONG_COND): New.
170 (m68k_archs): Add isac.
171 (m68k_cpus): Add 54455 family.
172 (m68k_ip): Split Bg into Bb, Bs, Bg.
173 (m68k_elf_final_processing): Add ISA_C.
174 * doc/c-m68k.texi (M680x0 Options): Add isac.
176 2007-04-22 Alan Modra <amodra@bigpond.net.au>
178 * read.c (read_a_source_file): Skip multiple spaces to
179 cover hack in mmix md_start_line_hook which overwrites a
180 colon with a space. Delete sermon and needless assertion.
182 2007-04-21 Alan Modra <amodra@bigpond.net.au>
184 * config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
185 (md_atof): Make number_of_chars unsigned. Revert last change.
186 * config/tc-or32.c (md_apply_fix): Delete bogus assertions.
187 * config/tc-sh.c (sh_optimize_expr): Only define for OBJ_ELF.
188 * config/tc-sh.h (md_optimize_expr): Likewise.
189 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Delete bogus
191 * config/tc-xtensa.c (convert_frag_immed_finish_loop): Likewise.
193 2007-04-21 Nick Clifton <nickc@redhat.com>
195 * config/atof-vax.c (md_atof): Fix comparison inside know().
197 * config/tc-ia64.c (emit_one_bundle): Fix typo.
199 2007-04-21 Alan Modra <amodra@bigpond.net.au>
201 * expr.c (expr): Assert on rankarg, not rank which can be unsigned.
202 * read.c (read_a_source_file): Remove buffer_limit[-1] assertion.
203 Don't skip over NUL char.
204 (pseudo_set): Set X_op for registers to O_register.
205 * symbols.c (symbol_clone): Remove assertion that sym is defined.
206 (resolve_symbol_value): Resolve O_register symbols.
207 * config/tc-i386.c (parse_real_register): Don't use i386_float_regtab.
208 Instead find st(0) by hash lookup.
209 * config/tc-ppc.c (ppc_macro): Warning fix.
211 * as.h (ENABLE_CHECKING): Default define to 0.
212 (know): Assert if ENABLE_CHECKING.
213 (struct relax_type): Remove superfluous declaration.
214 * configure.in (--enable-checking): New.
215 * configure: Regenerate.
216 * config.in: Regenerate.
217 * config/tc-ppc.c (ppc_setup_opcodes): Do checks when ENABLE_CHECKING.
218 Check for duplicate powerpc_operands entries.
220 2007-04-20 Nathan Sidwell <nathan@codesourcery.com>
222 * config/tc-m68k.c (mcf5253_ctrl): New.
223 (mcf52223_ctrl): New.
224 (m68k_cpus): Add 5253, 52221, 52223.
226 * config/m68k-parse.h (RAMBAR_ALT): New.
227 * config/tc-m68k.c (mcf5206_ctrl, mcf5307_ctrl): New.
228 (mcf_ctrl, mcf5208_ctrl, mcf5210a_ctrl, mcf5213_ctrl, mcf52235_ctrl,
229 mcf5225_ctrl, mcf5235_ctrl, mcf5271_ctrl, mcf5275_ctrl,
230 mcf5282_ctrl, mcf5329_ctrl, mcf5373_ctrl, mcfv4e_ctrl,
231 mcf5475_ctrl, mcf5485_ctrl): Add RAMBAR synonym for
233 (mcf5272_ctrl): Add RAMBAR0, replace add RAMBAR with RAMBAR_ALT.
234 (m68k_cpus): Adjust 5206, 5206e & 5307 entries.
235 (m68k_ip) <Case J>: Detect when RAMBAR_ALT should be used. Add it
236 to control register mapping.
238 2007-04-20 Alan Modra <amodra@bigpond.net.au>
240 * messages.c (as_internal_value_out_of_range): Fix typo in
241 error message. Return after printing domain error.
242 * config/tc-ppc.c (ppc_insert_operand): Preserve low zero bits
243 in max when shifting right.
245 2007-04-20 Alan Modra <amodra@bigpond.net.au>
247 * messages.c (as_internal_value_out_of_range): Extend to report
248 errors for values with invalid low bits set.
249 * config/tc-ppc.c (ppc_setup_opcodes): Check powerpc_operands bitm
250 fields. Check that operands and opcode fields are disjoint.
251 (ppc_insert_operand): Check operands using mask rather than bit
252 count. Check low bits too. Handle PPC_OPERAND_PLUS1. Adjust
254 (md_apply_fix): Adjust for struct powerpc_operand change.
256 2007-04-19 Paul Brook <paul@codesourcery.com>
258 * config/tc-arm.c (md_assemble): Only allow 16-bit instructions on
259 Thumb-1. Add sanity check for bogus relaxations.
261 2007-04-19 Paul Brook <paul@codesourcery.com>
263 * config/tc-arm.c (insns): Allow rsb and rsbs on Thumb-1.
265 2007-04-19 Alan Modra <amodra@bigpond.net.au>
267 * Makefile.am: Run "make dep-am".
268 * Makefile.in: Regenerate.
270 2007-04-19 Nathan Froyd <froydnj@codesourcery.com>
272 * doc/c-ppc.texi (PowerPC-Opts): Document -me500, -me500x2, -mspe.
274 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
276 * doc/c-i386.texi; Document .ssse3, .sse4.1, .sse4.2 and .sse4.
278 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
280 * config/tc-i386.c (cpu_arch): Add .sse4.2 and .sse4.
281 (match_template): Handle operand size for crc32 in SSE4.2.
282 (process_suffix): Handle operand type for crc32 in SSE4.2.
283 (output_insn): Support SSE4.2.
285 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
287 * config/tc-i386.c (cpu_arch): Add .sse4.1.
288 (process_operands): Adjust implicit operand for blendvpd,
289 blendvps and pblendvb in SSE4.1.
290 (output_insn): Support SSE4.1.
292 2007-04-18 Paul Brook <paul@codesourcery.com>
294 * config/tc-arm.c (do_t_rsb): Use 16-bit encoding when possible.
296 2007-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
298 * config/tc-sh.c (sh_handle_align): Call as_bad_where instead
299 of as_warn_where for misaligned data.
301 2007-04-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
303 * config/tc-sh.c (align_test_frag_offset_fixed_p): Handle
306 2007-04-14 Steve Ellcey <sje@cup.hp.com>
308 * Makefile.am: Add ACLOCAL_AMFLAGS.
309 * Makefile.in: Regenerate.
311 2007-04-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
313 * config/tc-sh.c (align_test_frag_offset_fixed_p): New.
314 (sh_optimize_expr): Likewise.
315 * config/tc-sh.h (md_optimize_expr): Define.
316 (sh_optimize_expr): Prototype.
318 2007-04-06 Matt Thomas <matt@netbsd.org>
320 * config/tc-vax.c (vax_cons): Added to support %pcrel{8,16,32}(exp)
321 to emit pcrel relocations by DWARF2 in non-code sections. Borrowed
322 heavily from tc-sparc.c. (vax_cons_fix_new): Likewise.
324 2007-04-04 Kazu Hirata <kazu@codesourcery.com>
326 * config/tc-m68k.c (HAVE_LONG_BRANCH): Add fido_a.
328 2007-04-04 Paul Brook <paul@codesourcery.com>
330 * config/tc-arm.c (do_neon_ext): Enforce immediate range.
331 (insns): Use I15 for vext.
333 2007-04-04 Paul Brook <paul@codesourcery.com>
335 * configure.tgt: Loosen checks for arm uclinux eabi targets.
337 2007-04-02 Sterling Augustine <sterling@tensilica.com>
339 * config/tc-xtensa.c (xtensa_flush_pending_output): Check
340 outputting_stabs_line_debug.
342 2007-03-26 Anatoly Sokolov <aesok@post.ru>
344 * config/tc-avr.c (mcu_types): Add support for at90pwm1, at90usb82,
345 at90usb162, atmega325p, atmega329p, atmega3250p and atmega3290p
347 * doc/c-avr.texi: Document new devices.
349 2007-04-02 Richard Sandiford <richard@codesourcery.com>
351 * doc/as.texinfo: Add -mvxworks-pic to the list of MIPS options.
352 * doc/c-mips.texi (-KPIC, -mvxworks-pic): Document.
353 * config/tc-mips.c (md_show_usage): Mention -mvxworks-pic.
355 2007-03-30 Sterling Augustine <sterling@tensilica.com>
356 Bob Wilson <bob.wilson@acm.org>
358 * config/tc-xtensa.c (xtensa_move_labels): Remove loops_ok argument.
359 Do not check is_loop_target flag.
360 (xtensa_frob_label): Adjust calls to xtensa_move_labels.
361 (xg_assemble_vliw_tokens): Likewise. Also avoid calling
362 xtensa_move_labels for alignment of loop opcodes.
364 2007-03-30 H.J. Lu <hongjiu.lu@intel.com>
366 * config/tc-i386.c (process_suffix): Reindent a bit.
368 2007-03-30 Paul Brook <paul@codesourcery.com>
370 * config/tc-arm.c (encode_thumb2_ldmstm): New function.
371 (do_t_ldmstm): Generate 16-bit push/pop. Use encode_thumb2_ldmstm.
372 (do_t_push_pop): Use encode_thumb2_ldmstm.
374 2007-03-29 DJ Delorie <dj@redhat.com>
376 * config/tc-m32c.c (rl_for, relaxable): Protect argument.
377 (md_relax_table): Add entries for ADJNZ macros.
378 (M32C_Macros): Add ADJNZ macros.
379 (subtype_mappings): Add entries for ADJNZ macros.
380 (insn_to_subtype): Check for adjnz and sbjnz insns.
381 (md_estimate_size_before_relax): Pass insn to insn_to_subtype.
382 (md_convert_frag): Convert adjnz and sbjnz.
384 2007-03-29 Nick Clifton <nickc@redhat.com>
386 * itbl-ops.c (itbl_entry): Remove unnecessary and excessively long
388 * itbl-ops.h (enum e_processor): Initialise the e_nprocs field
389 using ITBL_NUMBER_OF_PROCESSORS.
390 * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
392 2007-03-28 H.J. Lu <hongjiu.lu@intel.com>
394 * config/tc-i386.c (build_modrm_byte): For instructions with 2
395 register operands, encode destination in i.rm.regmem if its
398 2007-03-28 Richard Sandiford <richard@codesourcery.com>
399 Phil Edwards <phil@codesourcery.com>
401 * doc/as.texinfo: Put the contents after the title page rather
402 than at the end of the document.
404 2007-03-27 Alan Modra <amodra@bigpond.net.au>
406 * NEWS: Mention ".reloc".
408 2007-03-26 Sterling Augustine <sterling@tensilica.com>
410 * config/tc-xtensa.c (xg_translate_idioms): Allow assembly idioms
411 in FLIX instructions.
413 2007-03-26 Julian Brown <julian@codesourcery.com>
415 * config/tc-arm.c (arm_it): Add immisfloat field.
416 (parse_qfloat_immediate): Disallow integer syntax for floating-point
417 immediates. Fix hex immediates, handle 0.0 and -0.0 specially.
418 (parse_neon_mov): Set immisfloat bit for operand if it parsed as a
420 (neon_cmode_for_move_imm): Reject non-float immediates for float
422 (neon_move_immediate): Pass immisfloat bit to neon_cmode_for_move_imm.
424 2007-03-26 Julian Brown <julian@codesourcery.com>
426 * doc/c-arm.texi: Add documentation for .dn/.qn directives.
428 2007-03-26 Alan Modra <amodra@bigpond.net.au>
430 * doc/as.texinfo (Reloc): Document.
431 * read.c (potable): Add "reloc".
432 (s_reloc): New function.
433 * write.c (reloc_list): New global var.
434 (resolve_reloc_expr_symbols): New function.
435 (write_object_file): Call it.
436 (write_relocs): Process reloc_list.
437 * write.h (struct reloc_list): New.
438 (reloc_list): Declare.
440 2007-03-24 Paul Brook <paul@codesourcery.com>
442 * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
444 2007-03-24 Paul Brook <paul@codesourcery.com>
445 Mark Shinwell <shinwell@codesourcery.com>
447 * config/tc-arm.c (operand_parse_code): Add OP_oRRw.
448 (parse_operands): Don't expect comma if first operand missing.
450 (do_srs): Encode register number, checking it is r13. Update comment.
451 (insns): Update SRS entries to take a register.
453 2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
455 * config/tc-i386.c (md_begin): Allow '.' in mnemonic.
457 2007-03-23 Mark Shinwell <shinwell@codesourcery.com>
459 * config/tc-arm.c (md_apply_fix): Turn CBZ instructions that
460 attempt to jump to the next instruction into NOPs.
462 2007-03-23 Alan Modra <amodra@bigpond.net.au>
464 * config/tc-spu.c: Don't include opcode/spu.h.
465 (md_assemble): Set tc_fix_data.insn_tag and arg_format.
466 (md_apply_fix): Adjust.
467 * config/tc-spu.h: Include opcode/spu.h.
468 (struct tc_fix_info): New.
469 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Adjust.
470 (TC_FORCE_RELOCATION): Define.
472 2007-03-22 Joseph Myers <joseph@codesourcery.com>
474 * doc/as.texinfo: Include VERSION_PACKAGE when reporting version.
476 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
478 * config/tc-i386.c (process_suffix): Check 0x90 instead of
479 xchg for xchg %rax,%rax.
481 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
483 * config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
484 and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
486 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
489 * config/tc-i386.c (match_template): Properly handle 64bit mode
492 2007-03-21 Anton Ertl <anton@mips.complang.tuw>
495 * config/tc-alpha.c (emit_ustX): Fix ustq code generation.
497 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
499 * Makefile.am: Run dep-am.
500 * Makefile.in: Regenerated.
502 * config/tc-i386.c: Don't include "opcodes/i386-opc.h".
504 * config/tc-i386.h: Include "opcodes/i386-opc.h".
505 (NOP_OPCODE): Removed.
506 (template): Likewise.
508 2007-03-21 Andreas Schwab <schwab@suse.de>
510 * config/tc-i386.h (NOP_OPCODE): Restore.
512 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
514 * config/tc-arm.c (do_mul): Don't warn about overlapping
515 Rd and Rm operands when assembling for v6 or above.
516 Correctly capitalize register names in the messages.
517 (do_mlas): Likewise. Delete spurious blank line.
519 2007-03-16 Kazu Hirata <kazu@codesourcery.com>
521 * config/tc-m68k.c (m68k_cpus): Add an entry for fidoa.
523 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
525 * config/tc-i386.c (md_begin): Use i386_regtab_size to scan
527 (parse_register): Use i386_regtab_size instead of ARRAY_SIZE
530 2007-03-15 Alexandre Oliva <aoliva@redhat.com>
533 * app.c (do_scrub_chars): PUT after setting states.
535 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
537 * Makefile.am: Run "make dep-am".
538 * Makefile.in: Regenerated.
540 * config/tc-i386.c: Include "opcodes/i386-opc.h" instead of
542 (md_begin): Check reg_name != NULL for the last entry in
545 * config/tc-i386.h: Move many entries to opcode/i386.h and
548 * configure.in (need_opcodes): Set true for i386.
549 * configure: Regenerated.
551 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
553 * Makefile.am (REPORT_BUGS_TO): Removed.
554 (INCLUDES): Remove -DREPORT_BUGS_TO.
555 * Makefile.in: Regenerated.
557 * configure.in (--with-bugurl): Removed.
558 * configure: Regenerated.
560 * doc/Makefile.am (as_TEXINFOS): Remove gasver.texi.
561 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
562 (TEXI2DVI): Likewise.
563 (gasver.texi): Removed.
564 (MOSTLYCLEANFILES): Remove gasver.texi.
565 (as.1): Don't depend on gasver.texi.
566 * doc/Makefile.in: Regenerated.
568 * doc/as.texi: Include bfdver.texi instead of gasver.texi.
570 2007-03-14 Daniel Jacobowitz <dan@codesourcery.com>
572 * config/tc-arm.c (arm_copy_symbol_attributes): New.
573 * config/tc-arm.h (arm_copy_symbol_attributes): Declare.
574 (TC_COPY_SYMBOL_ATTRIBUTES): Define.
575 * gas/symbols.c (copy_symbol_attributes): Use
576 TC_COPY_SYMBOL_ATTRIBUTES.
578 2007-03-14 Paul Brook <paul@codesourcery.com>
580 * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
582 2007-03-14 Alan Modra <amodra@bigpond.net.au>
585 * write.c (relax_segment): Insert extra alignment padding
586 to break infinite relax loop when given impossible
587 gcc_except_table assembly.
589 2007-03-12 H.J. Lu <hongjiu.lu@intel.com>
591 * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
593 (match_template): Likewise.
594 (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
596 * config/tc-i386.h (Opcode_D): New.
597 (Opcode_FloatR): Likewise.
598 (Opcode_FloatD): Likewise.
605 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
607 * app.c (do_scrub_chars): Recognize comments after # line "file".
608 * read.c (get_linefile_number): New.
609 (s_app_line): Accept ill-formed .linefile lines as comments.
611 2007-03-09 Alan Modra <amodra@bigpond.net.au>
613 * config/tc-i386.h (WORKING_DOT_WORD): Define.
615 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
617 * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
618 * as.h (new_logical_line_flags): New.
619 * input-scrub.c (new_logical_line): Turned into wrapper for...
620 (new_logical_line_flags): this. Handle flags.
621 * read.c (potable): Add linefile. Adjust appline argument.
622 (s_app_file): Fake .appfiles no more.
623 (s_app_line): For .linefile, accept file name and flags.
625 2007-03-08 Alan Modra <amodra@bigpond.net.au>
627 * symbols.c (symbol_relc_make_sym): Comment typo fixes.
629 2007-03-08 Alan Modra <amodra@bigpond.net.au>
631 * Makefile.am: Run "make dep-am".
632 * Makefile.in: Regenerate.
633 * po/POTFILES.in: Regenerate.
635 2007-03-07 Joseph Myers <joseph@codesourcery.com>
637 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
639 * doc/Makefile.am (gasver.texi): Define BUGURL.
640 * doc/as.texinfo: Use BUGURL.
641 * Makefile.in, configure, doc/Makefile.in: Regenerate.
643 2007-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
645 * config/tc-s390.c (md_parse_option): z9-ec option added.
647 2007-03-02 Paul Brook <paul@codesourcery.com>
649 * config/tc-arm.c (relax_immediate): Always return positive values.
650 (relaxed_symbol_addr): New function.
651 (relax_adr, relax_branch): Use it.
652 (arm_relax_frag): Pass strect argument. Adjust infinite loop check.
654 2007-03-01 Joseph Myers <joseph@codesourcery.com>
656 * as.c (parse_args): Update copyright date.
658 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
660 * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
662 2007-02-28 Nick Clifton <nickc@redhat.com>
665 * config/tc-d10v.c (do_assemble): Do not generate error messages,
666 just return -1 whenever a problem is encountered.
667 (md_assemble): If do_assemble returns -1 generate a non-fatal
668 error message and return.
671 * config/tc-msp430.c (line_separator_char): Change to '{'.
673 2007-02-27 Alan Modra <amodra@bigpond.net.au>
675 * config/tc-m68hc11.c (fixup24): Correct fixup size.
676 (build_jump_insn): Likewise.
677 (build_insn): Likewise.
678 (s_m68hc11_relax): Likewise.
680 2007-02-27 Alan Modra <amodra@bigpond.net.au>
682 * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
684 2007-02-25 Mark Shinwell <shinwell@codesourcery.com>
686 * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
688 2007-02-23 Alan Modra <amodra@bigpond.net.au>
690 * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
691 (md_assemble): Likewise.
693 2007-02-22 Alan Modra <amodra@bigpond.net.au>
695 * write.c (size_seg): Always clear SEC_RELOC here.
696 (install_reloc): New function, extracted from..
697 (write_relocs): ..here. Combine RELOC_EXPANSION_POSSIBLE code
698 with !RELOC_EXPANSION_POSSIBLE code. Don't add fr_offset when
699 testing frag size. Set SEC_RELOC here.
701 2007-02-21 Alan Modra <amodra@bigpond.net.au>
704 * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
706 2007-02-20 Thiemo Seufer <ths@mips.com>
708 * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
710 2007-02-20 Thiemo Seufer <ths@mips.com>
712 * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
714 2007-02-20 Thiemo Seufer <ths@mips.com>
715 Chao-Ying Fu <fu@mips.com>
717 * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
718 ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
719 (macro_build): Add case '2'.
720 (macro): Expand M_BALIGN to nop, packrl.ph or balign.
721 (validate_mips_insn): Add support for balign instruction.
722 (mips_ip): Handle DSP R2 instructions. Support balign instruction.
723 (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
724 md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
725 command line options.
726 (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
727 (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
728 * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
729 .set dspr2, .set nodspr2.
731 2007-02-20 Nathan Sidwell <nathan@codesourcery.com>
733 * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
734 (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
736 2007-02-18 Alan Modra <amodra@bigpond.net.au>
738 * write.c (TC_FX_SIZE_SLACK): Define.
739 (write_relocs): Reinstate check for fixup within frag.
740 * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
741 * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
742 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
743 * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
744 * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
746 2007-02-17 Mark Mitchell <mark@codesourcery.com>
747 Nathan Sidwell <nathan@codesourcery.com>
748 Vladimir Prus <vladimir@codesourcery.com
749 Joseph Myers <joseph@codesourcery.com>
751 * configure.in (--with-bugurl): New option.
752 * configure: Regenerate.
753 * dep-in.sed: Remove bin-bugs.h.
754 * Makefile.am (REPORT_BUGS_TO): Define.
755 (INCLUDES): Define REPORT_BUGS_TO.
756 (DEP_INCLUDES): Likewise.
757 ($(OBJS)): No longer depend on bin-bugs.h.
758 * Makefile.in: Regenerate.
759 * doc/Makefile.in: Regenerate.
760 * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
761 * as.h: Remove include of bin-bugs.h.
763 2007-02-17 Alan Modra <amodra@bigpond.net.au>
765 * write.c: White space fixes.
766 (fixup_segment): Move symbol_mri_common_p adjustments..
767 (write_relocs): ..and symbol_equated_reloc_p adjustments..
768 (adjust_reloc_syms): ..to here.
770 2007-02-16 Alan Modra <amodra@bigpond.net.au>
772 * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
773 xmalloc, memset. Don't bother assigning NULL to known zero mem.
774 (subseg_set_rest): Remove unnecessary cast.
775 * write.c: Include libbfd.h. Replace PTR with void * throughout.
776 Remove unnecessary forward declarations and casts.
777 (set_symtab): Delete extern bfd_alloc.
778 (fixup_segment): Move.
780 2007-02-15 Nathan Sidwell <nathan@codesourcery.com>
782 * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
783 * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
784 (mcf5475_ctrl, mcf5485_ctrl): New.
785 (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
786 (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
787 (init_table): Add asid, mmubar, adjust rombar0.
789 2007-02-14 Alan Modra <amodra@bigpond.net.au>
791 * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
792 * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
793 (process_operands): Move old Seg2ShortForm and Seg3ShortForm
794 code, and test for these insns using a combination of
795 opcode_modifier and operand_types.
797 2007-02-07 Paul Brook <paul@codesourcery.com>
799 * configure.tgt: Add arm*-*-uclinux-*eabi.
801 2007-02-05 Dave Brolley <brolley@redhat.com>
802 Richard Sandiford <rsandifo@redhat.com>
803 DJ Delorie <dj@redhat.com>
804 Stan Cox <scox@redhat.com>
805 Jim Blandy <jimb@redhat.com>
806 Nick Clifton <nickc@redhat.com>
807 Jim Wilson <wilson@redhat.com>
808 Frank Ch. Eigler <fche@redhat.com>
809 Graydon Hoare <graydon@redhat.com>
810 Ben Elliston <bje@redhat.com>
811 John Healy <jhealy@redhat.com>
812 Richard Henderson <rth@redhat.com>
814 * Makefile.am (CPU_TYPES): Add mep.
815 (TARGET_CPU_CFILES): Add tc-mep.c.
816 (TARGET_CPU_HFILES): Add tc-mep.h.
817 (DEPTC_mep_elf): New variable.
818 (DEPTC_mep_coff): Likewise.
819 (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
820 * configure.in: Support mep.
821 * configure.tgt: Likewise.
822 * config/tc-mep.c: New file.
823 * config/obj-elf.c: New file.
824 * config/tc-mep.c: New file.
825 * config/tc-mep.h: New file.
826 * testsuite/gas/mep: New testsuite with content.
827 * Makefile.in: Regenerate.
828 * configure: Regenerate.
830 2007-02-05 Dave Brolley <brolley@redhat.com>
832 * cgen.c (gas_cgen_install_complex_reloc): Removed.
833 (complex_reloc_installation_howto): Removed.
835 2007-02-05 Dave Brolley <brolley@redhat.com>
836 Graydon Hoare <graydon@redhat.com>
837 DJ Delorie <dj@redhat.com>
838 Catherine Moore <clm@redhat.com>
839 Michael Chastain <chastain@redhat.com>
840 Frank Ch. Eigler <fche@redhat.com>
842 * symbols.c (use_complex_relocs_for): New, to decide
843 when to use complex relocs. Add signed RELC support.
844 (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
845 encode expression symbols as mangled complex relocation symbols (when
846 compiled with -DOBJ_COMPLEX_RELOC).
847 (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
848 * cgen.c (gas_cgen_md_apply_fix3): Only set signed_p if RELC. Call
849 encode_addend with new args. Modify to get start, length from
850 ifield whenever it is set. Also change condition on which
851 self-describing relocs are encoded. Add hook into
852 gas_cgen_encode_addend.
853 (queue_fixup_recursively): Add signed RELC support. Change from masked
854 expr to trunc flag. Restore assignment of sub-field value to
855 temporary in fixups array. Reflect changed meaning of last arg to
856 queue_fixup_recursively.
857 (fixup): Add cgen_maybe_multi_ifield member.
858 (make_right_shifted_expr): New function.
859 (queue_fixup): Change to recursive function that fragments
860 fixups if operand has a multi-ifield.
861 (gas_cgen_parse_operand): Add RELC code to wrap expressions in
862 symbols, call weak_operand_overflow_check, and fragment call
863 queue_fixup with operand fields.
864 (gas_cgen_finish_insn) Modify to manage ifield pointer.
865 (weak_operand_overflow_check): New function to try to select
867 (gas_cgen_encode_addend): New function for relc.
868 (gas_cgen_install_complex_reloc): Likewise.
869 (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
870 * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
871 cgen_maybe_multi_ifield field to fx_cgen substructure.
872 * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
873 * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
875 2007-02-03 DJ Delorie <dj@delorie.com>
877 * config/tc-m32c.c (m32c_cons_fix_new): New. Added to support 3
879 * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
880 (m32c_cons_fix_new): Prototype.
882 2007-02-02 Bob Wilson <bob.wilson@acm.org>
884 * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
885 (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
887 2007-02-02 Bob Wilson <bob.wilson@acm.org>
889 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
890 (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
891 (map_suffix_reloc_to_operator): New.
892 (map_operator_to_reloc): New.
893 (expression_maybe_register): Fix incorrect test of return value from
894 xtensa_elf_suffix. Rearrange to use map_suffix_reloc_to_operator.
895 (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
897 2007-02-02 Bob Wilson <bob.wilson@acm.org>
899 * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
900 (tinsn_get_tok): Delete prototype.
901 * config/tc-xtensa.c (tinsn_get_tok): Delete.
903 2007-02-02 Bob Wilson <bob.wilson@acm.org>
905 * config/xtensa-relax.h (struct build_instr): Delete id field.
906 * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
908 (append_literal_op, append_label_op): Remove litnum/labnum arguments;
909 set op_data fields to zero.
910 (parse_id_constant): Delete.
911 (build_transition): Remove code to handle numbered literals and labels.
913 2007-02-02 Bob Wilson <bob.wilson@acm.org>
915 * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
916 (build_transition_table): Likewise.
918 2007-02-01 Bob Wilson <bob.wilson@acm.org>
920 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
922 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
924 2007-02-02 Alan Modra <amodra@bigpond.net.au>
926 * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
927 (struct fix <fx_plt>): Rename to tcbit2.
928 * write.c (fix_new_internal): Adjust.
929 (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
930 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
931 * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
932 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
933 * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
934 * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
935 * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
936 * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
937 * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
938 * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
939 * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
940 Instead, compare fx_r_type.
941 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
942 fx_tcbit in place of fx_plt.
943 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
944 * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
947 2007-01-30 Nick Clifton <nickc@redhat.com>
949 * as.c (main): Mark symbols created via the --defsym command line
950 option as volatile so that they can be overridden later on by a
951 .set directive. This maintains compatibility with the behaviour
952 of earlier versions of the assembler.
953 * doc/as.texinfo (--defsym): Document that the defined symbol's
954 value can be overridden via a .set directive.
956 2007-01-28 H.J. Lu <hongjiu.lu@intel.com>
958 * config/tc-i386.c (swap_imm_operands): Renamed to ...
959 (swap_2_operands): This. Take 2 ints.
960 (md_assemble): Updated.
961 (swap_operands): Call swap_2_operands to swap 2 operands.
963 2007-01-24 DJ Delorie <dj@redhat.com>
965 * config/tc-m32c.c (md_pseudo_table): Add .3byte.
967 2007-01-22 Nick Clifton <nickc@redhat.com>
970 * tc-score.c: Remove unnecessary uses of _().
971 Make the err_msg[] a file level local array in order to save
973 Remove unnecessary sprintf()s.
975 2007-01-18 Mei Ligang <ligang@sunnorth.com.cn>
978 * config/tc-score.c : Using _() for const string.
979 Do not assign inst.error with a local string pointer.
980 (md_section_align): Pad section.
982 2007-01-13 H.J. Lu <hongjiu.lu@intel.com>
984 * config/tc-i386.c (build_modrm_byte): Check number of operands
985 when procssing memory/register operand.
987 2007-01-12 Nick Clifton <nickc@redhat.com>
990 * macro.c (expand_irp): Do not ignore spaces inside quoted
993 2007-01-12 Alan Modra <amodra@bigpond.net.au>
995 * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
996 * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
997 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
998 (TC_FORCE_RELOCATION): Define.
999 (TC_FORCE_RELOCATION_LOCAL): Define.
1000 * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
1002 2007-01-12 Alan Modra <amodra@bigpond.net.au>
1004 * input-file.c (input_file_open): Check fgets return.
1006 2007-01-11 Paul Brook <paul@codesourcery.com>
1008 * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
1010 2007-01-11 Nick Clifton <nickc@redhat.com>
1013 * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
1016 * config/tc-mcore.c (md_number_to_chars): Use
1017 number_to_chars_{big|little}endian.
1019 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
1021 * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
1022 architecture by itself.
1023 (m68k_ip): Don't issue a warning for tbl instructions on fido.
1024 (m68k_elf_final_processing): Treat Fido as an architecture by
1027 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
1029 * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
1031 2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
1033 * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
1034 depending on allow_naked_reg.
1036 2007-01-04 Paul Brook <paul@codesourcery.com>
1038 * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
1040 2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
1043 * config/tc-i386.c (register_prefix): New.
1044 (set_intel_syntax): Set set_intel_syntax to "" if register
1045 prefix isn't needed.
1046 (check_byte_reg): Use register_prefix for error message.
1047 (check_long_reg): Likewise.
1048 (check_qword_reg): Likewise.
1049 (check_word_reg): Likewise.
1051 2006-01-04 Julian Brown <julian@codesourcery.com>
1053 * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
1054 (do_neon_qshl_imm): Likewise.
1055 (do_neon_rshl): New function. Handle rounding variants of
1056 v{q}shl-by-register.
1057 (insns): Use do_neon_rshl for vrshl, vqrshl.
1059 2007-01-04 Paul Brook <paul@codesourcery.com>
1061 * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
1064 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
1066 * config/tc-i386.c (swap_operands): Remove branches.
1068 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
1070 * config/tc-i386.c: Update copyright year.
1071 * config/tc-i386.h: Likewise.
1073 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
1075 * config/tc-i386.c (smallest_imm_type): Return unsigned int
1078 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
1080 * config/tc-i386.c: Convert to ISO C90 formatting
1081 * config/tc-i386.h: Likewise.
1083 2007-01-03 David Daney <ddaney@avtrex.com>
1085 * config/tc-mips.c (md_show_usage): Clean up -mno-shared
1088 For older changes see ChangeLog-2006
1094 version-control: never