* doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): Update
[binutils.git] / gas / ChangeLog
blob6bf4355f021fe21c35fa96022d2e9000d423d2ba
1 2011-12-13  Andrew Burgess  <aburgess@broadcom.com>
3         * doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): Update
4         to match code.
6 2011-12-08  Andrew Pinski  <apinski@cavium.com>
7             Adam Nemet  <anemet@caviumnetworks.com>
9         * tc-mips.c (CPU_IS_OCTEON): Add Octeon2.
10         (mips_cpu_info_table): Add Octeon2.
11         * doc/c-mips.texi: Document octeon2 as an acceptable value for -march=.
13 2011-12-07  Sameera Deshpande  <sameera.deshpande@arm.com>
15         * config/tc-arm.c (do_t_ldstd): Warn for unpredictable cases.
17 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
19         * config/tc-arm.c (ARM_IT_MAX_OPERANDS): New define.
20         (arm_it): Use ARM_IT_MAX_OPERANDS.
21         (neon_select_shape): Ensure we have matched all operands.
23 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
25         * config/tc-arm.c (parse_neon_mov): Update which_operand
26         correctly.
28 2011-12-05  Richard Earnshaw  <rearnsha@arm.com>
30         * tc-arm.c (aeabi_set_public_attributes): Correctly set
31         Tag_ARM_ISA_use and Tag_Thumb_ISA_use.
33 2011-11-30  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
35         * config/tc-arm.c (arm_cpu_option_table): Add name_len field.
36         (arm_arch_option_table): Likewise.
37         (arm_option_extension_value_table): Likewise.
38         (ARM_CPU_OPT): New define.
39         (ARM_ARCH_OPT): Likewise.
40         (ARM_EXT_OPT): Likewise.
41         (arm_cpus): Use ARM_CPU_OPT to initialize.
42         (arm_archs): Use ARM_ARCH_OPT to initialize.
43         (arm_extensions): Use ARM_EXT_OPT to initialize.
44         (arm_parse_extension): Ensure option string matching matches
45         the whole string.
46         (arm_parse_cpu): Likewise.
47         (arm_parse_arch): Likewise.
49 2011-11-29  Andrew Pinski  <apinski@cavium.com>
51         * config/tc-mips.c (CPU_IS_OCTEON): New macro function.
52         (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
53         (NO_ISA_COP): Likewise.
54         (macro) <ld_st>: Add support when off0 is true.
55         Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
56         (mips_cpu_info_table): Add octeon+.
57         * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
59 2011-11-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
61         * config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
62         is specified.
64 2011-11-23  Tristan Gingold  <gingold@adacore.com>
66         * config/tc-alpha.c (s_alpha_prologue): Requires empty line.
68 2011-11-23  Tristan Gingold  <gingold@adacore.com>
70         * config/tc-alpha.c (s_alpha_frame): Emit a warning if bad value
71         of RA.
72         (s_alpha_pdesc): Adjust comment.
74 2011-11-23  Thomas Klein  <th.r.klein@web.de>
76         * config/tc-arm.c (do_t_mov_cmp): Prevent emitting code for MOV
77         with two low register at arch v4t or v5t when assember using
78         unified syntax.
80 2011-11-21  DJ Delorie  <dj@redhat.com>
82         * config/rl78-defs.h (rl78_error): Add "const".
83         * config/rl78-parse.y (rl78_error): Likewise.
85 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
87         * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.
89 2011-11-16  David S. Miller  <davem@davemloft.net>
91         * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8.
93 2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
95         * config/tc-mips.c (macro): Fix unsupported opcode message
96         capitalization.
97         (mips_ip, mips16_ip): Likewise.
99 2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
101         * config/tc-mips.c (ISA_SUPPORTS_MCU_ASE): Also set if microMIPS
102         mode.
104 2011-11-16  Maciej W. Rozycki  <macro@codesourcery.com>
106         * config/tc-mips.c (macro_build_jalr): Reverse a negative
107         conditional.
108         (mips_ip): Likewise.
110 2011-11-16  Catherine Moore  <clm@codesourcery.com>
111             Maciej W. Rozycki  <macro@codesourcery.com>
113         * config/tc-mips.c (mips_cpu_info_table): Add "m14ke" and
114         "m14kec".
115         * doc/c-mips.texi (MIPS architecture options): Add "m14ke" and
116         "m14kec" to the list of -march options.
118 2011-11-15  Maciej W. Rozycki  <macro@codesourcery.com>
120         * write.c (dump_section_relocs): Don't convert PC-relative relocs
121         that have an in-place addend narrower than the addresses used.
123 2011-11-14  Maciej W. Rozycki  <macro@codesourcery.com>
125         * config/tc-mips.c (can_swap_branch_p): Exclude microMIPS
126         variant frags too.
128 2011-11-07  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
130         * config/tc-arm.c (arm_cpus): Add cortex-a7 entry.
131         * doc/c-arm.texi (ARM Options): Add cortex-a7 to list of accepted
132         CPUs.
134 2011-11-04  DJ Delorie  <dj@redhat.com>
136         * doc/c-rl78.texi (RL78-Float): Remove unused menu entry.
138 2011-11-02  DJ Delorie  <dj@redhat.com>
140         * config/tc-rl78.c (tc_gen_reloc): Remove unused variable.
142 2011-11-02  Nick Clifton  <nickc@redhat.com>
144         * config/tc-arm.c (md_begin): Remove ARM_PLT32 reloc associated
145         with the (PLT) instruction suffix when operating in eabi mode.
146         * doc/c-arm.texi (ARM_Relocations): Extend description of (PLT)
147         suffix.
149 2011-11-01  DJ Delorie  <dj@redhat.com>
151         * Makefile.am (TARGET_CPU_CFILES): Add tc-rl78.c.
152         (TARGET_CPU_HFILES): Add rc-rl78.h.
153         (EXTRA_DIST): Add rl78-parse.c and rl78-parse.y.
154         (rl78-parse.c, rl78-parse.h, rl78-parse.o, rl78-defs.h): New rules.
155         * Makefile.in: Regenerate.
156         * configure.in: Add rl78 case.
157         * configure: Regenerate.
158         * configure.tgt: Add rl78 case.
159         * config/rl78-defs.h: New file.
160         * config/rl78-parse.y: New file.
161         * config/tc-rl78.c: New file.
162         * config/tc-rl78.h: New file.
163         * NEWS: Add Renesas RL78.
165         * doc/Makefile.am (c-rl78.texi): New.
166         * doc/Makefile.in: Likewise.
167         * doc/all.texi: Enable it.
168         * doc/as.texi: Add it.
169         * doc/c-rl78.texi: New file.
171 2011-10-28  Walter Lee  <walt@tilera.com>
173         * NEWS: Fix TILEPro capitalization.
174         * config/tc-tilegx.c (emit_tilegx_instruction) Handle
175         relocations of aliases.
176         * config/tc-tilepro.c: (emit_tilepro_instruction) Likewise.
178 2011-10-28  Nick Clifton  <nickc@redhat.com>
180         * po/ja.po: New Japanese translation.
181         * configure.in (ALL_LINGUAS): Add ja.
182         * configure: Regenerate.
184 2011-10-26  Joern Rennecke  <joern.rennecke@embecosm.com>
186         * doc/as.texinfo [EPIPHANY]: Include c-epiphany.texi to avoid
187         duplication.
189 2011-10-25  Mike Frysinger  <vapier@gentoo.org>
191         * config/rx-defs.h (rx_error): Add const to first arg.
192         * config/rx-parse.y (rx_error): Likewise.
194 2011-10-25  Nick Clifton  <nickc@redhat.com>
196         * config/tc-ns32k.c (md_begin): Rename local variable 'stat' to
197         'status'.
199 2011-10-25  Joern Rennecke  <joern.rennecke@embecosm.com>
201         * NEWS: Mention addition of Adapteva Epiphany support.
202         * config/tc-epiphany.c: New file.
203         * config/tc-epiphany.h: New file.
204         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c .
205         (TARGET_CPU_HFILES): Add config/tc-epiphany.h .
206         * configure.in: Also set using_cgen for epiphany.
207         * configure.tgt: Handle epiphany.
208         * doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi .
209         * doc/all.texi: Set EPIPHANY.
210         * doc/as.texinfo: Add EPIPHANY-specific text.
211         * doc/c-epiphany.texi: New file.
212         * po/gas.pot: Regenerate.
213         * Makefile.in: Regenerate.
214         * configure: Regenerate.
215         * doc/Makefile.in: Regenerate.
216         * po/POTFILES.in: Regenerate.
218 2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
220         * config/tc-mips.c (move_register): Fix formatting.
222 2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
224         * config/tc-mips.c (can_swap_branch_p): Remove empty line.
225         (start_noreorder): Likewise.
227 2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
229         * config/tc-mips.c (s_option): Fix formatting.
230         (mips_elf_final_processing): Likewise.
232 2011-10-24  Maciej W. Rozycki  <macro@codesourcery.com>
234         * config/tc-mips.c (validate_micromips_insn): Fix formatting.
236 2011-10-24  David Binderman  <dcb314@hotmail.com>
238         * config/tc-mn10200.c (md_convert_frag): Add missing break.
240 2011-10-21  Tristan Gingold  <gingold@adacore.com>
242         * config/tc-alpha.c (load_expression): Use symbol_mark_used accessor.
243         (s_alpha_comm): Use symbol_set_frag accessor.
245 2011-10-20  Alan Modra  <amodra@gmail.com>
247         * config/tc-mips.c (micromips_add_label): Avoid gcc warning.
248         (md_convert_frag): Likewise.
250 2011-10-18  Jie Zhang  <jie@codesourcery.com>
251             Julian Brown  <julian@codesourcery.com>
253         * config/tc-arm.c (parse_shifter_operand): Fix handling of explicit
254         rotation.
255         (encode_arm_shifter_operand): Likewise.
257 2011-10-13  James Greenhalgh  <james.greenhalgh@arm.com>
259         * config/tc-arm.c (check_ldr_r15_aligned): New.
260         (do_ldst): Warn in upredictable cases.
261         (do_t_ldst): Likewise.
262         (insns): Update accordingly.
264 2011-10-13  Alan Modra  <amodra@gmail.com>
266         * as.c (main): Define .gasversion. rather than __GAS_VERSION__.
267         * frags.h (bss_address_frag): Delete
268         (predefined_address_frag): New.
269         * frags.c (frag_init): Init predefined_address_frag.  Delete ref
270         to bss_address_frag.
271         * symbols.c (S_CAN_BE_REDEFINED): New function.
272         * symbols.h (S_CAN_BE_REDEFINED): Declare.
273         * read.c (assign_symbol): Use S_CAN_BE_REDEFINED.
275 2011-10-12  Alan Modra  <amodra@gmail.com>
277         * symbols.c (local_symbol_make): Make global.
278         * symbols.h (local_symbol_make): Declare.
279         * as.c (main): Define __GAS_VERSION__.
281 2011-10-10  Nick Clifton  <nickc@redhat.com>
283         * po/es.po: Updated Spanish translation.
284         * po/fi.po: Updated Finnish translation.
285         * po/fr.po: Updated French translation.
287 2011-10-05  DJ Delorie  <dj@redhat.com>
288             Nick Clifton  <nickc@redhat.com>
290         * config/rx-defs.h (rx_pid_register): New.
291         (rx_gp_register): New.
292         * config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg.
293         (displacement): Add PID support.
294         * config/tc-rx.c (rx_pid_mode): New.
295         (rx_num_int_regs): New.
296         (rx_pid_register): New.
297         (rx_gp_register): New.
298         (options): Add -mpid and -mint-register= options.
299         (md_longopts): Likewise.
300         (md_parse_option): Likewise.
301         (md_show_usage): Likewise.
302         (rx_pid_symbol): New.
303         (rx_pidreg_symbol): New.
304         (rx_gpreg_symbol): New.
305         (md_begin): Support PID.
306         (rx_validate_fix_sub): Support PID.
307         (tc_gen_reloc): Support PID.
308         * doc/c-rx.texi: Document PID support.
310 2011-09-27  Kai Tietz  <ktietz@redhat.com>
312         * config/obj-coff.c (obj_coff_section): Add 'e' as specifier
313         for marking section SEC_EXCLUDE.
315 2011-09-22  Tristan Gingold  <gingold@adacore.com>
317         * NEWS: Add marker for 2.22.
319 2011-09-21  David S. Miller  <davem@davemloft.net>
321         * config/tc-sparc.c (hwcap_allowed): New.
322         (struct sparc_arch): New field 'hwcap_allowed' containing a bitmask
323         of F_FOO flags which are enabled by the particular arch setting.
324         Add new options that provide explicit access to new instructions.
325         (md_parse_option): Only bump max_architecture if the requested one
326         is larger, or this is the first explicit request.
327         (get_hwcap_name): New function.
328         (sparc_ip): Validate that hwcaps used by an instruction have actually
329         been enabled.
330         * doc/c-sparc.texi: Document new sparc options.
332 2011-09-21  David S. Miller  <davem@davemloft.net>
334         * config/tc-sparc.c (hwcap_seen): New bitmask, defined when
335         not TE_SOLARIS.
336         (sparc_ip): When not TE_SOLARIS, accumulate hwcap bits from
337         sparc_opcode->flags of instruction into hwcap_seen.
338         (sparc_md_end): Create Tag_GNU_Sparc_HWCAPS attribute if
339         hwcap_seen is non-zero and not TE_SOLARIS.
341 2011-09-19  Tristan Gingold  <gingold@adacore.com>
343         * config/tc-alpha.c (insert_operand): Call as_bad_value_out_of_range
344         instead of as_warn_out_of_range.
346 2011-09-08  Mark Fortescue <mark@mtfhpc.demon.co.uk>
348         * config/tc-sparc.c (sparc_ip): Handle 'i' + r<0..31>
349         in addition to 'i' + [goli]<0..7>.
351 2011-09-08  Joern Rennecke <joern.rennecke@embecosm.com>
353         * cgen.c (gas_cgen_pcrel_r_type): New function.
354         (gas_cgen_tc_gen_reloc): Check for GAS_CGEN_PCREL_R_TYPE.
355         * cgen.h (gas_cgen_pcrel_r_type): Declare.
357 2011-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
359         PR gas/13167
360         * dwarf2dbg.c (dwarf2_flush_pending_lines): Use symbol_temp_new_now.
362 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
364         PR gas/13024
365         * dwarf2dbg.c (pending_lines, pending_lines_tail): New variables.
366         (dwarf2_gen_line_info_1): Delete.
367         (dwarf2_push_line, dwarf2_flush_pending_lines): New functions.
368         (dwarf2_gen_line_info, dwarf2_emit_label): Use them.
369         (dwarf2_consume_line_info): Call dwarf2_flush_pending_lines.
370         (dwarf2_directive_loc): Push previous .locs instead of generating
371         them immediately.
373 2011-08-26  Nick Clifton  <nickc@redhat.com>
375         * po/es.po: Updated Spanish translation.
377 2011-08-26  Tristan Gingold  <gingold@adacore.com>
379         * config/tc-alpha.c (s_alpha_linkage): Simplify.  Add comments.
381 2011-08-26  Tristan Gingold  <gingold@adacore.com>
383         * config/tc-alpha.c (add_to_link_pool): Improve comment.
384         (s_alpha_fp_save): Fix indentation.
386 2011-08-19  Nick Clifton  <nickc@redhat.com>
388         * doc/as.texinfo: Include c-xstormy16.texi.
390 2011-08-18  Alan Modra  <amodra@gmail.com>
392         * write.c (resolve_reloc_expr_symbols): Convert local symbols
393         on relocs to section+offset.
394         (get_frag_for_reloc): New function.
395         (write_relocs): Merge sort fixup relocs with those from .reloc
396         directives.
398 2011-08-10  Maciej W. Rozycki  <macro@codesourcery.com>
400         * config/tc-mips.c (can_swap_branch_p): Update the comment on
401         MIPS16 fixups.
403 2011-08-09  Chao-ying Fu  <fu@mips.com>
404             Daniel Jacobowitz  <dan@codesourcery.com>
406         * config/tc-mips.c (mips_cpu_info_table): Add "m14k" and
407         "m14kc".
408         * doc/c-mips.texi (MIPS architecture options): Add "m14k" and
409         "m14kc" to the list of -march options.
411 2011-08-09  Chao-ying Fu  <fu@mips.com>
412             Maciej W. Rozycki  <macro@codesourcery.com>
414         * config/tc-mips.c (mips_set_options): Add ase_mcu.
415         (mips_opts): Initialise ase_mcu to -1.
416         (ISA_SUPPORTS_MCU_ASE): New macro.
417         (MIPS_CPU_ASE_MCU): Likewise.
418         (is_opcode_valid): Handle MCU.
419         (macro_build, macro): Likewise.
420         (validate_mips_insn, validate_micromips_insn): Likewise.
421         (mips_ip): Likewise.
422         (options): Add OPTION_MCU and OPTION_NO_MCU.
423         (md_longopts): Add mmcu and mno-mcu.
424         (md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU.
425         (mips_after_parse_args): Handle MCU.
426         (s_mipsset): Likewise.
427         (md_show_usage): Handle MCU options.
429         * doc/as.texinfo: Document -mmcu and -mno-mcu options.
430         * doc/c-mips.texi: Likewise, and document ".set mcu" and
431         ".set nomcu" directives.
433 2011-08-09  Maciej W. Rozycki  <macro@codesourcery.com>
435         * config/tc-mips.c (gpr_mod_mask): Remove INSN2_MOD_GPR_MB,
436         INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG,
437         INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MM,
438         INSN2_MOD_GPR_MN, INSN2_MOD_GPR_MP and INSN2_MOD_GPR_MQ opcode
439         register use checks.
440         (gpr_read_mask): Add INSN2_READ_GPR_MC, INSN2_READ_GPR_ME
441         INSN2_READ_GPR_MG, INSN2_READ_GPR_MJ, INSN2_READ_GPR_MMN,
442         INSN2_READ_GPR_MP and INSN2_READ_GPR_MQ opcode register use
443         checks.
444         (gpr_write_mask): Replace INSN2_WRITE_GPR_S opcode register
445         use flag with INSN_WRITE_GPR_S.  Add INSN2_WRITE_GPR_MB,
446         INSN2_WRITE_GPR_MHI, INSN2_WRITE_GPR_MJ and INSN2_WRITE_GPR_MP
447         opcode register use checks.
448         (can_swap_branch_p): Enable microMIPS branch swapping.
449         (append_insn): Likewise.
451 2011-08-09  Maciej W. Rozycki  <macro@codesourcery.com>
453         * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Remove forced 16-bit
454         branch size information.
455         (RELAX_MICROMIPS_U16BIT): Remove macro.
456         (RELAX_MICROMIPS_UNCOND): Adjust accordingly.
457         (RELAX_MICROMIPS_COMPACT, RELAX_MICROMIPS_LINK): Likewise.
458         (RELAX_MICROMIPS_RELAX32): Likewise.
459         (RELAX_MICROMIPS_TOOFAR16): Likewise.
460         (RELAX_MICROMIPS_MARK_TOOFAR16): Likewise.
461         (RELAX_MICROMIPS_CLEAR_TOOFAR16): Likewise.
462         (RELAX_MICROMIPS_TOOFAR32): Likewise.
463         (RELAX_MICROMIPS_MARK_TOOFAR32): Likewise.
464         (RELAX_MICROMIPS_CLEAR_TOOFAR32): Likewise.
465         (append_insn): Always check forced_insn_length for microMIPS
466         relaxation.  Adjust code for the removal of
467         RELAX_MICROMIPS_U16BIT.
468         (mips_ip) <'D', 'E'>: If forced_insn_length, then emit the
469         relocation straight away.
470         (relaxed_micromips_16bit_branch_length): Adjust code for the
471         removal of RELAX_MICROMIPS_U16BIT.
473 2011-08-08  Tristan Gingold  <gingold@adacore.com>
475         * config/obj-macho.c (obj_mach_o_section): New function.
476         (struct known_section): New type.
477         (known_sections): Declare.
478         (obj_mach_o_known_section): New function.
479         (obj_mach_o_common_parse): Ditto.
480         (obj_mach_o_comm): Ditto.
481         (obj_mach_o_subsections_via_symbols): Ditto.
482         (mach_o_pseudo_table): Add new pseudos.
484 2011-08-06  Richard Henderson  <rth@redhat.com>
486         * dw2gencfi.c (all_fde_data): Export.
487         * dw2gencfi.h (all_fde_data): Declare.
488         * config/tc-alpha.c (alpha_elf_md_end): Don't convert legacy unwind
489         info to cfi unwind info if the user already has supplied some.
491 2011-08-06  Richard Sandiford  <rdsandiford@googlemail.com>
493         * config/tc-mips.c (emit_nop): Delete.
494         (get_delay_slot_nop): New function.
495         (nops_for_insn_or_target): Use it.
496         (append_insn): Likewise.  When avoiding hazards, call add_fixed_insn
497         and insert_into_history directly.
499 2011-08-06  Richard Sandiford  <rdsandiford@googlemail.com>
501         * config/tc-mips.c (delayed_branch_p, compact_branch_p)
502         (uncond_branch_p, branch_likely_p): New functions.
503         (insns_between, nops_for_insn_or_target, append_insn)
504         (macro_start): Use them.
505         (get_append_method): Likewise.  Remove redundant test.
507 2011-08-05  David S. Miller  <davem@davemloft.net>
509         * config/tc-sparc.c (v9a_asr_table): Add "cps".
510         (sparc_ip): Handle '4', '5' and '(' format codes.
512 2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>
514         PR gas/13056
515         * output-file.c (output_file_close): Call bfd_cache_close_all
516         on error.
518         * write.c (write_object_file): Revert the last change.
520 2011-08-04  Alan Modra  <amodra@gmail.com>
522         * write.c (write_object_file): Call set_symtab even if we had
523         errors.
525 2011-08-04  Tristan Gingold  <gingold@adacore.com>
527         * config/obj-elf.c (obj_elf_section): Do not free name.
529 2011-08-03  James Greenhalgh  <james.greenhalgh@arm.com>
531         * config/tc-arm.c (do_t_strexbh): New.
532         (insns): Update accordingly.
534 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
536         PR ld/13048
537         * config/tc-i386.c (handle_quad): Removed.
538         (md_pseudo_table): Remove "quad".
539         (tc_gen_reloc): Don't check BFD_RELOC_64 for disallow_64bit_reloc.
540         (x86_dwarf2_addr_size): New.
542         * config/tc-i386.h (x86_dwarf2_addr_size): New.
543         (DWARF2_ADDR_SIZE): Likewise.
545 2011-08-01  Nick Clifton  <nickc@redhat.com>
547         PR ld/12974
548         * config/tc-arm.c (literal_pool): Add locs field.
549         (add_to_lit_pool): Initialise the locs entry for the new literal.
550         (s_ltorg): Generate a DWARF2 line number entry for each emitted
551         literal pool entry.
553 2011-08-01  Tristan Gingold  <gingold@adacore.com>
555         * write.c (write_relocs): Fix -Wshadow in DEBUG3 and DEBUG4.
557 2011-08-01  Tristan Gingold  <gingold@adacore.com>
559         * frags.c (frag_grow): Simplify the code.
561 2011-07-30  Richard Sandiford  <rdsandiford@googlemail.com>
563         * config/tc-mips.c (nops_for_vr4130): Revert previous commit.
565 2011-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
567         * config/tc-mips.c: Adjust comments throughout.
568         (reglist_lookup): Reshape code.
569         (jmp_reloc_p, jalr_reloc_p): Reformat.
570         (got16_reloc_p, hi16_reloc_p, lo16_reloc_p): Handle microMIPS
571         relocations.
572         (gpr_mod_mask): Remove unused variable.
573         (gpr_read_mask, gpr_write_mask): Reshape code.
574         (fpr_read_mask, fpr_write_mask): Likewise.
575         (nops_for_vr4130): Ensure non-microMIPS mode.
576         (can_swap_branch_p): Correct pinfo2 reference.  Reshape code.
577         (append_insn): Skip Loongson 2F workaround in MIPS16 mode.  Use
578         the outermost operator of a compound relocation to determines
579         the relocated field.  Fix formatting.
580         (md_convert_frag): Reshape code.
582 2011-07-29  Tristan Gingold  <gingold@adacore.com>
584         * frags.c (frag_var_init): New function.
585         (frag_var): Call frag_var_init to initialize.
586         (frag_variant): Ditto.
588 2011-07-27  Nathan Sidwell  <nathan@codesourcery.com>
590         * dwarf2dbg.c (out_debug_line): Ignore non-normal segments, with a
591         warning.
592         * doc/as.texinfo (Offset): Document .offset directive.
594 2011-07-27  Tristan Gingold  <gingold@adacore.com>
596         * frags.c (frag_grow): Revert previous patch.
598 2011-07-26  Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
600         * config/tc-rx.c (md_convert_frag): Fix encoding of beq.a
601         synthetic instruction.
603 2011-07-25  Tristan Gingold  <gingold@adacore.com>
605         * frags.c (frag_grow): Simplify the code.
607 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
608             Chao-ying Fu  <fu@mips.com>
609             Richard Sandiford  <rdsandiford@googlemail.com>
611         * config/tc-mips.h (mips_segment_info): Add one bit for
612         microMIPS.
613         (TC_LABEL_IS_LOCAL): New macro.
614         (mips_label_is_local): New prototype.
615         * config/tc-mips.c (S0, S7): New macros.
616         (emit_branch_likely_macro): New variable.
617         (mips_set_options): Add micromips.
618         (mips_opts): Initialise micromips to -1.
619         (file_ase_micromips): New variable.
620         (CPU_HAS_MICROMIPS): New macro.
621         (hilo_interlocks): Set for microMIPS too.
622         (gpr_interlocks): Likewise.
623         (cop_interlocks): Likewise.
624         (cop_mem_interlocks): Likewise.
625         (HAVE_CODE_COMPRESSION): New macro.
626         (micromips_op_hash): New variable.
627         (micromips_nop16_insn, micromips_nop32_insn): New variables.
628         (NOP_INSN): Handle microMIPS ASE.
629         (mips32_to_micromips_reg_b_map): New macro.
630         (mips32_to_micromips_reg_c_map): Likewise.
631         (mips32_to_micromips_reg_d_map): Likewise.
632         (mips32_to_micromips_reg_e_map): Likewise.
633         (mips32_to_micromips_reg_f_map): Likewise.
634         (mips32_to_micromips_reg_g_map): Likewise.
635         (mips32_to_micromips_reg_l_map): Likewise.
636         (mips32_to_micromips_reg_n_map): Likewise.
637         (mips32_to_micromips_reg_h_map): New variable.
638         (mips32_to_micromips_reg_m_map): Likewise.
639         (mips32_to_micromips_reg_q_map): Likewise.
640         (micromips_to_32_reg_h_map): New variable.
641         (micromips_to_32_reg_i_map): Likewise.
642         (micromips_to_32_reg_m_map): Likewise.
643         (micromips_to_32_reg_q_map): Likewise.
644         (micromips_to_32_reg_b_map): New macro.
645         (micromips_to_32_reg_c_map): Likewise.
646         (micromips_to_32_reg_d_map): Likewise.
647         (micromips_to_32_reg_e_map): Likewise.
648         (micromips_to_32_reg_f_map): Likewise.
649         (micromips_to_32_reg_g_map): Likewise.
650         (micromips_to_32_reg_l_map): Likewise.
651         (micromips_to_32_reg_n_map): Likewise.
652         (micromips_imm_b_map, micromips_imm_c_map): New macros.
653         (RELAX_DELAY_SLOT_16BIT): New macro.
654         (RELAX_DELAY_SLOT_SIZE_FIRST): Likewise.
655         (RELAX_DELAY_SLOT_SIZE_SECOND): Likewise.
656         (RELAX_MICROMIPS_ENCODE, RELAX_MICROMIPS_P): New macros.
657         (RELAX_MICROMIPS_TYPE, RELAX_MICROMIPS_AT): Likewise.
658         (RELAX_MICROMIPS_U16BIT, RELAX_MICROMIPS_UNCOND): Likewise.
659         (RELAX_MICROMIPS_COMPACT, RELAX_MICROMIPS_LINK): Likewise.
660         (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16): Likewise.
661         (RELAX_MICROMIPS_MARK_TOOFAR16): Likewise.
662         (RELAX_MICROMIPS_CLEAR_TOOFAR16): Likewise.
663         (RELAX_MICROMIPS_TOOFAR32): Likewise.
664         (RELAX_MICROMIPS_MARK_TOOFAR32): Likewise.
665         (RELAX_MICROMIPS_CLEAR_TOOFAR32): Likewise.
666         (INSERT_OPERAND, EXTRACT_OPERAND): Handle microMIPS ASE.
667         (mips_macro_warning): Add delay_slot_16bit_p, delay_slot_32bit_p,
668         fsize and insns.
669         (mips_mark_labels): New function.
670         (mips16_small, mips16_ext): Remove variables, replacing with...
671         (forced_insn_size): ... this.
672         (append_insn, mips16_ip): Update accordingly.
673         (micromips_insn_length): New function.
674         (insn_length): Return the length of microMIPS instructions.
675         (mips_record_mips16_mode): Rename to...
676         (mips_record_compressed_mode): ... this.  Handle microMIPS ASE.
677         (install_insn): Handle microMIPS ASE.
678         (reglist_lookup): New function.
679         (is_size_valid, is_delay_slot_valid): Likewise.
680         (md_begin): Handle microMIPS ASE.
681         (md_assemble): Likewise.  Update for append_insn interface change.
682         (micromips_reloc_p): New function.
683         (got16_reloc_p): Handle microMIPS ASE.
684         (hi16_reloc_p): Likewise.
685         (lo16_reloc_p): Likewise.
686         (jmp_reloc_p): New function.
687         (jalr_reloc_p): Likewise.
688         (matching_lo_reloc): Handle microMIPS ASE.
689         (insn_uses_reg, reg_needs_delay): Likewise.
690         (mips_move_labels): Likewise.
691         (mips16_mark_labels): Rename to...
692         (mips_compressed_mark_labels): ... this.  Handle microMIPS ASE.
693         (gpr_mod_mask): New function.
694         (gpr_read_mask, gpr_write_mask): Handle microMIPS ASE.
695         (fpr_read_mask, fpr_write_mask): Likewise.
696         (insns_between, nops_for_vr4130, nops_for_insn): Likewise.
697         (fix_loongson2f_nop, fix_loongson2f_jump): Likewise.
698         (MICROMIPS_LABEL_CHAR): New macro.
699         (micromips_target_label, micromips_target_name): New variables.
700         (micromips_label_name, micromips_label_expr): New functions.
701         (micromips_label_inc, micromips_add_label): Likewise.
702         (mips_label_is_local): Likewise.
703         (micromips_map_reloc): Likewise.
704         (can_swap_branch_p): Handle microMIPS ASE.
705         (append_insn): Add expansionp argument.  Handle microMIPS ASE.
706         (start_noreorder, end_noreorder): Handle microMIPS ASE.
707         (macro_start, macro_warning, macro_end): Likewise.
708         (brk_fmt, cop12_fmt, jalr_fmt, lui_fmt): New variables.
709         (mem12_fmt, mfhl_fmt, shft_fmt, trap_fmt): Likewise.
710         (BRK_FMT, COP12_FMT, JALR_FMT, LUI_FMT): New macros.
711         (MEM12_FMT, MFHL_FMT, SHFT_FMT, TRAP_FMT): Likewise.
712         (macro_build): Handle microMIPS ASE.  Update for append_insn
713         interface change.
714         (mips16_macro_build): Update for append_insn interface change.
715         (macro_build_jalr): Handle microMIPS ASE.
716         (macro_build_lui): Likewise.  Simplify.
717         (load_register): Handle microMIPS ASE.
718         (load_address): Likewise.
719         (move_register): Likewise.
720         (macro_build_branch_likely): New function.
721         (macro_build_branch_ccl): Likewise.
722         (macro_build_branch_rs): Likewise.
723         (macro_build_branch_rsrt): Likewise.
724         (macro): Handle microMIPS ASE.
725         (validate_micromips_insn): New function.
726         (expr_const_in_range): Likewise.
727         (mips_ip): Handle microMIPS ASE.
728         (options): Add OPTION_MICROMIPS and OPTION_NO_MICROMIPS.
729         (md_longopts): Add mmicromips and mno-micromips.
730         (md_parse_option): Handle OPTION_MICROMIPS and
731         OPTION_NO_MICROMIPS.
732         (mips_after_parse_args): Handle microMIPS ASE.
733         (md_pcrel_from): Handle microMIPS relocations.
734         (mips_force_relocation): Likewise.
735         (md_apply_fix): Likewise.
736         (mips_align): Handle microMIPS ASE.
737         (s_mipsset): Likewise.
738         (s_cpload, s_cpsetup, s_cpreturn): Use relocation wrappers.
739         (s_dtprel_internal): Likewise.
740         (s_gpword, s_gpdword): Likewise.
741         (s_insn): Handle microMIPS ASE.
742         (s_mips_stab): Likewise.
743         (relaxed_micromips_32bit_branch_length): New function.
744         (relaxed_micromips_16bit_branch_length): New function.
745         (md_estimate_size_before_relax): Handle microMIPS ASE.
746         (mips_fix_adjustable): Likewise.
747         (tc_gen_reloc): Handle microMIPS relocations.
748         (mips_relax_frag): Handle microMIPS ASE.
749         (md_convert_frag): Likewise.
750         (mips_frob_file_after_relocs): Likewise.
751         (mips_elf_final_processing): Likewise.
752         (mips_nop_opcode): Likewise.
753         (mips_handle_align): Likewise.
754         (md_show_usage): Handle microMIPS options.
755         * symbols.c (TC_LABEL_IS_LOCAL): New macro.
756         (S_IS_LOCAL): Add a TC_LABEL_IS_LOCAL check.
758         * doc/as.texinfo (Target MIPS options): Add -mmicromips and
759         -mno-micromips.
760         (-mmicromips, -mno-micromips): New options.
761         * doc/c-mips.texi (-mmicromips, -mno-micromips): New options.
762         (MIPS ISA): Document .set micromips and .set nomicromips.
763         (MIPS insn): Update for microMIPS support.
765 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
767         * config/tc-mips.c (mips_ip): Make a copy of the instruction's
768         mnemonic and use it for further processing.
770 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
772         * config/tc-mips.c (can_swap_branch_p): Adjust for the rename of
773         INSN_TRAP to INSN_NO_DELAY_SLOT.  Remove the check for INSN_SYNC
774         as well as explicit checks for ERET and DERET when scheduling
775         branch delay slots.
777 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
779         * config/tc-i386.c (cpu_arch): Add k1om.
780         (i386_align_code): Handle PROCESSOR_K1OM.
781         (check_cpu_arch_compatible): Check EM_K1OM.
782         (i386_arch): Handle Intel K1OM.
783         (i386_mach): Return bfd_mach_k1om for Intel K1OM.
784         (i386_target_format): Return ELF_TARGET_K1OM_FORMAT for Intel
785         K1OM.
787         * config/tc-i386.h (ELF_TARGET_K1OM_FORMAT): New.
788         (processor_type): Add PROCESSOR_K1OM.
790         * doc/c-i386.texi: Document k1om.
792 2011-07-18  H.J. Lu  <hongjiu.lu@intel.com>
794         * doc/c-i386.texi: Fix a typo.
796 2011-07-06  Aurelien Jarno  <aurelien@aurel32.net>
798         * config/tc-mips.c (append_insn): delete prev_pinfo2 and pinfo2.
800 2011-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
802         * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Fix handling
803         of register 0.
805 2011-07-04  Maciej W. Rozycki  <macro@codesourcery.com>
807         * config/tc-mips.c (append_insn): Make sure DWARF-2 location
808         information is properly adjusted for branches that get swapped.
810 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
811             Thomas Schwinge  <thomas@schwinge.name>
813         PR binutils/12913
814         * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of
815         ELFOSABI_LINUX alias.
816         * config/tc-ia64.c: Likewise.
818 2011-06-30  Paul Carroll  <pcarroll@codesourcery.com>
820         * config/tc-arm.c (do_t_add_sub): Only allow LSL shifts of less
821         than 4 in Thumb mode.
823 2011-06-30  Nick Clifton  <nickc@redhat.com>
825         PR gas/12848
826         * config/tc-arm.c (BAD_RANGE): New error message define.
827         (md_apply_fix): Use it.
828         Fix range check for thumb branch instructions.
830 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
832         * config/tc-mips.c (append_method): New enum.
833         (can_swap_branch_p, get_append_method): New functions.
834         (append_insn): Use get_append_method to decide how the instruction
835         should be added.
837 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
839         * config/tc-mips.c (append_insn): Remove bogus goto.
841 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
843         * config/tc-mips.c (append_insn): Always clear the history after an
844         unconditional branch.
846 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
848         * config/tc-mips.c (find_altered_mips16_opcode): New function.
849         (append_insn): Use it.
851 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
853         * config/tc-mips.c (insn_uses_reg): Delete.
854         (gpr_read_mask, gpr_write_mask): New functions.
855         (fpr_read_mask, fpr_write_mask): Likewise.
856         (insns_between, nops_for_vr4130, append_insn): Use them.
858 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
860         * config/tc-mips.c (md_mips_end): Call mips_emit_delays.
862 2011-06-29  Dave Martin  <dave.martin@linaro.org>
864         PR gas/12931
865         * config/tc-arm.c (mapping_state): When changing to ARM or THUMB
866         state set the minimum required alignment of the section.
868 2011-06-29  Tristan Gingold  <gingold@adacore.com>
870         * config/tc-i386.c (i386_mach): Convert to ISO-C.
871         (md_begin, pe_directive_secrel, md_estimate_size_before_relax): Ditto.
872         (md_convert_frag, md_apply_fix, md_undefined_symbol): Ditto.
873         (md_section_align, tc_gen_reloc): Ditto.
875 2011-06-28  Tristan Gingold  <gingold@adacore.com>
877         * config/tc-alpha.c (s_alpha_pdesc): Fix indentation. Do not
878         generate dummy fix.
880 2011-06-28  Tristan Gingold  <gingold@adacore.com>
882         * config/tc-alpha.c (load_expression): Use alloca instead of xmalloc.
883         (emit_jsrjmp): Ditto.
884         (tc_gen_reloc): Ditto.
886 2011-06-28  Tristan Gingold  <gingold@adacore.com>
888         * config/tc-alpha.c (alpha_evax_proc_hash): Remove.
889         (alpha_evax_proc_data): New variable.
890         (s_alpha_ent): Prevent nested function.  Remove has_insert call.
891         (s_alpha_pdesc): Do not call demand_empty_rest_of_line in case of
892         error.  Do not search in the hash table.  Check if match with .ent.
893         (s_alpha_name): Remove unused variable.
894         (md_begin): Remove initialization of alpha_evax_proc_hash.
896 2011-06-27  Tristan Gingold  <gingold@adacore.com>
898         * config/tc-alpha.c (add_to_link_pool): Remove basesym parameter.
899         Locally declare basesym.  Add comments.  Do not set literal_pool_size.
900         (load_expression): Adjust call to add_to_link_pool.
901         (s_alpha_pdesc): Define pdesc symbol using dot.
902         Do not set literal_pool_size.
903         (s_alpha_end): Use NULL instead of 0.
905 2011-06-27  Tristan Gingold  <gingold@adacore.com>
907         * config/obj-evax.c (evax_frob_file_before_adjust): Add comments.
908         Fix style.
909         * config/obj-evax.h (struct alpha_linkage_fixups): Remove seg
910         field.  Add comments.
911         (obj_symbol_type, object_headers, OBJ_SYMFIELD_TYPE): Remove
913 2011-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
915         * config/tc-mips.c (fix_24k_record_store_info): If the previous
916         instruction was a store, and the next instructions are unknown,
917         assume the worst.
919 2011-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
921         PR gas/12915
922         * config/tc-mips.c (nops_for_vr4130, nops_for_24k, nops_for_insn)
923         (nops_for_sequence, nops_for_insn_or_target): Add ignore parameters.
924         (mips_emit_delays, start_noreorder): Update accordingly.
925         (append_insn): Likewise.  Revert original fix for this PR
926         and use the ignore parameter instead.
928 2011-06-24  Tristan Gingold  <gingold@adacore.com>
930         PR gas/11625
931         * config/obj-evax.c (evax_frob_symbol): Use as_bad instead of abort.
933 2011-06-24  Tristan Gingold  <gingold@adacore.com>
935         * config/tc-alpha.c (add_to_link_pool): Remove useless offset
936         variable.  Fix style.
938 2011-06-23  Richard Sandiford  <rdsandiford@googlemail.com>
940         PR gas/12915
941         * config/tc-mips.c (append_insn): Only consider hazards between the
942         pre-noreorder block and ip.
944 2011-06-21  Sameera Deshpande  <sameera.deshpande@arm.com>
946         * config/tc-arm.c (vfp_conv): Add check on range of immediate operand
947         in vcvt instruction between floating-point and fixed-point.
948         (operand_parse_code): Add "OP_oI32z".
949         (parse_operands): OP_oI32z case added.
951 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
953         * configure.tgt: Revert x32 change.
955 2011-06-20  Nick Clifton  <nickc@redhat.com>
957         * doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
958         * doc/Makefile.in: Regenerate.
959         * doc/all.texi: Set XSTORMY16.
960         * doc/c-xstormy16.texi: New file.
962 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>
964         * configure.tgt: Support x32.
966 2011-06-15  Nick Clifton  <nickc@redhat.com>
968         * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
970 2011-06-14  Tristan Gingold  <gingold@adacore.com>
972         * config/tc-ppc.h (struct ppc_tc_sy): Complete comment on within.
973         (tc_new_dot_label): Define.
974         (ppc_new_dot_label): Declare.
975         * config/tc-ppc.c (ppc_frob_label): Set within target field.
976         (ppc_fix_adjustable): Use this field to adjust the reloc.
977         (ppc_new_dot_label): New function.
979 2011-06-14  Alan Modra  <amodra@gmail.com>
981         * po/POTFILES.in: Regenerate.
983 2011-06-13  Walter Lee  <walt@tilera.com>
985         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tilegx.c and
986         config/tc-tilepro.c.
987         (TARGET_CPU_HFILES): Add config/tc-tilegx.h and
988         config/tc-tilepro.h.
989         * Makefile.in: Regenerate.
990         * configure.tgt (tilepro-*-*): New.
991         (tilegx-*-*): Likewise.
992         * config/tc-tilegx.c: New file.
993         * config/tc-tilegx.h: Likewise.
994         * config/tc-tilepro.h: Likewise.
995         * config/tc-tilepro.c: Likewise.
996         * doc/Makefile.am (CPU_DOCS): Add c-tilegx.texi and
997         c-tilepro.texi.
998         * doc/Makefile.in: Regenerate.
999         * doc/all.texi (TILEGX): Define.
1000         (TILEPRO): Define.
1001         * doc/as.texinfo: Add Tile-Gx and TILEPro documentation.  Include
1002         c-tilegx.texi and c-tilepro.texi.
1003         * doc/c-tilegx.texi: New.
1004         * doc/c-tilepro.texi: New.
1006 2011-06-13  Nick Clifton  <nickc@redhat.com>
1008         PR gas/12854
1009         * config/tc-arm.c (do_shift): Do not allow shift operations at the
1010         end of a register based shift insn.
1011         (do_t_shift): Likewise.
1013 2011-06-13  Nick Clifton  <nickc@redhat.com>
1015         * config/tc-score.c (s3_my_get_expression): Delete unused local
1016         variable 'seg'.
1017         (s3_do_ldst_insn): Delete unused local variable 'strbak'.
1018         (s3_do16_ldst_insn): Delete unused local variable 'temp'.
1019         (s3_do_macro_bcmp): Zero inst_expand array.
1020         (s3_do_macro_bcmpz): Likewise.
1021         (s3_s_score_end): Delete unused local variable 'dot'.
1022         (s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
1023         * config/tc-score7.c (s7_my_get_expression): Delete unused local
1024         variable 'seg'.
1025         (s7_do_ldst_insn): Delete unused local variable 'strbak'.
1026         (s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
1027         'r_new'.
1028         (s7_s_score_end): Delete unused local variable 'dot'.
1029         (s7_relax_frag): Delete unused local variable 'relax_size'.
1030         (s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
1032 2011-06-10  H.J. Lu  <hongjiu.lu@intel.com>
1034         AVX Programming Reference (June, 2011)
1035         * config/tc-i386.c (i386_error): Add invalid_vsib_address and
1036         unsupported_vector_index_register.
1037         (cpu_arch): Add .avx2, .bmi2, .lzcnt and .invpcid.
1038         (check_VecOperands): New.
1039         (match_template): Call check_VecOperands.  Handle
1040         invalid_vsib_address and unsupported_vector_index_register.
1041         (build_modrm_byte): Support VecSIB.  Check register-only source
1042         operand when two source operands are swapped.
1043         (i386_index_check): Allow Xmm/Ymm index registers.
1045         * doc/c-i386.texi: Document avx2/.avx2, bmi2/.bmi2, lzcnt/.lzcnt
1046         and invpcid./invpcid.
1048 2011-06-09  Nick Clifton  <nickc@redhat.com>
1050         PR gas/12861
1051         * config/tc-cr16.c (tc_gen_reloc): Remove unused local variable
1052         code.
1053         (check_cinv_options): Remove unused local variables.  Make
1054         function void.
1055         (md_assemble): Remove unused local variable.
1057 2011-06-09  James Greenhalgh  <james.greenhalgh@arm.com>
1059         * config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
1061 2011-06-03  Arnaud Patard  <arnaud.patard@rtp-net.org>
1063         PR gas/12698
1064         * config/tc-arm.c (parse_psr): Set m_profile to false when
1065         assembling for any architecture.
1067 2011-06-02  Jie Zhang jie@codesourcery.com
1068             Nathan Sidwell nathan@codesourcery.com
1070         * config/tc-arm.c (parse_address_main): Handle -0 offsets.
1071         (encode_arm_addr_mode_2): Set default sign of zero here ...
1072         (encode_arm_addr_mode_3): ... and here.
1073         (encode_arm_cp_address): ... and here.
1074         (md_apply_fix): Use default sign of zero here.
1076 2011-06-02  Nick Clifton  <nickc@redhat.com>
1078         * as.c: Fix spelling typo.
1079         * read.c: Likewise.
1080         * config/tc-ppc.c: Likewise.
1081         * po/gas.pit: Regenerate.
1083 2011-05-31  Paul Brook  <paul@codesourcery.com>
1085         * config/tc-arm.c (arm_cpus): Add Cortex-R5.
1086         (arm_extensions): Allow idiv on ARMv7-R.
1087         * doc/c-arm.text: Update idiv extension restrictions.
1089 2011-05-31  Paul Brook  <paul@codesourcery.com>
1091         * config/tc-arm.c (arm_force_relocation): Resolve all pc-relative
1092         loads.
1094 2011-05-31  Paul Brook  <paul@codesourcery.com>
1096         * config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
1097         addresses.
1099 2011-05-31  Paul Brook  <paul@codesourcery.com>
1100         Nathan Sidwell  <nathan@codesourcery.com>
1102         * config/tc-arm.c (fix_new_arm): Create an absolute symbol for
1103         pc-relative fixes to constants.
1104         * config/tc-arm.h (TC_FORCE_RELOCATATION_ABS): Define.
1106 2011-05-27  Nick Clifton  <nickc@redhat.com>
1108         * config/tc-s390.c (md_begin): Remove unused variable dup_insn.
1110 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1112         * config/tc-s390.c (md_gather_operands): Fix check for floating
1113         register pair operands.
1115 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1117         * config/tc-s390.c (md_gather_operands): Emit an error for odd
1118         numbered registers used as register pair operand.
1120 2011-05-23  Nick Clifton  <nickc@redhat.com>
1122         * config/tc-v850.h (TC_FX_SIZE_SLACK): Define.
1124 2011-05-20  Bernd Schmidt  <bernds@codesourcery.com>
1126         * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset".
1127         (tic6x_parse_name): Handle it.
1128         (tic6x_fix_new_exp): Handle O_pcr_offset.
1129         (tic6x_fix_adjustable): Return 0 for the new relocs.
1130         (md_apply_fix): Handle them.
1131         (tc_gen_reloc): Likewise.
1132         * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
1134 2011-05-18  Nick Clifton  <nickc@redhat.com>
1136         PR gas/12754
1137         * config/tc-tic30.c (ordinal_names): Allow translation of the
1138         ordinal names.
1140 2011-05-18  Nick Clifton  <nickc@redhat.com>
1142         * config/tc-arm.c (s_unreq): Reword warning message to make it
1143         easier to translate.
1144         * config/tc-ia64.c (md_show_usage): Add note for translators.
1145         * configure.in (ALL_LINGUAS): Add "fi".
1146         * configure: Regenerate.
1148 2011-05-18  Tristan Gingold  <gingold@adacore.com>
1150         * config/tc-ppc.h (ppc_tc_sy): Reorder fields.
1151         Put size into an union with dw.
1152         (OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust.
1153         (ppc_xcoff_end): Declare.
1154         (md_end): Define.
1155         * config/tc-ppc.c: Add includes for xcoff.
1156         (ppc_dwsect): New function.
1157         (md_pseudo_table): Add dwsect.
1158         (struct dw_subsection): New.
1159         (dw_sections): New.
1160         (ppc_change_debug_section): New function.
1161         (ppc_xcoff_end): Ditto.
1162         (ppc_function): Adjust for ppc_tc_sy.
1163         (ppc_symbol_new_hook): Ditto.
1164         (ppc_frob_symbol): Ditto.
1165         (ppc_frob_section): Do not set vma for debug sections.
1166         (ppc_fix_adjustable): Return true for debug sections.
1167         * config/obj-coff.c: Add includes for xcoff.
1168         (coff_frob_section): Handle dwarf section.
1170 2011-05-17  Nick Clifton  <nickc@redhat.com>
1172         * po/fi.po: New Finnish translation.
1173         * po/fr.po: Updated French translation.
1175         * config/tc-m32r.c (md_show_usage): Fix typos in descriptions.
1176         * config/tc-mt.c (md_assemble): Fix typos in warning messages.
1177         * cond.c (s_else): Fix typos in error messages.
1178         * config/tc-pj.c (md_assemble): Fix typo in error message.
1180 2011-05-16  Hans-Peter Nilsson  <hp@axis.com>
1182         * config/tc-cris.c (md_parse_option) <OPTION_PIC>: Error if not
1183         emitting ELF object.
1184         (md_show_usage): Only mention --pic if the assembler can generate
1185         ELF objects.
1186         * doc/c-cris.texi (CRIS-Opt): Mention that generating ELF is a
1187         prerequisite for --pic being a valid option.
1189 2011-05-13  Frederic Marchal  <fmarchal@perso.be>
1191         PR gas/12755
1192         * config/tc-v850.c (parse_register_list): Correct error string.
1194 2011-05-12  Quentin Neill  <quentin.neill@amd.com>
1196         * config/tc-i386.c (cpu_arch): Rename PROCESSOR_BDVER1 to PROCESSOR_BD.
1197         (i386_align_code): Ditto
1199 2011-05-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1201         PR gas/12715
1202         * config/tc-arm.c (parse_big_immediate):  Fix parsing of 64-bit
1203         immediates on 32-bit hosts.
1205 2011-05-10  Quentin Neill  <quentin.neill@amd.com>
1207         * config/tc-i386.c (cpu_arch): Add bdver2 and rename
1208         PROCESSOR_BDVER1 to PROCESSOR_BDVER.
1209         (i386_align_code): Rename PROCESSOR_BDVER1.
1210         (processor_type): Ditto.
1211         * doc/c-i386.texi: Add bdver2.
1213 2011-05-10  Alan Modra  <amodra@gmail.com>
1215         * dw2gencfi.c (tc_cfi_endproc): Avoid "set but not used" error.
1217 2011-05-09  Paul Brook  <paul@codesourcery.com>
1219         * config/tc-tic6x.c (streq): Define.
1220         (tic6x_get_unwind): New.
1221         (s_tic6x_cantunwind, s_tic6x_handlerdata, s_tic6x_endp,
1222         s_tic6x_personalityindex, s_tic6x_personality): New functions.
1223         (md_pseudo_table): Add "endp", "handlerdata", "personalityindex",
1224         "personality" and "cantunwind".
1225         (tic6x_regname_to_dw2regnum, tic6x_frame_initial_instructions,
1226         tic6x_start_unwind_section, tic6x_unwind_frame_regs,
1227         tic6x_pop_rts_offset_little, tic6x_pop_rts_offset_big,
1228         tic6x_unwind_reg_from_dwarf, tic6x_flush_unwind_word,
1229         tic6x_unwind_byte, tic6x_unwind_2byte, tic6x_unwind_uleb,
1230         tic6x_cfi_startproc, output_exidx_entry, tic6x_output_unwinding,
1231         tic6x_cfi_endproc): New.
1232         * config/tc-tic6x.h (TIC6X_NUM_UNWIND_REGS): Define.
1233         (tic6x_unwind_info): New.
1234         (tic6x_segment_info_type): Add marked_pr_dependency, unwind and
1235         text_unwind.
1236         (TARGET_USE_CFIPOP, tc_regname_to_dw2regnum,
1237         tc_cfi_frame_initial_instructions, DWARF2_DEFAULT_RETURN_COLUMN,
1238         DWARF2_CIE_DATA_ALIGNMENT, tc_cfi_startproc, tc_cfi_endproc,
1239         tc_cfi_section_name): Define.
1240         * doc/c-tic6x.texi: Document new unwinding directives.
1241         * dw2gencfi.c (tc_cfi_startproc, tc_cfi_endproc): Add default
1242         definitions.
1243         (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset, CFI_return_column,
1244         CFI_rel_offset, CFI_escape, CFI_signal_frame, CFI_val_encoded_addr):
1245         Move to dw2gencfi.h.
1246         (CFI_EMIT_target): Define.
1247         (dot_cfi_sections): Check tc_cfi_section_name.
1248         (dot_cfi_startproc): Use tc_cfi_startproc.
1249         (dot_cfi_endproc): Use tc_cfi_endproc.
1250         * dw2gencfi.h (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset,
1251         CFI_return_column, CFI_rel_offset, CFI_escape, CFI_signal_frame,
1252         CFI_val_encoded_addr):  Move to here from dw2gencfi.c.
1254 2011-05-07  Alan Modra  <amodra@gmail.com>
1256         * dw2gencfi.c (CUR_SEG, SET_CUR_SEG, HANDLED, SET_HANDLED): Define.
1257         Use throughout in place of #if SUPPORT_FRAME_LINKONCE.
1258         (struct fde_entry): Rename cseg to cur_seg.
1259         (cfi_change_reg_numbers): Remove ATTRIBUTE_UNUSED.
1260         (get_cfi_seg): Likewise.  Use if (SUPPORT_FRAME_LINKONCE) rather
1261         that #if SUPPORT_FRAME_LINKONCE.
1262         (cfi_finish): Likewise.
1264 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1266         * read.c (s_comm_internal): Remove code for OBJ_VMS.
1267         (s_data): Ditto.
1268         (s_text): Ditto.
1269         * write.c (write_object_file): Ditto.
1270         * symbols.c (define_sym_at_dot): Ditto.
1271         (colon): Ditto.
1273 2011-05-05  Alan Modra  <amodra@gmail.com>
1275         * dw2gencfi.c (SUPPORT_FRAME_LINKONCE): Define.  Use throughout
1276         file to conditionally compile code added 2011-04-26.
1277         (cfi_change_reg_numbers): Add ATTRIBUTE_UNUSED on params only used
1278         when SUPPORT_FRAME_LINKONCE.
1279         (get_cfi_seg): Likewise.  Reintroduce old code for when not
1280         SUPPORT_FRAME_LINKONCE.
1281         (cfi_finish): Move get_cfi_seg calls out of loop when not
1282         SUPPORT_FRAME_LINKONCE.  Avoid unused var warning.
1284 2011-05-03  Paul Brook  <paul@codesourcery.com>
1286         * config/tc-tic6x.c (s_ehtype): New function.
1287         (md_pseudo_table): Add "ehtype".
1288         (tic6x_fix_adjustable, md_apply_fix): BFD_RELOC_C6000_EHTYPE.
1289         * doc/c-tic6x.texi: Document .ehtype directive.
1291 2011-04-26  Kai Tietz  <ktietz@redhat.com>
1293         * dw2gencfi.c (dwcfi_seg_list): New struct.
1294         (dwcfi_hash): New static hash variable.
1295         (get_debugseg_name): New.
1296         (alloc_debugseg_item): New.
1297         (make_debug_seg): New.
1298         (dwcfi_hash_insert): New.
1299         (dwcfi_hash_find): New.
1300         (dwcfi_hash_find_or_make): New.
1301         (cfi_insn_data): New member cur_seg.
1302         (cie_entry): Likewise.
1303         (fde_entry): New cseg and handled members.
1304         (alloc_fde_entry): Initialize cseg member.
1305         (alloc_cfi_insn_data): Initialize cur_seg member.
1306         (dot_cfi_sections): Compare for beginning of
1307         section names via strncmp.
1308         (get_cfi_seg): New.
1309         (cfi_finish): Treat link-once sections.
1310         (is_now_linkonce_segment): New local helper.
1311         (output_cie): Ignore cie entries not member of current
1312         segment.
1313         (output_fde): Likewise.
1314         (select_cie_for_fde): Likewise.
1315         (cfi_change_reg_numbers): Add new argument for current segment
1316         and ignore insn elements, if not part of current segment.
1317         * ehopt.c (get_cie_info): Use strncmp for
1318         section name matching.
1319         (heck_eh_frame): Likewise.
1321 2011-04-20  Catherine Moore  <clm@codesourcery.com>
1322             David Ung <davidu@mips.com>
1324         * config/mips.c (mips_cl_insn): Add new field complete_p.
1325         (create_insn): Initialize complete_p to zero.
1326         (BASE_REG_EQ): New.
1327         (fix_24k_align_to): New.
1328         (fix_24k_store_info): Declare.
1329         (fix_24k_sort): New.
1330         (fix_24k_record_store_info): New.
1331         (nops_for_24k): New.
1332         (nops_for_insn): Call nops_for_24k.
1333         (append_insn): Move O_constant expression handling.
1335 2011-04-20  Alan Modra  <amodra@gmail.com>
1337         * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size.
1338         (hash_new_sized): New function, split out from..
1339         (hash_new): ..here.
1341 2011-04-19  Nick Clifton  <nickc@redhat.com>
1343         * config/tc-arm.c (v7m_psrs): Revert previous delta.
1345 2011-04-18  Julian Brown  <julian@codesourcery.com>
1346             Nick Clifton  <nickc@redhat.com>
1348         * config/tc-arm.c (parse_psr): Use selected_cpu not cpu_variant to
1349         detect M-profile targets.
1350         (do_t_swi): Exclude v7 and higher variants from arm_ext_os test.
1351         (v7m_psrs): Fix typo: basepri_max should be basepri_mask.
1353 2011-04-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1355         * config/tc-s390.c (s390_machine): New prototype.
1356         (md_pseudo_table): New pseudo-op .machine.
1357         (s390_opcode_hash): Initialize to NULL.
1358         (s390_parse_cpu): New function.
1359         (md_parse_option): Use s390_parse_cpu.
1360         (s390_setup_opcodes): New function.
1361         (md_begin): Use s390_setup_opcodes.
1362         (s390_machine): New hook handling the new .machine pseudo.
1364         * doc/c-s390.texi: Document the new pseudo op .machine.
1366 2011-04-12  H.J. Lu  <hongjiu.lu@intel.com>
1368         * config/tc-i386.c (i386_mach): Start error message with lower
1369         case.
1370         (md_begin): Likewise.
1371         (md_parse_option): Likewise.
1372         (i386_target_format): Likewise.
1373         (check_byte_reg): Likewise.
1374         (check_long_reg): Likewise.
1375         (check_qword_reg): Likewise.
1376         (check_word_reg): Likewise.
1378 2011-04-12  Nick Clifton  <nickc@redhat.com>
1380         PR gas/12532
1381         * config/tc-arm.c (relax_branch): Do not relax branches to
1382         preemptable global symbols.
1384 2011-04-11  Julian Brown  <julian@codesourcery.com>
1386         * config/tc-arm.c (parse_psr): Add LHS argument. Improve support
1387         for *APSR bitmasks.
1388         (operand_parse_code): Replace OP_PSR with OP_wPSR and OP_rPSR.
1389         Remove OP_RVC_PSR.
1390         (parse_operands): Likewise.
1391         (do_mrs): Tweak error message for constraint.
1392         (do_t_mrs): Update constraints for changes to APSR support.
1393         (do_t_msr): Likewise. Don't set PSR_f flag here.
1394         (psrs): Remove "g", "nzcvq", "nzcvqg".
1395         (insns): Tweak entries for msr and mrs instructions.
1397 2011-04-11  Kai Tietz  <ktietz@redhat.com>
1399         * config/tc-i386.c (x86_cons): Initialize adjust with zero.
1401 2011-04-11  Nick Clifton  <nickc@redhat.com>
1403         * config/tc-i386.c (x86_cons): Define even for non-ELF targets.
1404         * config/tc-i386.h (x86_cons): Always prototype.
1406         * config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
1407         in order to avoid a compile time warning.
1408         (getprocreg_image): Likewise.
1410 2011-04-11  Alan Modra  <amodra@gmail.com>
1412         * config/tc-cr16.c (getprocreg_image): Correct range check.
1413         (getprocregp_image): Likewise.
1415 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1417         * configure.tgt (strongarm*be, strongarm*b, strongarm*,
1418         xscale*be|xscale*b, xscale*): Remove architectures.
1419         (thumb-*-coff, thumb-*-rtems*, thumb-*-elf, thumb-epoc-pe,
1420         thumb-*-pe, xscale-*-coff, xscale-*-elf): Remove targets.
1422 2011-04-01  Tristan Gingold  <gingold@adacore.com>
1424         * config/tc-ia64.c (md_apply_fix): Add a cast to avoid a warning.
1426 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
1428         * config/tc-tic6x.c (sbss_section, scom_section, scom_symbol): New
1429         static variables.
1430         (md_begin): Initialize them.
1431         (s_tic6x_scomm): New static function.
1432         (md_pseudo_table): Add "scomm".
1433         (tc_gen_reloc): Really undo all adjustments made by
1434         bfd_install_relocation.
1435         * doc/c-tic6x.texi: Document the .scomm directive.
1437 2011-03-31  Tristan Gingold  <gingold@adacore.com>
1439         * dwarf2dbg.c (DWARF2_VERSION): Define.
1440         (out_debug_line): Use it.
1441         (out_debug_aranges): Ditto.
1442         (out_debug_info): Ditto.
1443         * config/tc-ia64.h (DWARF2_VERSION): Override it.
1445 2011-03-30  Michael Snyder  <msnyder@vmware.com>
1447         * obj-elf.c (obj_elf_section): Free malloced name.
1448         * macro.c (get_any_string): Free malloced br_buf.
1449         (do_formals): Free 'formal'.
1451 2011-03-30  Tristan Gingold  <gingold@adacore.com>
1453         * config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
1454         to offset only if within is set.
1455         (ppc_stabx): Reformat.  For stsym stabs, add a check and set
1456         within only for symbols.
1458 2011-03-29  Richard Henderson  <rth@redhat.com>
1460         PR 12610
1461         * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous
1462         label; zap alpha_insn_label.
1464 2011-03-29  H.J. Lu  <hongjiu.lu@intel.com>
1466         * config/tc-i386.c (handle_quad): Properly handle multiple
1467         operands.
1469 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1471         * config/bfin-parse.y (BYTEUNPACK): Return yyerror when dest
1472         reg $2 is the same as dest reg $4.
1474 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1476         * config/bfin-parse.y (BYTEOP16M): Return yyerror when dest
1477         reg $2 is the same as dest reg $4.
1479 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
1481         * config/bfin-parse.y (BYTEOP16P): Return yyerror when dest
1482         reg $2 is the same as dest reg $4.
1484 2011-03-28  Mike Frysinger  <vapier@gentoo.org>
1486         * config/bfin-parse.y (16bit acc add): Return yyerror when dest
1487         reg $1 is the same as dest reg $7.
1489 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
1491         * config/tc-i386.c (handle_quad): New.
1492         (md_pseudo_table): Add "quad".
1494 2011-03-26  John Marino  <binutils@marino.st>
1496         * configure.tgt: Fix support for *-*-dragonfly*.
1497         * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
1498         * config/te-dragonfly.h: New file.
1500 2011-03-24  Eric B. Weddington  <eric.weddington@atmel.com>
1502         * config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
1503         atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
1504         at90pwm161.
1505         * doc/c-avr.texi: Document new device names.
1507 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
1509         * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
1510         reg $1 is the same as dest reg $7.
1511         (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
1512         dest reg $7.
1514 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
1516         * config/bfin-parse.y (check_macfuncs): Clarify error message when
1517         P is mismatched.  Check destination regno are off by one when P is
1518         set, or are equal when P is not set.
1520 2011-03-23  Mike Frysinger  <vapier@gentoo.org>
1522         * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
1523         the same as dest reg $4.
1524         (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
1526 2011-03-23  Eric B. Weddington  <eric.weddington@atmel.com>
1528         * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
1529         atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
1530         * doc/c-avr.texi: Document new device names.
1532 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
1534         * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
1535         (AVR_INSN): Change definition to match.
1536         (avr_opcodes): Likewise, change to match.
1537         (mcu_types): Add XMEGA architecture names and new XMEGA device names.
1538         (md_show_usage): Add XMEGA architecture names.
1539         (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
1540         Add support for SPM Z+ instruction.
1541         * doc/c-avr.texi: Add documentation for XMEGA architectures and
1542         devices.
1544 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
1546         * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
1548 2011-03-18  Alan Modra  <amodra@gmail.com>
1550         * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
1551         on .size expression errors rather than symbols in the size expression.
1553 2011-03-18  Alan Modra  <amodra@gmail.com>
1555         * input-scrub.c (line_numberT): Delete.
1556         (input_scrub_close): Reset line counters.
1557         * messages.c (as_show_where): Don't print invalid line number.
1558         (as_warn_internal, as_bad_internal): Likewise.
1560 2011-03-18  Alan Modra  <amodra@gmail.com>
1562         * read.c (read_a_source_file): Remove md_after_pass_hook.
1563         Move "quit" label before set of dot_symbol.
1564         * config/tc-d10v.h (md_after_pass_hook): Don't define.
1565         * config/tc-d30v.h (md_after_pass_hook): Likewise.
1566         * config/tc-m32r.h (md_after_pass_hook): Likewise.
1567         (md_cleanup): Define to call m32r_fill_insn.
1569 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1571         * config/tc-s390.c (md_parse_option): Add -march=all option which
1572         switches to the highest available CPU.
1574 2011-03-17  Alan Modra  <amodra@gmail.com>
1576         PR 12569
1577         * expr.c (operand): Correct passing of "mode" to expr.
1578         * read.c (do_org): Allow expr_section.
1579         (get_known_segmented_expression): Don't assert anything about the
1580         segment.
1582 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1584         * as.c (show_usage): Add --size-check=.
1585         (parse_args): Add and handle OPTION_SIZE_CHECK.
1587         * as.h (flag_size_check): New.
1589         * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
1590         bad .size directive only for --size-check=error.
1592         * doc/as.texinfo: Document --size-check=.
1594 2011-03-14  Mike Frysinger  <vapier@gentoo.org>
1596         * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
1597         bf542/bf544/bf547/bf548/bf549.
1599 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
1601         * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
1602         determine whether a relocation is needed.
1603         (md_apply_fix, arm_apply_sym_value): Likewise.
1605 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
1607         * config/tc-arm.c (arm_adjust_symtab): Set the branch type
1608         for Thumb symbols.
1610 2011-03-11  Nick Clifton  <nickc@redhat.com>
1612         * remap.c (remap_debug_filename): Always allocate a buffer for the
1613         returned pointer.
1614         * stabs.c (stabs_generate_asm_file): Free the pointer returned by
1615         remap_debug_filename.
1617 2011-03-10  Michael Snyder  <msnyder@vmware.com>
1619         Revert the following change:
1620         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
1621         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
1623 2011-03-10  Alan Modra  <amodra@gmail.com>
1625         * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
1626         TARGET_SYMBOL_FIELDS): Don't define.
1627         * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
1629 2011-03-09  Michael Snyder  <msnyder@vmware.com>
1631         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
1632         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
1633         (emit_fixed_inc_line_addr): Assign instead of conditional in
1634         assert.
1636 2011-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1638         * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
1639         non-constant .size expression.
1641 2011-03-02  Nick Clifton  <nickc@redhat.com>
1643         * ecoff.c: Incldue filenames.h
1645 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
1647         * depend.c (register_dependency): Use filename_(n)cmp.
1648         * dwarf2dbg.c (get_filenum): Likewise.
1649         * ecoff.c (add_file): Likewise.
1650         (ecoff_generate_asm_lineno): Likewise.
1651         * input-scrub.c (new_logical_line_flags): Likewise.
1652         * listing.c (file_info): Likewise.
1653         (listing_newline): Likewise.
1654         * remap.c (remap_debug_filename): Likewise.
1655         * stabs.c (generate_asm_file): Likewise.
1656         (stabs_generate_asm_lineno): Likewise.
1658 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1660         * config/tc-mips.c (append_insn): Disable branch relaxation for
1661         DSP instructions.
1663 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1665         * config/tc-mips.c (macro): Handle M_PREF_AB.
1667 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1669         * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
1670         register to use.
1671         (RELAX_BRANCH_UNCOND): Adjust accordingly.
1672         (RELAX_BRANCH_LIKELY): Likewise.
1673         (RELAX_BRANCH_LINK): Likewise.
1674         (RELAX_BRANCH_TOOFAR): Likewise.
1675         (RELAX_BRANCH_AT): New macro.
1676         (append_insn): Encode the temporary register to use in standard
1677         MIPS branch relaxation.
1678         (relaxed_branch_length): Update according to changes to
1679         RELAX_BRANCH_ENCODE.
1680         (md_convert_frag): Use the encoded register as the temporary.
1682 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1684         * config/tc-mips.c (mips_fix_adjustable): On REL targets also
1685         reject PC-relative relocations.
1687 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1689         * config/tc-mips.c (md_convert_frag): Correct message
1690         capitalization.
1692 2011-02-28  Alan Modra  <amodra@gmail.com>
1694         * symbols.c (report_op_error): Remove unnecessary forward declaration.
1695         Add "op" parameter.  Report operator and operand segments in error
1696         message, not operand symbols.
1697         (resolve_symbol_value): Always set segment for equated symbols, not
1698         just when finalizing.  Adjust report_op_error calls.
1700 2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1702         * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
1703         if 64bit relocations aren't allowed.
1705 2011-02-25  Alan Modra  <amodra@gmail.com>
1707         PR gas/12519
1708         * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
1710 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
1712         * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
1713         initialization of offset_reloc.
1715 2011-02-15  Richard Henderson  <rth@redhat.com>
1717         * dw2gencfi.c (dot_cfi_dummy): New.
1718         (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
1719         * read.c (pobegin): Unconditionally call cfi_pop_insert.
1721 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1723         * configure: Regenerate.
1725 2011-02-13  Mike Frysinger  <vapier@gentoo.org>
1727         * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
1728         * config/bfin-parse.y (BYTEOP2M): Delete token.
1729         (asm_1): Remove BYTEOP2M insn matching.
1731 2011-02-12  Mike Frysinger  <vapier@gentoo.org>
1733         * config/bfin-defs.h: Include opcode/bfin.h.
1734         (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
1736 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
1738         * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
1739         (Modify Registers): Fix subtracted typo.
1740         (.byte2): Extend and swap descriptions with .byte4.
1741         (.byte4): Extend and swap descriptions with .byte2.
1742         (.db, .dw, .dd): Document behavior.
1744 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
1746         * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
1748 2011-02-11  Alan Modra  <amodra@gmail.com>
1750         * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
1752 2011-02-10  Alan Modra  <amodra@gmail.com>
1754         * doc/as.texinfo (Overview): Add missing markup around Blackfin
1755         and PowerPC options.
1757 2011-02-10  Alan Modra  <amodra@gmail.com>
1759         * config/tc-ppc.c (md_show_usage): Remove -l and -b.  Add -K PIC.
1760         * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
1761         (Overview <Target PowerPC options>): Add a number of missing options.
1762         * doc/c-ppc.texi: Likewise.  Add markup for use in manpage generation.
1764 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1766         PR gas/6957
1767         * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
1768         for i686.
1770 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1772         * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
1773         for ISA extensions.
1774         (md_parse_option): Likewise.
1776 2011-02-04  Bernd Schmidt  <bernds@codesourcery.com>
1778         * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
1779         * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
1780         (TIC6X Options): Don't mention "-matomic".
1781         * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
1782         (md_longopts): Remove corresponding entries.
1783         (md_parse_option): Don't handle them.
1784         (md_show_usage): Don't document them.
1785         (tic6x_atomic): Delete variable.
1786         (tic6x_update_features): Always copy tic6x_arch_enable to
1787         tic6x_features.
1788         (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
1789         (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
1790         (md_pseudo_table): Remove ".atomic" and ".noatomic".
1792 2011-01-31  Nick Clifton  <nickc@redhat.com>
1794         * write.c (write_contents): Include output file name and bfd error
1795         value when reporting the inability to write to the output file.
1796         * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
1797         frag that has a non-zero fill value.
1799 2011-01-27  DJ Delorie  <dj@redhat.com>
1801         * config/tc-rx.c (md_convert_frag): If we can't compute the target
1802         address, zero out the values stored in the object file to make
1803         objdump's output consistent.
1805 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
1807         * config/tc-i386.c (md_begin): Set for x64 windows COFF target
1808         x86_dwarf2_return_column to 32.
1810 2011-01-20  Nick Clifton  <nickc@redhat.com>
1812         PR gas/12384
1813         * config/tc-h8300.c (constant_fits_width_p): Use correct type for
1814         comparison.
1816 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1818         * write.c (compress_debug): Return if section size is smaller
1819         than 32 bytes.
1821 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1823         PR gas/12409
1824         * write.c (compress_debug): Return if section size is 0.
1826 2011-01-18  Mingfeng Wu  <mingfeng@faraday-tech.com>
1828         * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
1829         cores: fa606te, fa616te, fmp626.  Modify the VFP of fa626te.
1830         * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
1831         fmp626} options.
1833 2011-01-18  Nick Clifton  <nickc@redhat.com>
1835         PR gas/12390
1836         * doc/all.texi: Add NS32K
1837         * doc/as.texinfo: Remove target specific details of which
1838         characters act as comment initiators and statement separators into
1839         individual target specific files.
1840         * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
1841         the hash character at the start of a line.
1842         * doc/c-arm.texi (ARM-Chars): Likewise.
1843         * doc/c-avr.texi (AVR-Chars): Likewise.
1844         * doc/c-d10v.texi (D10V-Chars): Likewise.
1845         * doc/c-d30v.texi (D30V-Chars): Likewise.
1846         * doc/c-mmix.texi (MMIX-Chars): Likewise.
1847         * doc/c-s390.texi (s390 characters): Likewise.
1848         * doc/c-sh.texi (SH-Chars): Likewise.
1849         * doc/c-sh64.texi (SH64-Chars): Likewise.
1850         * doc/c-sparc.texi (SPARC-Chars): Likewise.
1851         * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
1852         * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
1853         * doc/c-z80.texi (Z80-Chars): Likewise.
1854         * doc/c-z8k.texi (Z8000-Chars): Likewise.
1855         * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
1856         * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
1857         * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
1858         line separator characters.
1859         * doc/c-cr16.texi (CR16 Syntax): Likewise.
1860         * doc/c-i386.texi (i386-Chars): Likewise.
1861         * doc/c-i860.texi (i860-Chars): Likewise.
1862         * doc/c-i960.texi (i960-Chars): Likewise.
1863         * doc/c-ip2k.texi (IP2K-Chars): Likewise.
1864         * doc/c-lm32.texi (LM32-Chars): likewise.
1865         * doc/c-m32c.texi (M32C-Chars): Likewise.
1866         * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
1867         * doc/c-m68k.texi (M68K-Chars): Likewise.
1868         * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
1869         * doc/c-msp430.texi (MSP430-Chars): Likewise.
1870         * doc/c-mt.texi (MT-Chars): Likewise.
1871         * doc/c-ns32k.texi (NS32K-Chars): Likewise.
1872         * doc/c-pj.texi (PJ-Chars): Likewise.
1873         * doc/c-ppc.texi (PowerPC-Chars): Likewise.
1874         * doc/c-rx.texi (RX-Chars): Likewise.
1875         * doc/c-score.texi (SCORE-Chars): Likewise.
1876         * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
1877         * doc/c-v850.texi (V850-Chars): Likewise.
1878         * doc/c-vax.texi (VAX-Chars): Likewise.
1879         * doc/c-xc16x.texi (xc16x-Chars): Likewise.
1881 2011-01-17  Quentin Neill  <quentin.neill@amd.com>
1883         * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
1885         * doc/c-i386.texi (i386-TBM): New section.
1887 2011-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1889         * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
1890         (disallow_64bit_reloc): This.
1891         (md_assemble): Don't check movabs for x32 mode here.
1892         (i386_target_format): Updated.
1893         (tc_gen_reloc): Check if 64bit relocations are allowed.
1895 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1897         * config/tc-i386.c (disallow_64bit_disp): New.
1898         (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
1899         X86_64_ABI/X86_64_X32_ABI.
1900         (md_assemble): Don't allow movabs with relocation in x32 mode.
1901         (i386_target_format): Updated.
1903 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1905         * config/tc-i386.c (OPTION_N32): Renamed to ...
1906         (OPTION_X32): This.
1907         (md_longopts): Replace n32 with x32.
1908         (md_parse_option): Updated.
1909         (md_show_usage): Likewise.
1911         * doc/c-i386.texi: Replace --n32 with --x32.
1913 2011-01-11  Mingjie Xing  <mingjie.xing@gmail.com>
1915         * config/tc-mips.c (mips_ip): Update error messages.  Take an
1916         unadjusted offset for "+c" argument.
1918 2011-01-10  Nick Clifton  <nickc@redhat.com>
1920         * config/tc-i386.c (x86_elf_abi): Only define for targets that use
1921         it.
1923 2011-01-10  Nick Clifton  <nickc@redhat.com>
1925         * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
1926         part of the file.
1928 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
1929             Glauber de Oliveira Costa  <glommer@gmail.com>
1931         * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
1932         .tlsdescseq directive.
1933         * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
1934         following a symbol.
1935         (s_arm_tls_descseq): New directive.
1936         (md_pseudo_table): Add it.
1937         (encode_branch): Allow TLS_CALL relocs too.
1938         (do_t_blx, do_t_branch23): Use encode_branch.
1939         (reloc_names): Add tlsdesc and tlscall.
1940         (md_apply_fix): Process tls desc relocations.
1941         (tc_gen_reloc): Likewise.
1942         (arm_fix_adjustable): Likewise.
1944 2011-01-07  Quentin Neill  <quentin.neill@amd.com>
1946         * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
1948         * doc/c-i386.texi (i386-BMI): New section.
1950 2011-01-06  Paul Koning  <ni1d@arrl.net>
1952         * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
1953         references to absolute addresses.
1955 2011-01-05  DJ Delorie  <dj@redhat.com>
1957         * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
1958         instead of an RH_NEG32 one.
1960 2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1962         * doc/c-i386.texi: Clarify --n32.
1964 2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1966         * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
1967         integer registers in VEX.vvvv.  Check register-only source
1968         operand when two source operands are swapped.  Properly update
1969         destination when two source operands are swapped.
1971 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1973         * gas.c (parse_args): Update copyright to 2011.
1975 For older changes see ChangeLog-2010
1977 Local Variables:
1978 mode: change-log
1979 left-margin: 8
1980 fill-column: 74
1981 version-control: never
1982 End: