1 2011-06-13 Walter Lee <walt@tilera.com>
3 * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tilegx.c and
5 (TARGET_CPU_HFILES): Add config/tc-tilegx.h and
7 * Makefile.in: Regenerate.
8 * configure.tgt (tilepro-*-*): New.
9 (tilegx-*-*): Likewise.
10 * config/tc-tilegx.c: New file.
11 * config/tc-tilegx.h: Likewise.
12 * config/tc-tilepro.h: Likewise.
13 * config/tc-tilepro.c: Likewise.
14 * doc/Makefile.am (CPU_DOCS): Add c-tilegx.texi and
16 * doc/Makefile.in: Regenerate.
17 * doc/all.texi (TILEGX): Define.
19 * doc/as.texinfo: Add Tile-Gx and TILEPro documentation. Include
20 c-tilegx.texi and c-tilepro.texi.
21 * doc/c-tilegx.texi: New.
22 * doc/c-tilepro.texi: New.
24 2011-06-13 Nick Clifton <nickc@redhat.com>
27 * config/tc-arm.c (do_shift): Do not allow shift operations at the
28 end of a register based shift insn.
29 (do_t_shift): Likewise.
31 2011-06-13 Nick Clifton <nickc@redhat.com>
33 * config/tc-score.c (s3_my_get_expression): Delete unused local
35 (s3_do_ldst_insn): Delete unused local variable 'strbak'.
36 (s3_do16_ldst_insn): Delete unused local variable 'temp'.
37 (s3_do_macro_bcmp): Zero inst_expand array.
38 (s3_do_macro_bcmpz): Likewise.
39 (s3_s_score_end): Delete unused local variable 'dot'.
40 (s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
41 * config/tc-score7.c (s7_my_get_expression): Delete unused local
43 (s7_do_ldst_insn): Delete unused local variable 'strbak'.
44 (s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
46 (s7_s_score_end): Delete unused local variable 'dot'.
47 (s7_relax_frag): Delete unused local variable 'relax_size'.
48 (s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
50 2011-06-10 H.J. Lu <hongjiu.lu@intel.com>
52 AVX Programming Reference (June, 2011)
53 * config/tc-i386.c (i386_error): Add invalid_vsib_address and
54 unsupported_vector_index_register.
55 (cpu_arch): Add .avx2, .bmi2, .lzcnt and .invpcid.
56 (check_VecOperands): New.
57 (match_template): Call check_VecOperands. Handle
58 invalid_vsib_address and unsupported_vector_index_register.
59 (build_modrm_byte): Support VecSIB. Check register-only source
60 operand when two source operands are swapped.
61 (i386_index_check): Allow Xmm/Ymm index registers.
63 * doc/c-i386.texi: Document avx2/.avx2, bmi2/.bmi2, lzcnt/.lzcnt
66 2011-06-09 Nick Clifton <nickc@redhat.com>
69 * config/tc-cr16.c (tc_gen_reloc): Remove unused local variable
71 (check_cinv_options): Remove unused local variables. Make
73 (md_assemble): Remove unused local variable.
75 2011-06-09 James Greenhalgh <james.greenhalgh@arm.com>
77 * config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
79 2011-06-03 Arnaud Patard <arnaud.patard@rtp-net.org>
82 * config/tc-arm.c (parse_psr): Set m_profile to false when
83 assembling for any architecture.
85 2011-06-02 Jie Zhang jie@codesourcery.com
86 Nathan Sidwell nathan@codesourcery.com
88 * config/tc-arm.c (parse_address_main): Handle -0 offsets.
89 (encode_arm_addr_mode_2): Set default sign of zero here ...
90 (encode_arm_addr_mode_3): ... and here.
91 (encode_arm_cp_address): ... and here.
92 (md_apply_fix): Use default sign of zero here.
94 2011-06-02 Nick Clifton <nickc@redhat.com>
96 * as.c: Fix spelling typo.
98 * config/tc-ppc.c: Likewise.
99 * po/gas.pit: Regenerate.
101 2011-05-31 Paul Brook <paul@codesourcery.com>
103 * config/tc-arm.c (arm_cpus): Add Cortex-R5.
104 (arm_extensions): Allow idiv on ARMv7-R.
105 * doc/c-arm.text: Update idiv extension restrictions.
107 2011-05-31 Paul Brook <paul@codesourcery.com>
109 * config/tc-arm.c (arm_force_relocation): Resolve all pc-relative
112 2011-05-31 Paul Brook <paul@codesourcery.com>
114 * config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
117 2011-05-31 Paul Brook <paul@codesourcery.com>
118 Nathan Sidwell <nathan@codesourcery.com>
120 * config/tc-arm.c (fix_new_arm): Create an absolute symbol for
121 pc-relative fixes to constants.
122 * config/tc-arm.h (TC_FORCE_RELOCATATION_ABS): Define.
124 2011-05-27 Nick Clifton <nickc@redhat.com>
126 * config/tc-s390.c (md_begin): Remove unused variable dup_insn.
128 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
130 * config/tc-s390.c (md_gather_operands): Fix check for floating
131 register pair operands.
133 2011-05-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
135 * config/tc-s390.c (md_gather_operands): Emit an error for odd
136 numbered registers used as register pair operand.
138 2011-05-23 Nick Clifton <nickc@redhat.com>
140 * config/tc-v850.h (TC_FX_SIZE_SLACK): Define.
142 2011-05-20 Bernd Schmidt <bernds@codesourcery.com>
144 * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset".
145 (tic6x_parse_name): Handle it.
146 (tic6x_fix_new_exp): Handle O_pcr_offset.
147 (tic6x_fix_adjustable): Return 0 for the new relocs.
148 (md_apply_fix): Handle them.
149 (tc_gen_reloc): Likewise.
150 * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
152 2011-05-18 Nick Clifton <nickc@redhat.com>
155 * config/tc-tic30.c (ordinal_names): Allow translation of the
158 2011-05-18 Nick Clifton <nickc@redhat.com>
160 * config/tc-arm.c (s_unreq): Reword warning message to make it
162 * config/tc-ia64.c (md_show_usage): Add note for translators.
163 * configure.in (ALL_LINGUAS): Add "fi".
164 * configure: Regenerate.
166 2011-05-18 Tristan Gingold <gingold@adacore.com>
168 * config/tc-ppc.h (ppc_tc_sy): Reorder fields.
169 Put size into an union with dw.
170 (OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust.
171 (ppc_xcoff_end): Declare.
173 * config/tc-ppc.c: Add includes for xcoff.
174 (ppc_dwsect): New function.
175 (md_pseudo_table): Add dwsect.
176 (struct dw_subsection): New.
178 (ppc_change_debug_section): New function.
179 (ppc_xcoff_end): Ditto.
180 (ppc_function): Adjust for ppc_tc_sy.
181 (ppc_symbol_new_hook): Ditto.
182 (ppc_frob_symbol): Ditto.
183 (ppc_frob_section): Do not set vma for debug sections.
184 (ppc_fix_adjustable): Return true for debug sections.
185 * config/obj-coff.c: Add includes for xcoff.
186 (coff_frob_section): Handle dwarf section.
188 2011-05-17 Nick Clifton <nickc@redhat.com>
190 * po/fi.po: New Finnish translation.
191 * po/fr.po: Updated French translation.
193 * config/tc-m32r.c (md_show_usage): Fix typos in descriptions.
194 * config/tc-mt.c (md_assemble): Fix typos in warning messages.
195 * cond.c (s_else): Fix typos in error messages.
196 * config/tc-pj.c (md_assemble): Fix typo in error message.
198 2011-05-16 Hans-Peter Nilsson <hp@axis.com>
200 * config/tc-cris.c (md_parse_option) <OPTION_PIC>: Error if not
202 (md_show_usage): Only mention --pic if the assembler can generate
204 * doc/c-cris.texi (CRIS-Opt): Mention that generating ELF is a
205 prerequisite for --pic being a valid option.
207 2011-05-13 Frederic Marchal <fmarchal@perso.be>
210 * config/tc-v850.c (parse_register_list): Correct error string.
212 2011-05-12 Quentin Neill <quentin.neill@amd.com>
214 * config/tc-i386.c (cpu_arch): Rename PROCESSOR_BDVER1 to PROCESSOR_BD.
215 (i386_align_code): Ditto
217 2011-05-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
220 * config/tc-arm.c (parse_big_immediate): Fix parsing of 64-bit
221 immediates on 32-bit hosts.
223 2011-05-10 Quentin Neill <quentin.neill@amd.com>
225 * config/tc-i386.c (cpu_arch): Add bdver2 and rename
226 PROCESSOR_BDVER1 to PROCESSOR_BDVER.
227 (i386_align_code): Rename PROCESSOR_BDVER1.
228 (processor_type): Ditto.
229 * doc/c-i386.texi: Add bdver2.
231 2011-05-10 Alan Modra <amodra@gmail.com>
233 * dw2gencfi.c (tc_cfi_endproc): Avoid "set but not used" error.
235 2011-05-09 Paul Brook <paul@codesourcery.com>
237 * config/tc-tic6x.c (streq): Define.
238 (tic6x_get_unwind): New.
239 (s_tic6x_cantunwind, s_tic6x_handlerdata, s_tic6x_endp,
240 s_tic6x_personalityindex, s_tic6x_personality): New functions.
241 (md_pseudo_table): Add "endp", "handlerdata", "personalityindex",
242 "personality" and "cantunwind".
243 (tic6x_regname_to_dw2regnum, tic6x_frame_initial_instructions,
244 tic6x_start_unwind_section, tic6x_unwind_frame_regs,
245 tic6x_pop_rts_offset_little, tic6x_pop_rts_offset_big,
246 tic6x_unwind_reg_from_dwarf, tic6x_flush_unwind_word,
247 tic6x_unwind_byte, tic6x_unwind_2byte, tic6x_unwind_uleb,
248 tic6x_cfi_startproc, output_exidx_entry, tic6x_output_unwinding,
249 tic6x_cfi_endproc): New.
250 * config/tc-tic6x.h (TIC6X_NUM_UNWIND_REGS): Define.
251 (tic6x_unwind_info): New.
252 (tic6x_segment_info_type): Add marked_pr_dependency, unwind and
254 (TARGET_USE_CFIPOP, tc_regname_to_dw2regnum,
255 tc_cfi_frame_initial_instructions, DWARF2_DEFAULT_RETURN_COLUMN,
256 DWARF2_CIE_DATA_ALIGNMENT, tc_cfi_startproc, tc_cfi_endproc,
257 tc_cfi_section_name): Define.
258 * doc/c-tic6x.texi: Document new unwinding directives.
259 * dw2gencfi.c (tc_cfi_startproc, tc_cfi_endproc): Add default
261 (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset, CFI_return_column,
262 CFI_rel_offset, CFI_escape, CFI_signal_frame, CFI_val_encoded_addr):
264 (CFI_EMIT_target): Define.
265 (dot_cfi_sections): Check tc_cfi_section_name.
266 (dot_cfi_startproc): Use tc_cfi_startproc.
267 (dot_cfi_endproc): Use tc_cfi_endproc.
268 * dw2gencfi.h (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset,
269 CFI_return_column, CFI_rel_offset, CFI_escape, CFI_signal_frame,
270 CFI_val_encoded_addr): Move to here from dw2gencfi.c.
272 2011-05-07 Alan Modra <amodra@gmail.com>
274 * dw2gencfi.c (CUR_SEG, SET_CUR_SEG, HANDLED, SET_HANDLED): Define.
275 Use throughout in place of #if SUPPORT_FRAME_LINKONCE.
276 (struct fde_entry): Rename cseg to cur_seg.
277 (cfi_change_reg_numbers): Remove ATTRIBUTE_UNUSED.
278 (get_cfi_seg): Likewise. Use if (SUPPORT_FRAME_LINKONCE) rather
279 that #if SUPPORT_FRAME_LINKONCE.
280 (cfi_finish): Likewise.
282 2011-05-06 Tristan Gingold <gingold@adacore.com>
284 * read.c (s_comm_internal): Remove code for OBJ_VMS.
287 * write.c (write_object_file): Ditto.
288 * symbols.c (define_sym_at_dot): Ditto.
291 2011-05-05 Alan Modra <amodra@gmail.com>
293 * dw2gencfi.c (SUPPORT_FRAME_LINKONCE): Define. Use throughout
294 file to conditionally compile code added 2011-04-26.
295 (cfi_change_reg_numbers): Add ATTRIBUTE_UNUSED on params only used
296 when SUPPORT_FRAME_LINKONCE.
297 (get_cfi_seg): Likewise. Reintroduce old code for when not
298 SUPPORT_FRAME_LINKONCE.
299 (cfi_finish): Move get_cfi_seg calls out of loop when not
300 SUPPORT_FRAME_LINKONCE. Avoid unused var warning.
302 2011-05-03 Paul Brook <paul@codesourcery.com>
304 * config/tc-tic6x.c (s_ehtype): New function.
305 (md_pseudo_table): Add "ehtype".
306 (tic6x_fix_adjustable, md_apply_fix): BFD_RELOC_C6000_EHTYPE.
307 * doc/c-tic6x.texi: Document .ehtype directive.
309 2011-04-26 Kai Tietz <ktietz@redhat.com>
311 * dw2gencfi.c (dwcfi_seg_list): New struct.
312 (dwcfi_hash): New static hash variable.
313 (get_debugseg_name): New.
314 (alloc_debugseg_item): New.
315 (make_debug_seg): New.
316 (dwcfi_hash_insert): New.
317 (dwcfi_hash_find): New.
318 (dwcfi_hash_find_or_make): New.
319 (cfi_insn_data): New member cur_seg.
320 (cie_entry): Likewise.
321 (fde_entry): New cseg and handled members.
322 (alloc_fde_entry): Initialize cseg member.
323 (alloc_cfi_insn_data): Initialize cur_seg member.
324 (dot_cfi_sections): Compare for beginning of
325 section names via strncmp.
327 (cfi_finish): Treat link-once sections.
328 (is_now_linkonce_segment): New local helper.
329 (output_cie): Ignore cie entries not member of current
331 (output_fde): Likewise.
332 (select_cie_for_fde): Likewise.
333 (cfi_change_reg_numbers): Add new argument for current segment
334 and ignore insn elements, if not part of current segment.
335 * ehopt.c (get_cie_info): Use strncmp for
336 section name matching.
337 (heck_eh_frame): Likewise.
339 2011-04-20 Catherine Moore <clm@codesourcery.com>
340 David Ung <davidu@mips.com>
342 * config/mips.c (mips_cl_insn): Add new field complete_p.
343 (create_insn): Initialize complete_p to zero.
345 (fix_24k_align_to): New.
346 (fix_24k_store_info): Declare.
348 (fix_24k_record_store_info): New.
350 (nops_for_insn): Call nops_for_24k.
351 (append_insn): Move O_constant expression handling.
353 2011-04-20 Alan Modra <amodra@gmail.com>
355 * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size.
356 (hash_new_sized): New function, split out from..
359 2011-04-19 Nick Clifton <nickc@redhat.com>
361 * config/tc-arm.c (v7m_psrs): Revert previous delta.
363 2011-04-18 Julian Brown <julian@codesourcery.com>
364 Nick Clifton <nickc@redhat.com>
366 * config/tc-arm.c (parse_psr): Use selected_cpu not cpu_variant to
367 detect M-profile targets.
368 (do_t_swi): Exclude v7 and higher variants from arm_ext_os test.
369 (v7m_psrs): Fix typo: basepri_max should be basepri_mask.
371 2011-04-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
373 * config/tc-s390.c (s390_machine): New prototype.
374 (md_pseudo_table): New pseudo-op .machine.
375 (s390_opcode_hash): Initialize to NULL.
376 (s390_parse_cpu): New function.
377 (md_parse_option): Use s390_parse_cpu.
378 (s390_setup_opcodes): New function.
379 (md_begin): Use s390_setup_opcodes.
380 (s390_machine): New hook handling the new .machine pseudo.
382 * doc/c-s390.texi: Document the new pseudo op .machine.
384 2011-04-12 H.J. Lu <hongjiu.lu@intel.com>
386 * config/tc-i386.c (i386_mach): Start error message with lower
388 (md_begin): Likewise.
389 (md_parse_option): Likewise.
390 (i386_target_format): Likewise.
391 (check_byte_reg): Likewise.
392 (check_long_reg): Likewise.
393 (check_qword_reg): Likewise.
394 (check_word_reg): Likewise.
396 2011-04-12 Nick Clifton <nickc@redhat.com>
399 * config/tc-arm.c (relax_branch): Do not relax branches to
400 preemptable global symbols.
402 2011-04-11 Julian Brown <julian@codesourcery.com>
404 * config/tc-arm.c (parse_psr): Add LHS argument. Improve support
406 (operand_parse_code): Replace OP_PSR with OP_wPSR and OP_rPSR.
408 (parse_operands): Likewise.
409 (do_mrs): Tweak error message for constraint.
410 (do_t_mrs): Update constraints for changes to APSR support.
411 (do_t_msr): Likewise. Don't set PSR_f flag here.
412 (psrs): Remove "g", "nzcvq", "nzcvqg".
413 (insns): Tweak entries for msr and mrs instructions.
415 2011-04-11 Kai Tietz <ktietz@redhat.com>
417 * config/tc-i386.c (x86_cons): Initialize adjust with zero.
419 2011-04-11 Nick Clifton <nickc@redhat.com>
421 * config/tc-i386.c (x86_cons): Define even for non-ELF targets.
422 * config/tc-i386.h (x86_cons): Always prototype.
424 * config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
425 in order to avoid a compile time warning.
426 (getprocreg_image): Likewise.
428 2011-04-11 Alan Modra <amodra@gmail.com>
430 * config/tc-cr16.c (getprocreg_image): Correct range check.
431 (getprocregp_image): Likewise.
433 2011-04-06 Joseph Myers <joseph@codesourcery.com>
435 * configure.tgt (strongarm*be, strongarm*b, strongarm*,
436 xscale*be|xscale*b, xscale*): Remove architectures.
437 (thumb-*-coff, thumb-*-rtems*, thumb-*-elf, thumb-epoc-pe,
438 thumb-*-pe, xscale-*-coff, xscale-*-elf): Remove targets.
440 2011-04-01 Tristan Gingold <gingold@adacore.com>
442 * config/tc-ia64.c (md_apply_fix): Add a cast to avoid a warning.
444 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
446 * config/tc-tic6x.c (sbss_section, scom_section, scom_symbol): New
448 (md_begin): Initialize them.
449 (s_tic6x_scomm): New static function.
450 (md_pseudo_table): Add "scomm".
451 (tc_gen_reloc): Really undo all adjustments made by
452 bfd_install_relocation.
453 * doc/c-tic6x.texi: Document the .scomm directive.
455 2011-03-31 Tristan Gingold <gingold@adacore.com>
457 * dwarf2dbg.c (DWARF2_VERSION): Define.
458 (out_debug_line): Use it.
459 (out_debug_aranges): Ditto.
460 (out_debug_info): Ditto.
461 * config/tc-ia64.h (DWARF2_VERSION): Override it.
463 2011-03-30 Michael Snyder <msnyder@vmware.com>
465 * obj-elf.c (obj_elf_section): Free malloced name.
466 * macro.c (get_any_string): Free malloced br_buf.
467 (do_formals): Free 'formal'.
469 2011-03-30 Tristan Gingold <gingold@adacore.com>
471 * config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
472 to offset only if within is set.
473 (ppc_stabx): Reformat. For stsym stabs, add a check and set
474 within only for symbols.
476 2011-03-29 Richard Henderson <rth@redhat.com>
479 * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous
480 label; zap alpha_insn_label.
482 2011-03-29 H.J. Lu <hongjiu.lu@intel.com>
484 * config/tc-i386.c (handle_quad): Properly handle multiple
487 2011-03-29 Mike Frysinger <vapier@gentoo.org>
489 * config/bfin-parse.y (BYTEUNPACK): Return yyerror when dest
490 reg $2 is the same as dest reg $4.
492 2011-03-29 Mike Frysinger <vapier@gentoo.org>
494 * config/bfin-parse.y (BYTEOP16M): Return yyerror when dest
495 reg $2 is the same as dest reg $4.
497 2011-03-29 Mike Frysinger <vapier@gentoo.org>
499 * config/bfin-parse.y (BYTEOP16P): Return yyerror when dest
500 reg $2 is the same as dest reg $4.
502 2011-03-28 Mike Frysinger <vapier@gentoo.org>
504 * config/bfin-parse.y (16bit acc add): Return yyerror when dest
505 reg $1 is the same as dest reg $7.
507 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
509 * config/tc-i386.c (handle_quad): New.
510 (md_pseudo_table): Add "quad".
512 2011-03-26 John Marino <binutils@marino.st>
514 * configure.tgt: Fix support for *-*-dragonfly*.
515 * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
516 * config/te-dragonfly.h: New file.
518 2011-03-24 Eric B. Weddington <eric.weddington@atmel.com>
520 * config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
521 atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
523 * doc/c-avr.texi: Document new device names.
525 2011-03-24 Mike Frysinger <vapier@gentoo.org>
527 * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
528 reg $1 is the same as dest reg $7.
529 (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
532 2011-03-24 Mike Frysinger <vapier@gentoo.org>
534 * config/bfin-parse.y (check_macfuncs): Clarify error message when
535 P is mismatched. Check destination regno are off by one when P is
536 set, or are equal when P is not set.
538 2011-03-23 Mike Frysinger <vapier@gentoo.org>
540 * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
541 the same as dest reg $4.
542 (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
544 2011-03-23 Eric B. Weddington <eric.weddington@atmel.com>
546 * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
547 atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
548 * doc/c-avr.texi: Document new device names.
550 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
552 * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
553 (AVR_INSN): Change definition to match.
554 (avr_opcodes): Likewise, change to match.
555 (mcu_types): Add XMEGA architecture names and new XMEGA device names.
556 (md_show_usage): Add XMEGA architecture names.
557 (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
558 Add support for SPM Z+ instruction.
559 * doc/c-avr.texi: Add documentation for XMEGA architectures and
562 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>
564 * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
566 2011-03-18 Alan Modra <amodra@gmail.com>
568 * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
569 on .size expression errors rather than symbols in the size expression.
571 2011-03-18 Alan Modra <amodra@gmail.com>
573 * input-scrub.c (line_numberT): Delete.
574 (input_scrub_close): Reset line counters.
575 * messages.c (as_show_where): Don't print invalid line number.
576 (as_warn_internal, as_bad_internal): Likewise.
578 2011-03-18 Alan Modra <amodra@gmail.com>
580 * read.c (read_a_source_file): Remove md_after_pass_hook.
581 Move "quit" label before set of dot_symbol.
582 * config/tc-d10v.h (md_after_pass_hook): Don't define.
583 * config/tc-d30v.h (md_after_pass_hook): Likewise.
584 * config/tc-m32r.h (md_after_pass_hook): Likewise.
585 (md_cleanup): Define to call m32r_fill_insn.
587 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
589 * config/tc-s390.c (md_parse_option): Add -march=all option which
590 switches to the highest available CPU.
592 2011-03-17 Alan Modra <amodra@gmail.com>
595 * expr.c (operand): Correct passing of "mode" to expr.
596 * read.c (do_org): Allow expr_section.
597 (get_known_segmented_expression): Don't assert anything about the
600 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
602 * as.c (show_usage): Add --size-check=.
603 (parse_args): Add and handle OPTION_SIZE_CHECK.
605 * as.h (flag_size_check): New.
607 * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
608 bad .size directive only for --size-check=error.
610 * doc/as.texinfo: Document --size-check=.
612 2011-03-14 Mike Frysinger <vapier@gentoo.org>
614 * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
615 bf542/bf544/bf547/bf548/bf549.
617 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
619 * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
620 determine whether a relocation is needed.
621 (md_apply_fix, arm_apply_sym_value): Likewise.
623 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
625 * config/tc-arm.c (arm_adjust_symtab): Set the branch type
628 2011-03-11 Nick Clifton <nickc@redhat.com>
630 * remap.c (remap_debug_filename): Always allocate a buffer for the
632 * stabs.c (stabs_generate_asm_file): Free the pointer returned by
633 remap_debug_filename.
635 2011-03-10 Michael Snyder <msnyder@vmware.com>
637 Revert the following change:
638 * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
639 (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
641 2011-03-10 Alan Modra <amodra@gmail.com>
643 * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
644 TARGET_SYMBOL_FIELDS): Don't define.
645 * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
647 2011-03-09 Michael Snyder <msnyder@vmware.com>
649 * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
650 (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
651 (emit_fixed_inc_line_addr): Assign instead of conditional in
654 2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
656 * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
657 non-constant .size expression.
659 2011-03-02 Nick Clifton <nickc@redhat.com>
661 * ecoff.c: Incldue filenames.h
663 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
665 * depend.c (register_dependency): Use filename_(n)cmp.
666 * dwarf2dbg.c (get_filenum): Likewise.
667 * ecoff.c (add_file): Likewise.
668 (ecoff_generate_asm_lineno): Likewise.
669 * input-scrub.c (new_logical_line_flags): Likewise.
670 * listing.c (file_info): Likewise.
671 (listing_newline): Likewise.
672 * remap.c (remap_debug_filename): Likewise.
673 * stabs.c (generate_asm_file): Likewise.
674 (stabs_generate_asm_lineno): Likewise.
676 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
678 * config/tc-mips.c (append_insn): Disable branch relaxation for
681 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
683 * config/tc-mips.c (macro): Handle M_PREF_AB.
685 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
687 * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
689 (RELAX_BRANCH_UNCOND): Adjust accordingly.
690 (RELAX_BRANCH_LIKELY): Likewise.
691 (RELAX_BRANCH_LINK): Likewise.
692 (RELAX_BRANCH_TOOFAR): Likewise.
693 (RELAX_BRANCH_AT): New macro.
694 (append_insn): Encode the temporary register to use in standard
695 MIPS branch relaxation.
696 (relaxed_branch_length): Update according to changes to
698 (md_convert_frag): Use the encoded register as the temporary.
700 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
702 * config/tc-mips.c (mips_fix_adjustable): On REL targets also
703 reject PC-relative relocations.
705 2011-02-28 Maciej W. Rozycki <macro@codesourcery.com>
707 * config/tc-mips.c (md_convert_frag): Correct message
710 2011-02-28 Alan Modra <amodra@gmail.com>
712 * symbols.c (report_op_error): Remove unnecessary forward declaration.
713 Add "op" parameter. Report operator and operand segments in error
714 message, not operand symbols.
715 (resolve_symbol_value): Always set segment for equated symbols, not
716 just when finalizing. Adjust report_op_error calls.
718 2011-02-25 H.J. Lu <hongjiu.lu@intel.com>
720 * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
721 if 64bit relocations aren't allowed.
723 2011-02-25 Alan Modra <amodra@gmail.com>
726 * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
728 2011-02-21 Maciej W. Rozycki <macro@codesourcery.com>
730 * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
731 initialization of offset_reloc.
733 2011-02-15 Richard Henderson <rth@redhat.com>
735 * dw2gencfi.c (dot_cfi_dummy): New.
736 (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
737 * read.c (pobegin): Unconditionally call cfi_pop_insert.
739 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
741 * configure: Regenerate.
743 2011-02-13 Mike Frysinger <vapier@gentoo.org>
745 * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
746 * config/bfin-parse.y (BYTEOP2M): Delete token.
747 (asm_1): Remove BYTEOP2M insn matching.
749 2011-02-12 Mike Frysinger <vapier@gentoo.org>
751 * config/bfin-defs.h: Include opcode/bfin.h.
752 (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
754 2011-02-11 Mike Frysinger <vapier@gentoo.org>
756 * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
757 (Modify Registers): Fix subtracted typo.
758 (.byte2): Extend and swap descriptions with .byte4.
759 (.byte4): Extend and swap descriptions with .byte2.
760 (.db, .dw, .dd): Document behavior.
762 2011-02-11 Mike Frysinger <vapier@gentoo.org>
764 * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
766 2011-02-11 Alan Modra <amodra@gmail.com>
768 * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
770 2011-02-10 Alan Modra <amodra@gmail.com>
772 * doc/as.texinfo (Overview): Add missing markup around Blackfin
775 2011-02-10 Alan Modra <amodra@gmail.com>
777 * config/tc-ppc.c (md_show_usage): Remove -l and -b. Add -K PIC.
778 * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
779 (Overview <Target PowerPC options>): Add a number of missing options.
780 * doc/c-ppc.texi: Likewise. Add markup for use in manpage generation.
782 2011-02-08 H.J. Lu <hongjiu.lu@intel.com>
785 * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
788 2011-02-08 H.J. Lu <hongjiu.lu@intel.com>
790 * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
792 (md_parse_option): Likewise.
794 2011-02-04 Bernd Schmidt <bernds@codesourcery.com>
796 * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
797 * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
798 (TIC6X Options): Don't mention "-matomic".
799 * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
800 (md_longopts): Remove corresponding entries.
801 (md_parse_option): Don't handle them.
802 (md_show_usage): Don't document them.
803 (tic6x_atomic): Delete variable.
804 (tic6x_update_features): Always copy tic6x_arch_enable to
806 (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
807 (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
808 (md_pseudo_table): Remove ".atomic" and ".noatomic".
810 2011-01-31 Nick Clifton <nickc@redhat.com>
812 * write.c (write_contents): Include output file name and bfd error
813 value when reporting the inability to write to the output file.
814 * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
815 frag that has a non-zero fill value.
817 2011-01-27 DJ Delorie <dj@redhat.com>
819 * config/tc-rx.c (md_convert_frag): If we can't compute the target
820 address, zero out the values stored in the object file to make
821 objdump's output consistent.
823 2011-01-26 Kai Tietz <kai.tietz@onevision.com>
825 * config/tc-i386.c (md_begin): Set for x64 windows COFF target
826 x86_dwarf2_return_column to 32.
828 2011-01-20 Nick Clifton <nickc@redhat.com>
831 * config/tc-h8300.c (constant_fits_width_p): Use correct type for
834 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
836 * write.c (compress_debug): Return if section size is smaller
839 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
842 * write.c (compress_debug): Return if section size is 0.
844 2011-01-18 Mingfeng Wu <mingfeng@faraday-tech.com>
846 * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
847 cores: fa606te, fa616te, fmp626. Modify the VFP of fa626te.
848 * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
851 2011-01-18 Nick Clifton <nickc@redhat.com>
854 * doc/all.texi: Add NS32K
855 * doc/as.texinfo: Remove target specific details of which
856 characters act as comment initiators and statement separators into
857 individual target specific files.
858 * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
859 the hash character at the start of a line.
860 * doc/c-arm.texi (ARM-Chars): Likewise.
861 * doc/c-avr.texi (AVR-Chars): Likewise.
862 * doc/c-d10v.texi (D10V-Chars): Likewise.
863 * doc/c-d30v.texi (D30V-Chars): Likewise.
864 * doc/c-mmix.texi (MMIX-Chars): Likewise.
865 * doc/c-s390.texi (s390 characters): Likewise.
866 * doc/c-sh.texi (SH-Chars): Likewise.
867 * doc/c-sh64.texi (SH64-Chars): Likewise.
868 * doc/c-sparc.texi (SPARC-Chars): Likewise.
869 * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
870 * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
871 * doc/c-z80.texi (Z80-Chars): Likewise.
872 * doc/c-z8k.texi (Z8000-Chars): Likewise.
873 * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
874 * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
875 * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
876 line separator characters.
877 * doc/c-cr16.texi (CR16 Syntax): Likewise.
878 * doc/c-i386.texi (i386-Chars): Likewise.
879 * doc/c-i860.texi (i860-Chars): Likewise.
880 * doc/c-i960.texi (i960-Chars): Likewise.
881 * doc/c-ip2k.texi (IP2K-Chars): Likewise.
882 * doc/c-lm32.texi (LM32-Chars): likewise.
883 * doc/c-m32c.texi (M32C-Chars): Likewise.
884 * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
885 * doc/c-m68k.texi (M68K-Chars): Likewise.
886 * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
887 * doc/c-msp430.texi (MSP430-Chars): Likewise.
888 * doc/c-mt.texi (MT-Chars): Likewise.
889 * doc/c-ns32k.texi (NS32K-Chars): Likewise.
890 * doc/c-pj.texi (PJ-Chars): Likewise.
891 * doc/c-ppc.texi (PowerPC-Chars): Likewise.
892 * doc/c-rx.texi (RX-Chars): Likewise.
893 * doc/c-score.texi (SCORE-Chars): Likewise.
894 * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
895 * doc/c-v850.texi (V850-Chars): Likewise.
896 * doc/c-vax.texi (VAX-Chars): Likewise.
897 * doc/c-xc16x.texi (xc16x-Chars): Likewise.
899 2011-01-17 Quentin Neill <quentin.neill@amd.com>
901 * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
903 * doc/c-i386.texi (i386-TBM): New section.
905 2011-01-16 H.J. Lu <hongjiu.lu@intel.com>
907 * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
908 (disallow_64bit_reloc): This.
909 (md_assemble): Don't check movabs for x32 mode here.
910 (i386_target_format): Updated.
911 (tc_gen_reloc): Check if 64bit relocations are allowed.
913 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
915 * config/tc-i386.c (disallow_64bit_disp): New.
916 (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
917 X86_64_ABI/X86_64_X32_ABI.
918 (md_assemble): Don't allow movabs with relocation in x32 mode.
919 (i386_target_format): Updated.
921 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
923 * config/tc-i386.c (OPTION_N32): Renamed to ...
925 (md_longopts): Replace n32 with x32.
926 (md_parse_option): Updated.
927 (md_show_usage): Likewise.
929 * doc/c-i386.texi: Replace --n32 with --x32.
931 2011-01-11 Mingjie Xing <mingjie.xing@gmail.com>
933 * config/tc-mips.c (mips_ip): Update error messages. Take an
934 unadjusted offset for "+c" argument.
936 2011-01-10 Nick Clifton <nickc@redhat.com>
938 * config/tc-i386.c (x86_elf_abi): Only define for targets that use
941 2011-01-10 Nick Clifton <nickc@redhat.com>
943 * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
946 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
947 Glauber de Oliveira Costa <glommer@gmail.com>
949 * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
950 .tlsdescseq directive.
951 * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
953 (s_arm_tls_descseq): New directive.
954 (md_pseudo_table): Add it.
955 (encode_branch): Allow TLS_CALL relocs too.
956 (do_t_blx, do_t_branch23): Use encode_branch.
957 (reloc_names): Add tlsdesc and tlscall.
958 (md_apply_fix): Process tls desc relocations.
959 (tc_gen_reloc): Likewise.
960 (arm_fix_adjustable): Likewise.
962 2011-01-07 Quentin Neill <quentin.neill@amd.com>
964 * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
966 * doc/c-i386.texi (i386-BMI): New section.
968 2011-01-06 Paul Koning <ni1d@arrl.net>
970 * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
971 references to absolute addresses.
973 2011-01-05 DJ Delorie <dj@redhat.com>
975 * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
976 instead of an RH_NEG32 one.
978 2011-01-05 Jonathan Wakely <jwakely.gcc@gmail.com>
980 * doc/c-i386.texi: Clarify --n32.
982 2011-01-04 H.J. Lu <hongjiu.lu@intel.com>
984 * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
985 integer registers in VEX.vvvv. Check register-only source
986 operand when two source operands are swapped. Properly update
987 destination when two source operands are swapped.
989 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
991 * gas.c (parse_args): Update copyright to 2011.
993 For older changes see ChangeLog-2010
999 version-control: never