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