1 2007-04-19 Alan Modra <amodra@bigpond.net.au>
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerate.
6 2007-04-19 Nathan Froyd <froydnj@codesourcery.com>
8 * doc/c-ppc.texi (PowerPC-Opts): Document -me500, -me500x2, -mspe.
10 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
12 * doc/c-i386.texi; Document .ssse3, .sse4.1, .sse4.2 and .sse4.
14 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
16 * config/tc-i386.c (cpu_arch): Add .sse4.2 and .sse4.
17 (match_template): Handle operand size for crc32 in SSE4.2.
18 (process_suffix): Handle operand type for crc32 in SSE4.2.
19 (output_insn): Support SSE4.2.
21 2007-04-18 H.J. Lu <hongjiu.lu@intel.com>
23 * config/tc-i386.c (cpu_arch): Add .sse4.1.
24 (process_operands): Adjust implicit operand for blendvpd,
25 blendvps and pblendvb in SSE4.1.
26 (output_insn): Support SSE4.1.
28 2007-04-18 Paul Brook <paul@codesourcery.com>
30 * config/tc-arm.c (do_t_rsb): Use 16-bit encoding when possible.
32 2007-04-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
34 * config/tc-sh.c (sh_handle_align): Call as_bad_where instead
35 of as_warn_where for misaligned data.
37 2007-04-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
39 * config/tc-sh.c (align_test_frag_offset_fixed_p): Handle
42 2007-04-14 Steve Ellcey <sje@cup.hp.com>
44 * Makefile.am: Add ACLOCAL_AMFLAGS.
45 * Makefile.in: Regenerate.
47 2007-04-14 Kaz Kojima <kkojima@rr.iij4u.or.jp>
49 * config/tc-sh.c (align_test_frag_offset_fixed_p): New.
50 (sh_optimize_expr): Likewise.
51 * config/tc-sh.h (md_optimize_expr): Define.
52 (sh_optimize_expr): Prototype.
54 2007-04-06 Matt Thomas <matt@netbsd.org>
56 * config/tc-vax.c (vax_cons): Added to support %pcrel{8,16,32}(exp)
57 to emit pcrel relocations by DWARF2 in non-code sections. Borrowed
58 heavily from tc-sparc.c. (vax_cons_fix_new): Likewise.
60 2007-04-04 Kazu Hirata <kazu@codesourcery.com>
62 * config/tc-m68k.c (HAVE_LONG_BRANCH): Add fido_a.
64 2007-04-04 Paul Brook <paul@codesourcery.com>
66 * config/tc-arm.c (do_neon_ext): Enforce immediate range.
67 (insns): Use I15 for vext.
69 2007-04-04 Paul Brook <paul@codesourcery.com>
71 * configure.tgt: Loosen checks for arm uclinux eabi targets.
73 2007-04-02 Sterling Augustine <sterling@tensilica.com>
75 * config/tc-xtensa.c (xtensa_flush_pending_output): Check
76 outputting_stabs_line_debug.
78 2007-03-26 Anatoly Sokolov <aesok@post.ru>
80 * config/tc-avr.c (mcu_types): Add support for at90pwm1, at90usb82,
81 at90usb162, atmega325p, atmega329p, atmega3250p and atmega3290p
83 * doc/c-avr.texi: Document new devices.
85 2007-04-02 Richard Sandiford <richard@codesourcery.com>
87 * doc/as.texinfo: Add -mvxworks-pic to the list of MIPS options.
88 * doc/c-mips.texi (-KPIC, -mvxworks-pic): Document.
89 * config/tc-mips.c (md_show_usage): Mention -mvxworks-pic.
91 2007-03-30 Sterling Augustine <sterling@tensilica.com>
92 Bob Wilson <bob.wilson@acm.org>
94 * config/tc-xtensa.c (xtensa_move_labels): Remove loops_ok argument.
95 Do not check is_loop_target flag.
96 (xtensa_frob_label): Adjust calls to xtensa_move_labels.
97 (xg_assemble_vliw_tokens): Likewise. Also avoid calling
98 xtensa_move_labels for alignment of loop opcodes.
100 2007-03-30 H.J. Lu <hongjiu.lu@intel.com>
102 * config/tc-i386.c (process_suffix): Reindent a bit.
104 2007-03-30 Paul Brook <paul@codesourcery.com>
106 * config/tc-arm.c (encode_thumb2_ldmstm): New function.
107 (do_t_ldmstm): Generate 16-bit push/pop. Use encode_thumb2_ldmstm.
108 (do_t_push_pop): Use encode_thumb2_ldmstm.
110 2007-03-29 DJ Delorie <dj@redhat.com>
112 * config/tc-m32c.c (rl_for, relaxable): Protect argument.
113 (md_relax_table): Add entries for ADJNZ macros.
114 (M32C_Macros): Add ADJNZ macros.
115 (subtype_mappings): Add entries for ADJNZ macros.
116 (insn_to_subtype): Check for adjnz and sbjnz insns.
117 (md_estimate_size_before_relax): Pass insn to insn_to_subtype.
118 (md_convert_frag): Convert adjnz and sbjnz.
120 2007-03-29 Nick Clifton <nickc@redhat.com>
122 * itbl-ops.c (itbl_entry): Remove unnecessary and excessively long
124 * itbl-ops.h (enum e_processor): Initialise the e_nprocs field
125 using ITBL_NUMBER_OF_PROCESSORS.
126 * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
128 2007-03-28 H.J. Lu <hongjiu.lu@intel.com>
130 * config/tc-i386.c (build_modrm_byte): For instructions with 2
131 register operands, encode destination in i.rm.regmem if its
134 2007-03-28 Richard Sandiford <richard@codesourcery.com>
135 Phil Edwards <phil@codesourcery.com>
137 * doc/as.texinfo: Put the contents after the title page rather
138 than at the end of the document.
140 2007-03-27 Alan Modra <amodra@bigpond.net.au>
142 * NEWS: Mention ".reloc".
144 2007-03-26 Sterling Augustine <sterling@tensilica.com>
146 * config/tc-xtensa.c (xg_translate_idioms): Allow assembly idioms
147 in FLIX instructions.
149 2007-03-26 Julian Brown <julian@codesourcery.com>
151 * config/tc-arm.c (arm_it): Add immisfloat field.
152 (parse_qfloat_immediate): Disallow integer syntax for floating-point
153 immediates. Fix hex immediates, handle 0.0 and -0.0 specially.
154 (parse_neon_mov): Set immisfloat bit for operand if it parsed as a
156 (neon_cmode_for_move_imm): Reject non-float immediates for float
158 (neon_move_immediate): Pass immisfloat bit to neon_cmode_for_move_imm.
160 2007-03-26 Julian Brown <julian@codesourcery.com>
162 * doc/c-arm.texi: Add documentation for .dn/.qn directives.
164 2007-03-26 Alan Modra <amodra@bigpond.net.au>
166 * doc/as.texinfo (Reloc): Document.
167 * read.c (potable): Add "reloc".
168 (s_reloc): New function.
169 * write.c (reloc_list): New global var.
170 (resolve_reloc_expr_symbols): New function.
171 (write_object_file): Call it.
172 (write_relocs): Process reloc_list.
173 * write.h (struct reloc_list): New.
174 (reloc_list): Declare.
176 2007-03-24 Paul Brook <paul@codesourcery.com>
178 * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
180 2007-03-24 Paul Brook <paul@codesourcery.com>
181 Mark Shinwell <shinwell@codesourcery.com>
183 * config/tc-arm.c (operand_parse_code): Add OP_oRRw.
184 (parse_operands): Don't expect comma if first operand missing.
186 (do_srs): Encode register number, checking it is r13. Update comment.
187 (insns): Update SRS entries to take a register.
189 2007-03-23 H.J. Lu <hongjiu.lu@intel.com>
191 * config/tc-i386.c (md_begin): Allow '.' in mnemonic.
193 2007-03-23 Mark Shinwell <shinwell@codesourcery.com>
195 * config/tc-arm.c (md_apply_fix): Turn CBZ instructions that
196 attempt to jump to the next instruction into NOPs.
198 2007-03-23 Alan Modra <amodra@bigpond.net.au>
200 * config/tc-spu.c: Don't include opcode/spu.h.
201 (md_assemble): Set tc_fix_data.insn_tag and arg_format.
202 (md_apply_fix): Adjust.
203 * config/tc-spu.h: Include opcode/spu.h.
204 (struct tc_fix_info): New.
205 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Adjust.
206 (TC_FORCE_RELOCATION): Define.
208 2007-03-22 Joseph Myers <joseph@codesourcery.com>
210 * doc/as.texinfo: Include VERSION_PACKAGE when reporting version.
212 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
214 * config/tc-i386.c (process_suffix): Check 0x90 instead of
215 xchg for xchg %rax,%rax.
217 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
219 * config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
220 and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
222 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
225 * config/tc-i386.c (match_template): Properly handle 64bit mode
228 2007-03-21 Anton Ertl <anton@mips.complang.tuw>
231 * config/tc-alpha.c (emit_ustX): Fix ustq code generation.
233 2007-03-21 H.J. Lu <hongjiu.lu@intel.com>
235 * Makefile.am: Run dep-am.
236 * Makefile.in: Regenerated.
238 * config/tc-i386.c: Don't include "opcodes/i386-opc.h".
240 * config/tc-i386.h: Include "opcodes/i386-opc.h".
241 (NOP_OPCODE): Removed.
242 (template): Likewise.
244 2007-03-21 Andreas Schwab <schwab@suse.de>
246 * config/tc-i386.h (NOP_OPCODE): Restore.
248 2007-03-18 Mark Shinwell <shinwell@codesourcery.com>
250 * config/tc-arm.c (do_mul): Don't warn about overlapping
251 Rd and Rm operands when assembling for v6 or above.
252 Correctly capitalize register names in the messages.
253 (do_mlas): Likewise. Delete spurious blank line.
255 2007-03-16 Kazu Hirata <kazu@codesourcery.com>
257 * config/tc-m68k.c (m68k_cpus): Add an entry for fidoa.
259 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
261 * config/tc-i386.c (md_begin): Use i386_regtab_size to scan
263 (parse_register): Use i386_regtab_size instead of ARRAY_SIZE
266 2007-03-15 Alexandre Oliva <aoliva@redhat.com>
269 * app.c (do_scrub_chars): PUT after setting states.
271 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
273 * Makefile.am: Run "make dep-am".
274 * Makefile.in: Regenerated.
276 * config/tc-i386.c: Include "opcodes/i386-opc.h" instead of
278 (md_begin): Check reg_name != NULL for the last entry in
281 * config/tc-i386.h: Move many entries to opcode/i386.h and
284 * configure.in (need_opcodes): Set true for i386.
285 * configure: Regenerated.
287 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
289 * Makefile.am (REPORT_BUGS_TO): Removed.
290 (INCLUDES): Remove -DREPORT_BUGS_TO.
291 * Makefile.in: Regenerated.
293 * configure.in (--with-bugurl): Removed.
294 * configure: Regenerated.
296 * doc/Makefile.am (as_TEXINFOS): Remove gasver.texi.
297 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
298 (TEXI2DVI): Likewise.
299 (gasver.texi): Removed.
300 (MOSTLYCLEANFILES): Remove gasver.texi.
301 (as.1): Don't depend on gasver.texi.
302 * doc/Makefile.in: Regenerated.
304 * doc/as.texi: Include bfdver.texi instead of gasver.texi.
306 2007-03-14 Daniel Jacobowitz <dan@codesourcery.com>
308 * config/tc-arm.c (arm_copy_symbol_attributes): New.
309 * config/tc-arm.h (arm_copy_symbol_attributes): Declare.
310 (TC_COPY_SYMBOL_ATTRIBUTES): Define.
311 * gas/symbols.c (copy_symbol_attributes): Use
312 TC_COPY_SYMBOL_ATTRIBUTES.
314 2007-03-14 Paul Brook <paul@codesourcery.com>
316 * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
318 2007-03-14 Alan Modra <amodra@bigpond.net.au>
321 * write.c (relax_segment): Insert extra alignment padding
322 to break infinite relax loop when given impossible
323 gcc_except_table assembly.
325 2007-03-12 H.J. Lu <hongjiu.lu@intel.com>
327 * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
329 (match_template): Likewise.
330 (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
332 * config/tc-i386.h (Opcode_D): New.
333 (Opcode_FloatR): Likewise.
334 (Opcode_FloatD): Likewise.
341 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
343 * app.c (do_scrub_chars): Recognize comments after # line "file".
344 * read.c (get_linefile_number): New.
345 (s_app_line): Accept ill-formed .linefile lines as comments.
347 2007-03-09 Alan Modra <amodra@bigpond.net.au>
349 * config/tc-i386.h (WORKING_DOT_WORD): Define.
351 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
353 * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
354 * as.h (new_logical_line_flags): New.
355 * input-scrub.c (new_logical_line): Turned into wrapper for...
356 (new_logical_line_flags): this. Handle flags.
357 * read.c (potable): Add linefile. Adjust appline argument.
358 (s_app_file): Fake .appfiles no more.
359 (s_app_line): For .linefile, accept file name and flags.
361 2007-03-08 Alan Modra <amodra@bigpond.net.au>
363 * symbols.c (symbol_relc_make_sym): Comment typo fixes.
365 2007-03-08 Alan Modra <amodra@bigpond.net.au>
367 * Makefile.am: Run "make dep-am".
368 * Makefile.in: Regenerate.
369 * po/POTFILES.in: Regenerate.
371 2007-03-07 Joseph Myers <joseph@codesourcery.com>
373 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
375 * doc/Makefile.am (gasver.texi): Define BUGURL.
376 * doc/as.texinfo: Use BUGURL.
377 * Makefile.in, configure, doc/Makefile.in: Regenerate.
379 2007-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
381 * config/tc-s390.c (md_parse_option): z9-ec option added.
383 2007-03-02 Paul Brook <paul@codesourcery.com>
385 * config/tc-arm.c (relax_immediate): Always return positive values.
386 (relaxed_symbol_addr): New function.
387 (relax_adr, relax_branch): Use it.
388 (arm_relax_frag): Pass strect argument. Adjust infinite loop check.
390 2007-03-01 Joseph Myers <joseph@codesourcery.com>
392 * as.c (parse_args): Update copyright date.
394 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
396 * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
398 2007-02-28 Nick Clifton <nickc@redhat.com>
401 * config/tc-d10v.c (do_assemble): Do not generate error messages,
402 just return -1 whenever a problem is encountered.
403 (md_assemble): If do_assemble returns -1 generate a non-fatal
404 error message and return.
407 * config/tc-msp430.c (line_separator_char): Change to '{'.
409 2007-02-27 Alan Modra <amodra@bigpond.net.au>
411 * config/tc-m68hc11.c (fixup24): Correct fixup size.
412 (build_jump_insn): Likewise.
413 (build_insn): Likewise.
414 (s_m68hc11_relax): Likewise.
416 2007-02-27 Alan Modra <amodra@bigpond.net.au>
418 * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
420 2007-02-25 Mark Shinwell <shinwell@codesourcery.com>
422 * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
424 2007-02-23 Alan Modra <amodra@bigpond.net.au>
426 * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
427 (md_assemble): Likewise.
429 2007-02-22 Alan Modra <amodra@bigpond.net.au>
431 * write.c (size_seg): Always clear SEC_RELOC here.
432 (install_reloc): New function, extracted from..
433 (write_relocs): ..here. Combine RELOC_EXPANSION_POSSIBLE code
434 with !RELOC_EXPANSION_POSSIBLE code. Don't add fr_offset when
435 testing frag size. Set SEC_RELOC here.
437 2007-02-21 Alan Modra <amodra@bigpond.net.au>
440 * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
442 2007-02-20 Thiemo Seufer <ths@mips.com>
444 * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
446 2007-02-20 Thiemo Seufer <ths@mips.com>
448 * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
450 2007-02-20 Thiemo Seufer <ths@mips.com>
451 Chao-Ying Fu <fu@mips.com>
453 * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
454 ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
455 (macro_build): Add case '2'.
456 (macro): Expand M_BALIGN to nop, packrl.ph or balign.
457 (validate_mips_insn): Add support for balign instruction.
458 (mips_ip): Handle DSP R2 instructions. Support balign instruction.
459 (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
460 md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
461 command line options.
462 (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
463 (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
464 * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
465 .set dspr2, .set nodspr2.
467 2007-02-20 Nathan Sidwell <nathan@codesourcery.com>
469 * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
470 (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
472 2007-02-18 Alan Modra <amodra@bigpond.net.au>
474 * write.c (TC_FX_SIZE_SLACK): Define.
475 (write_relocs): Reinstate check for fixup within frag.
476 * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
477 * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
478 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
479 * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
480 * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
482 2007-02-17 Mark Mitchell <mark@codesourcery.com>
483 Nathan Sidwell <nathan@codesourcery.com>
484 Vladimir Prus <vladimir@codesourcery.com
485 Joseph Myers <joseph@codesourcery.com>
487 * configure.in (--with-bugurl): New option.
488 * configure: Regenerate.
489 * dep-in.sed: Remove bin-bugs.h.
490 * Makefile.am (REPORT_BUGS_TO): Define.
491 (INCLUDES): Define REPORT_BUGS_TO.
492 (DEP_INCLUDES): Likewise.
493 ($(OBJS)): No longer depend on bin-bugs.h.
494 * Makefile.in: Regenerate.
495 * doc/Makefile.in: Regenerate.
496 * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
497 * as.h: Remove include of bin-bugs.h.
499 2007-02-17 Alan Modra <amodra@bigpond.net.au>
501 * write.c: White space fixes.
502 (fixup_segment): Move symbol_mri_common_p adjustments..
503 (write_relocs): ..and symbol_equated_reloc_p adjustments..
504 (adjust_reloc_syms): ..to here.
506 2007-02-16 Alan Modra <amodra@bigpond.net.au>
508 * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
509 xmalloc, memset. Don't bother assigning NULL to known zero mem.
510 (subseg_set_rest): Remove unnecessary cast.
511 * write.c: Include libbfd.h. Replace PTR with void * throughout.
512 Remove unnecessary forward declarations and casts.
513 (set_symtab): Delete extern bfd_alloc.
514 (fixup_segment): Move.
516 2007-02-15 Nathan Sidwell <nathan@codesourcery.com>
518 * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
519 * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
520 (mcf5475_ctrl, mcf5485_ctrl): New.
521 (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
522 (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
523 (init_table): Add asid, mmubar, adjust rombar0.
525 2007-02-14 Alan Modra <amodra@bigpond.net.au>
527 * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
528 * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
529 (process_operands): Move old Seg2ShortForm and Seg3ShortForm
530 code, and test for these insns using a combination of
531 opcode_modifier and operand_types.
533 2007-02-07 Paul Brook <paul@codesourcery.com>
535 * configure.tgt: Add arm*-*-uclinux-*eabi.
537 2007-02-05 Dave Brolley <brolley@redhat.com>
538 Richard Sandiford <rsandifo@redhat.com>
539 DJ Delorie <dj@redhat.com>
540 Stan Cox <scox@redhat.com>
541 Jim Blandy <jimb@redhat.com>
542 Nick Clifton <nickc@redhat.com>
543 Jim Wilson <wilson@redhat.com>
544 Frank Ch. Eigler <fche@redhat.com>
545 Graydon Hoare <graydon@redhat.com>
546 Ben Elliston <bje@redhat.com>
547 John Healy <jhealy@redhat.com>
548 Richard Henderson <rth@redhat.com>
550 * Makefile.am (CPU_TYPES): Add mep.
551 (TARGET_CPU_CFILES): Add tc-mep.c.
552 (TARGET_CPU_HFILES): Add tc-mep.h.
553 (DEPTC_mep_elf): New variable.
554 (DEPTC_mep_coff): Likewise.
555 (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
556 * configure.in: Support mep.
557 * configure.tgt: Likewise.
558 * config/tc-mep.c: New file.
559 * config/obj-elf.c: New file.
560 * config/tc-mep.c: New file.
561 * config/tc-mep.h: New file.
562 * testsuite/gas/mep: New testsuite with content.
563 * Makefile.in: Regenerate.
564 * configure: Regenerate.
566 2007-02-05 Dave Brolley <brolley@redhat.com>
568 * cgen.c (gas_cgen_install_complex_reloc): Removed.
569 (complex_reloc_installation_howto): Removed.
571 2007-02-05 Dave Brolley <brolley@redhat.com>
572 Graydon Hoare <graydon@redhat.com>
573 DJ Delorie <dj@redhat.com>
574 Catherine Moore <clm@redhat.com>
575 Michael Chastain <chastain@redhat.com>
576 Frank Ch. Eigler <fche@redhat.com>
578 * symbols.c (use_complex_relocs_for): New, to decide
579 when to use complex relocs. Add signed RELC support.
580 (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
581 encode expression symbols as mangled complex relocation symbols (when
582 compiled with -DOBJ_COMPLEX_RELOC).
583 (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
584 * cgen.c (gas_cgen_md_apply_fix3): Only set signed_p if RELC. Call
585 encode_addend with new args. Modify to get start, length from
586 ifield whenever it is set. Also change condition on which
587 self-describing relocs are encoded. Add hook into
588 gas_cgen_encode_addend.
589 (queue_fixup_recursively): Add signed RELC support. Change from masked
590 expr to trunc flag. Restore assignment of sub-field value to
591 temporary in fixups array. Reflect changed meaning of last arg to
592 queue_fixup_recursively.
593 (fixup): Add cgen_maybe_multi_ifield member.
594 (make_right_shifted_expr): New function.
595 (queue_fixup): Change to recursive function that fragments
596 fixups if operand has a multi-ifield.
597 (gas_cgen_parse_operand): Add RELC code to wrap expressions in
598 symbols, call weak_operand_overflow_check, and fragment call
599 queue_fixup with operand fields.
600 (gas_cgen_finish_insn) Modify to manage ifield pointer.
601 (weak_operand_overflow_check): New function to try to select
603 (gas_cgen_encode_addend): New function for relc.
604 (gas_cgen_install_complex_reloc): Likewise.
605 (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
606 * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
607 cgen_maybe_multi_ifield field to fx_cgen substructure.
608 * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
609 * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
611 2007-02-03 DJ Delorie <dj@delorie.com>
613 * config/tc-m32c.c (m32c_cons_fix_new): New. Added to support 3
615 * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
616 (m32c_cons_fix_new): Prototype.
618 2007-02-02 Bob Wilson <bob.wilson@acm.org>
620 * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
621 (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
623 2007-02-02 Bob Wilson <bob.wilson@acm.org>
625 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
626 (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
627 (map_suffix_reloc_to_operator): New.
628 (map_operator_to_reloc): New.
629 (expression_maybe_register): Fix incorrect test of return value from
630 xtensa_elf_suffix. Rearrange to use map_suffix_reloc_to_operator.
631 (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
633 2007-02-02 Bob Wilson <bob.wilson@acm.org>
635 * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
636 (tinsn_get_tok): Delete prototype.
637 * config/tc-xtensa.c (tinsn_get_tok): Delete.
639 2007-02-02 Bob Wilson <bob.wilson@acm.org>
641 * config/xtensa-relax.h (struct build_instr): Delete id field.
642 * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
644 (append_literal_op, append_label_op): Remove litnum/labnum arguments;
645 set op_data fields to zero.
646 (parse_id_constant): Delete.
647 (build_transition): Remove code to handle numbered literals and labels.
649 2007-02-02 Bob Wilson <bob.wilson@acm.org>
651 * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
652 (build_transition_table): Likewise.
654 2007-02-01 Bob Wilson <bob.wilson@acm.org>
656 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
658 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
660 2007-02-02 Alan Modra <amodra@bigpond.net.au>
662 * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
663 (struct fix <fx_plt>): Rename to tcbit2.
664 * write.c (fix_new_internal): Adjust.
665 (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
666 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
667 * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
668 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
669 * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
670 * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
671 * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
672 * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
673 * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
674 * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
675 * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
676 Instead, compare fx_r_type.
677 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
678 fx_tcbit in place of fx_plt.
679 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
680 * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
683 2007-01-30 Nick Clifton <nickc@redhat.com>
685 * as.c (main): Mark symbols created via the --defsym command line
686 option as volatile so that they can be overridden later on by a
687 .set directive. This maintains compatibility with the behaviour
688 of earlier versions of the assembler.
689 * doc/as.texinfo (--defsym): Document that the defined symbol's
690 value can be overridden via a .set directive.
692 2007-01-28 H.J. Lu <hongjiu.lu@intel.com>
694 * config/tc-i386.c (swap_imm_operands): Renamed to ...
695 (swap_2_operands): This. Take 2 ints.
696 (md_assemble): Updated.
697 (swap_operands): Call swap_2_operands to swap 2 operands.
699 2007-01-24 DJ Delorie <dj@redhat.com>
701 * config/tc-m32c.c (md_pseudo_table): Add .3byte.
703 2007-01-22 Nick Clifton <nickc@redhat.com>
706 * tc-score.c: Remove unnecessary uses of _().
707 Make the err_msg[] a file level local array in order to save
709 Remove unnecessary sprintf()s.
711 2007-01-18 Mei Ligang <ligang@sunnorth.com.cn>
714 * config/tc-score.c : Using _() for const string.
715 Do not assign inst.error with a local string pointer.
716 (md_section_align): Pad section.
718 2007-01-13 H.J. Lu <hongjiu.lu@intel.com>
720 * config/tc-i386.c (build_modrm_byte): Check number of operands
721 when procssing memory/register operand.
723 2007-01-12 Nick Clifton <nickc@redhat.com>
726 * macro.c (expand_irp): Do not ignore spaces inside quoted
729 2007-01-12 Alan Modra <amodra@bigpond.net.au>
731 * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
732 * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
733 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
734 (TC_FORCE_RELOCATION): Define.
735 (TC_FORCE_RELOCATION_LOCAL): Define.
736 * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
738 2007-01-12 Alan Modra <amodra@bigpond.net.au>
740 * input-file.c (input_file_open): Check fgets return.
742 2007-01-11 Paul Brook <paul@codesourcery.com>
744 * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
746 2007-01-11 Nick Clifton <nickc@redhat.com>
749 * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
752 * config/tc-mcore.c (md_number_to_chars): Use
753 number_to_chars_{big|little}endian.
755 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
757 * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
758 architecture by itself.
759 (m68k_ip): Don't issue a warning for tbl instructions on fido.
760 (m68k_elf_final_processing): Treat Fido as an architecture by
763 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
765 * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
767 2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
769 * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
770 depending on allow_naked_reg.
772 2007-01-04 Paul Brook <paul@codesourcery.com>
774 * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
776 2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
779 * config/tc-i386.c (register_prefix): New.
780 (set_intel_syntax): Set set_intel_syntax to "" if register
782 (check_byte_reg): Use register_prefix for error message.
783 (check_long_reg): Likewise.
784 (check_qword_reg): Likewise.
785 (check_word_reg): Likewise.
787 2006-01-04 Julian Brown <julian@codesourcery.com>
789 * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
790 (do_neon_qshl_imm): Likewise.
791 (do_neon_rshl): New function. Handle rounding variants of
793 (insns): Use do_neon_rshl for vrshl, vqrshl.
795 2007-01-04 Paul Brook <paul@codesourcery.com>
797 * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
800 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
802 * config/tc-i386.c (swap_operands): Remove branches.
804 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
806 * config/tc-i386.c: Update copyright year.
807 * config/tc-i386.h: Likewise.
809 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
811 * config/tc-i386.c (smallest_imm_type): Return unsigned int
814 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
816 * config/tc-i386.c: Convert to ISO C90 formatting
817 * config/tc-i386.h: Likewise.
819 2007-01-03 David Daney <ddaney@avtrex.com>
821 * config/tc-mips.c (md_show_usage): Clean up -mno-shared
824 For older changes see ChangeLog-2006
830 version-control: never