1 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am: Run "make dep-am".
4 * Makefile.in: Regenerated.
6 * config/tc-i386.c: Include "opcodes/i386-opc.h" instead of
8 (md_begin): Check reg_name != NULL for the last entry in
11 * config/tc-i386.h: Move many entries to opcode/i386.h and
14 * configure.in (need_opcodes): Set true for i386.
15 * configure: Regenerated.
17 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
19 * Makefile.am (REPORT_BUGS_TO): Removed.
20 (INCLUDES): Remove -DREPORT_BUGS_TO.
21 * Makefile.in: Regenerated.
23 * configure.in (--with-bugurl): Removed.
24 * configure: Regenerated.
26 * doc/Makefile.am (as_TEXINFOS): Remove gasver.texi.
27 (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
29 (gasver.texi): Removed.
30 (MOSTLYCLEANFILES): Remove gasver.texi.
31 (as.1): Don't depend on gasver.texi.
32 * doc/Makefile.in: Regenerated.
34 * doc/as.texi: Include bfdver.texi instead of gasver.texi.
36 2007-03-14 Daniel Jacobowitz <dan@codesourcery.com>
38 * config/tc-arm.c (arm_copy_symbol_attributes): New.
39 * config/tc-arm.h (arm_copy_symbol_attributes): Declare.
40 (TC_COPY_SYMBOL_ATTRIBUTES): Define.
41 * gas/symbols.c (copy_symbol_attributes): Use
42 TC_COPY_SYMBOL_ATTRIBUTES.
44 2007-03-14 Paul Brook <paul@codesourcery.com>
46 * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
48 2007-03-14 Alan Modra <amodra@bigpond.net.au>
51 * write.c (relax_segment): Insert extra alignment padding
52 to break infinite relax loop when given impossible
53 gcc_except_table assembly.
55 2007-03-12 H.J. Lu <hongjiu.lu@intel.com>
57 * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
59 (match_template): Likewise.
60 (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
62 * config/tc-i386.h (Opcode_D): New.
63 (Opcode_FloatR): Likewise.
64 (Opcode_FloatD): Likewise.
71 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
73 * app.c (do_scrub_chars): Recognize comments after # line "file".
74 * read.c (get_linefile_number): New.
75 (s_app_line): Accept ill-formed .linefile lines as comments.
77 2007-03-09 Alan Modra <amodra@bigpond.net.au>
79 * config/tc-i386.h (WORKING_DOT_WORD): Define.
81 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
83 * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
84 * as.h (new_logical_line_flags): New.
85 * input-scrub.c (new_logical_line): Turned into wrapper for...
86 (new_logical_line_flags): this. Handle flags.
87 * read.c (potable): Add linefile. Adjust appline argument.
88 (s_app_file): Fake .appfiles no more.
89 (s_app_line): For .linefile, accept file name and flags.
91 2007-03-08 Alan Modra <amodra@bigpond.net.au>
93 * symbols.c (symbol_relc_make_sym): Comment typo fixes.
95 2007-03-08 Alan Modra <amodra@bigpond.net.au>
97 * Makefile.am: Run "make dep-am".
98 * Makefile.in: Regenerate.
99 * po/POTFILES.in: Regenerate.
101 2007-03-07 Joseph Myers <joseph@codesourcery.com>
103 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
105 * doc/Makefile.am (gasver.texi): Define BUGURL.
106 * doc/as.texinfo: Use BUGURL.
107 * Makefile.in, configure, doc/Makefile.in: Regenerate.
109 2007-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
111 * config/tc-s390.c (md_parse_option): z9-ec option added.
113 2007-03-02 Paul Brook <paul@codesourcery.com>
115 * config/tc-arm.c (relax_immediate): Always return positive values.
116 (relaxed_symbol_addr): New function.
117 (relax_adr, relax_branch): Use it.
118 (arm_relax_frag): Pass strect argument. Adjust infinite loop check.
120 2007-03-01 Joseph Myers <joseph@codesourcery.com>
122 * as.c (parse_args): Update copyright date.
124 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
126 * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
128 2007-02-28 Nick Clifton <nickc@redhat.com>
131 * config/tc-d10v.c (do_assemble): Do not generate error messages,
132 just return -1 whenever a problem is encountered.
133 (md_assemble): If do_assemble returns -1 generate a non-fatal
134 error message and return.
137 * config/tc-msp430.c (line_separator_char): Change to '{'.
139 2007-02-27 Alan Modra <amodra@bigpond.net.au>
141 * config/tc-m68hc11.c (fixup24): Correct fixup size.
142 (build_jump_insn): Likewise.
143 (build_insn): Likewise.
144 (s_m68hc11_relax): Likewise.
146 2007-02-27 Alan Modra <amodra@bigpond.net.au>
148 * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
150 2007-02-25 Mark Shinwell <shinwell@codesourcery.com>
152 * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
154 2007-02-23 Alan Modra <amodra@bigpond.net.au>
156 * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
157 (md_assemble): Likewise.
159 2007-02-22 Alan Modra <amodra@bigpond.net.au>
161 * write.c (size_seg): Always clear SEC_RELOC here.
162 (install_reloc): New function, extracted from..
163 (write_relocs): ..here. Combine RELOC_EXPANSION_POSSIBLE code
164 with !RELOC_EXPANSION_POSSIBLE code. Don't add fr_offset when
165 testing frag size. Set SEC_RELOC here.
167 2007-02-21 Alan Modra <amodra@bigpond.net.au>
170 * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
172 2007-02-20 Thiemo Seufer <ths@mips.com>
174 * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
176 2007-02-20 Thiemo Seufer <ths@mips.com>
178 * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
180 2007-02-20 Thiemo Seufer <ths@mips.com>
181 Chao-Ying Fu <fu@mips.com>
183 * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
184 ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
185 (macro_build): Add case '2'.
186 (macro): Expand M_BALIGN to nop, packrl.ph or balign.
187 (validate_mips_insn): Add support for balign instruction.
188 (mips_ip): Handle DSP R2 instructions. Support balign instruction.
189 (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
190 md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
191 command line options.
192 (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
193 (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
194 * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
195 .set dspr2, .set nodspr2.
197 2007-02-20 Nathan Sidwell <nathan@codesourcery.com>
199 * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
200 (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
202 2007-02-18 Alan Modra <amodra@bigpond.net.au>
204 * write.c (TC_FX_SIZE_SLACK): Define.
205 (write_relocs): Reinstate check for fixup within frag.
206 * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
207 * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
208 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
209 * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
210 * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
212 2007-02-17 Mark Mitchell <mark@codesourcery.com>
213 Nathan Sidwell <nathan@codesourcery.com>
214 Vladimir Prus <vladimir@codesourcery.com
215 Joseph Myers <joseph@codesourcery.com>
217 * configure.in (--with-bugurl): New option.
218 * configure: Regenerate.
219 * dep-in.sed: Remove bin-bugs.h.
220 * Makefile.am (REPORT_BUGS_TO): Define.
221 (INCLUDES): Define REPORT_BUGS_TO.
222 (DEP_INCLUDES): Likewise.
223 ($(OBJS)): No longer depend on bin-bugs.h.
224 * Makefile.in: Regenerate.
225 * doc/Makefile.in: Regenerate.
226 * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
227 * as.h: Remove include of bin-bugs.h.
229 2007-02-17 Alan Modra <amodra@bigpond.net.au>
231 * write.c: White space fixes.
232 (fixup_segment): Move symbol_mri_common_p adjustments..
233 (write_relocs): ..and symbol_equated_reloc_p adjustments..
234 (adjust_reloc_syms): ..to here.
236 2007-02-16 Alan Modra <amodra@bigpond.net.au>
238 * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
239 xmalloc, memset. Don't bother assigning NULL to known zero mem.
240 (subseg_set_rest): Remove unnecessary cast.
241 * write.c: Include libbfd.h. Replace PTR with void * throughout.
242 Remove unnecessary forward declarations and casts.
243 (set_symtab): Delete extern bfd_alloc.
244 (fixup_segment): Move.
246 2007-02-15 Nathan Sidwell <nathan@codesourcery.com>
248 * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
249 * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
250 (mcf5475_ctrl, mcf5485_ctrl): New.
251 (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
252 (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
253 (init_table): Add asid, mmubar, adjust rombar0.
255 2007-02-14 Alan Modra <amodra@bigpond.net.au>
257 * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
258 * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
259 (process_operands): Move old Seg2ShortForm and Seg3ShortForm
260 code, and test for these insns using a combination of
261 opcode_modifier and operand_types.
263 2007-02-07 Paul Brook <paul@codesourcery.com>
265 * configure.tgt: Add arm*-*-uclinux-*eabi.
267 2007-02-05 Dave Brolley <brolley@redhat.com>
268 Richard Sandiford <rsandifo@redhat.com>
269 DJ Delorie <dj@redhat.com>
270 Stan Cox <scox@redhat.com>
271 Jim Blandy <jimb@redhat.com>
272 Nick Clifton <nickc@redhat.com>
273 Jim Wilson <wilson@redhat.com>
274 Frank Ch. Eigler <fche@redhat.com>
275 Graydon Hoare <graydon@redhat.com>
276 Ben Elliston <bje@redhat.com>
277 John Healy <jhealy@redhat.com>
278 Richard Henderson <rth@redhat.com>
280 * Makefile.am (CPU_TYPES): Add mep.
281 (TARGET_CPU_CFILES): Add tc-mep.c.
282 (TARGET_CPU_HFILES): Add tc-mep.h.
283 (DEPTC_mep_elf): New variable.
284 (DEPTC_mep_coff): Likewise.
285 (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
286 * configure.in: Support mep.
287 * configure.tgt: Likewise.
288 * config/tc-mep.c: New file.
289 * config/obj-elf.c: New file.
290 * config/tc-mep.c: New file.
291 * config/tc-mep.h: New file.
292 * testsuite/gas/mep: New testsuite with content.
293 * Makefile.in: Regenerate.
294 * configure: Regenerate.
296 2007-02-05 Dave Brolley <brolley@redhat.com>
298 * cgen.c (gas_cgen_install_complex_reloc): Removed.
299 (complex_reloc_installation_howto): Removed.
301 2007-02-05 Dave Brolley <brolley@redhat.com>
302 Graydon Hoare <graydon@redhat.com>
303 DJ Delorie <dj@redhat.com>
304 Catherine Moore <clm@redhat.com>
305 Michael Chastain <chastain@redhat.com>
306 Frank Ch. Eigler <fche@redhat.com>
308 * symbols.c (use_complex_relocs_for): New, to decide
309 when to use complex relocs. Add signed RELC support.
310 (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
311 encode expression symbols as mangled complex relocation symbols (when
312 compiled with -DOBJ_COMPLEX_RELOC).
313 (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
314 * cgen.c (gas_cgen_md_apply_fix3): Only set signed_p if RELC. Call
315 encode_addend with new args. Modify to get start, length from
316 ifield whenever it is set. Also change condition on which
317 self-describing relocs are encoded. Add hook into
318 gas_cgen_encode_addend.
319 (queue_fixup_recursively): Add signed RELC support. Change from masked
320 expr to trunc flag. Restore assignment of sub-field value to
321 temporary in fixups array. Reflect changed meaning of last arg to
322 queue_fixup_recursively.
323 (fixup): Add cgen_maybe_multi_ifield member.
324 (make_right_shifted_expr): New function.
325 (queue_fixup): Change to recursive function that fragments
326 fixups if operand has a multi-ifield.
327 (gas_cgen_parse_operand): Add RELC code to wrap expressions in
328 symbols, call weak_operand_overflow_check, and fragment call
329 queue_fixup with operand fields.
330 (gas_cgen_finish_insn) Modify to manage ifield pointer.
331 (weak_operand_overflow_check): New function to try to select
333 (gas_cgen_encode_addend): New function for relc.
334 (gas_cgen_install_complex_reloc): Likewise.
335 (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
336 * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
337 cgen_maybe_multi_ifield field to fx_cgen substructure.
338 * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
339 * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
341 2007-02-03 DJ Delorie <dj@delorie.com>
343 * config/tc-m32c.c (m32c_cons_fix_new): New. Added to support 3
345 * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
346 (m32c_cons_fix_new): Prototype.
348 2007-02-02 Bob Wilson <bob.wilson@acm.org>
350 * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
351 (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
353 2007-02-02 Bob Wilson <bob.wilson@acm.org>
355 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
356 (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
357 (map_suffix_reloc_to_operator): New.
358 (map_operator_to_reloc): New.
359 (expression_maybe_register): Fix incorrect test of return value from
360 xtensa_elf_suffix. Rearrange to use map_suffix_reloc_to_operator.
361 (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
363 2007-02-02 Bob Wilson <bob.wilson@acm.org>
365 * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
366 (tinsn_get_tok): Delete prototype.
367 * config/tc-xtensa.c (tinsn_get_tok): Delete.
369 2007-02-02 Bob Wilson <bob.wilson@acm.org>
371 * config/xtensa-relax.h (struct build_instr): Delete id field.
372 * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
374 (append_literal_op, append_label_op): Remove litnum/labnum arguments;
375 set op_data fields to zero.
376 (parse_id_constant): Delete.
377 (build_transition): Remove code to handle numbered literals and labels.
379 2007-02-02 Bob Wilson <bob.wilson@acm.org>
381 * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
382 (build_transition_table): Likewise.
384 2007-02-01 Bob Wilson <bob.wilson@acm.org>
386 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
388 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
390 2007-02-02 Alan Modra <amodra@bigpond.net.au>
392 * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
393 (struct fix <fx_plt>): Rename to tcbit2.
394 * write.c (fix_new_internal): Adjust.
395 (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
396 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
397 * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
398 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
399 * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
400 * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
401 * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
402 * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
403 * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
404 * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
405 * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
406 Instead, compare fx_r_type.
407 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
408 fx_tcbit in place of fx_plt.
409 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
410 * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
413 2007-01-30 Nick Clifton <nickc@redhat.com>
415 * as.c (main): Mark symbols created via the --defsym command line
416 option as volatile so that they can be overridden later on by a
417 .set directive. This maintains compatibility with the behaviour
418 of earlier versions of the assembler.
419 * doc/as.texinfo (--defsym): Document that the defined symbol's
420 value can be overridden via a .set directive.
422 2007-01-28 H.J. Lu <hongjiu.lu@intel.com>
424 * config/tc-i386.c (swap_imm_operands): Renamed to ...
425 (swap_2_operands): This. Take 2 ints.
426 (md_assemble): Updated.
427 (swap_operands): Call swap_2_operands to swap 2 operands.
429 2007-01-24 DJ Delorie <dj@redhat.com>
431 * config/tc-m32c.c (md_pseudo_table): Add .3byte.
433 2007-01-22 Nick Clifton <nickc@redhat.com>
436 * tc-score.c: Remove unnecessary uses of _().
437 Make the err_msg[] a file level local array in order to save
439 Remove unnecessary sprintf()s.
441 2007-01-18 Mei Ligang <ligang@sunnorth.com.cn>
444 * config/tc-score.c : Using _() for const string.
445 Do not assign inst.error with a local string pointer.
446 (md_section_align): Pad section.
448 2007-01-13 H.J. Lu <hongjiu.lu@intel.com>
450 * config/tc-i386.c (build_modrm_byte): Check number of operands
451 when procssing memory/register operand.
453 2007-01-12 Nick Clifton <nickc@redhat.com>
456 * macro.c (expand_irp): Do not ignore spaces inside quoted
459 2007-01-12 Alan Modra <amodra@bigpond.net.au>
461 * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
462 * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
463 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
464 (TC_FORCE_RELOCATION): Define.
465 (TC_FORCE_RELOCATION_LOCAL): Define.
466 * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
468 2007-01-12 Alan Modra <amodra@bigpond.net.au>
470 * input-file.c (input_file_open): Check fgets return.
472 2007-01-11 Paul Brook <paul@codesourcery.com>
474 * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
476 2007-01-11 Nick Clifton <nickc@redhat.com>
479 * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
482 * config/tc-mcore.c (md_number_to_chars): Use
483 number_to_chars_{big|little}endian.
485 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
487 * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
488 architecture by itself.
489 (m68k_ip): Don't issue a warning for tbl instructions on fido.
490 (m68k_elf_final_processing): Treat Fido as an architecture by
493 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
495 * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
497 2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
499 * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
500 depending on allow_naked_reg.
502 2007-01-04 Paul Brook <paul@codesourcery.com>
504 * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
506 2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
509 * config/tc-i386.c (register_prefix): New.
510 (set_intel_syntax): Set set_intel_syntax to "" if register
512 (check_byte_reg): Use register_prefix for error message.
513 (check_long_reg): Likewise.
514 (check_qword_reg): Likewise.
515 (check_word_reg): Likewise.
517 2006-01-04 Julian Brown <julian@codesourcery.com>
519 * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
520 (do_neon_qshl_imm): Likewise.
521 (do_neon_rshl): New function. Handle rounding variants of
523 (insns): Use do_neon_rshl for vrshl, vqrshl.
525 2007-01-04 Paul Brook <paul@codesourcery.com>
527 * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
530 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
532 * config/tc-i386.c (swap_operands): Remove branches.
534 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
536 * config/tc-i386.c: Update copyright year.
537 * config/tc-i386.h: Likewise.
539 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
541 * config/tc-i386.c (smallest_imm_type): Return unsigned int
544 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
546 * config/tc-i386.c: Convert to ISO C90 formatting
547 * config/tc-i386.h: Likewise.
549 2007-01-03 David Daney <ddaney@avtrex.com>
551 * config/tc-mips.c (md_show_usage): Clean up -mno-shared
554 For older changes see ChangeLog-2006
560 version-control: never