2011-08-04 Tristan Gingold <gingold@adacore.com>
[external/binutils.git] / gas / ChangeLog
1 2011-08-04  Tristan Gingold  <gingold@adacore.com>
2
3         * config/obj-elf.c (obj_elf_section): Do not free name.
4
5 2011-08-03  James Greenhalgh  <james.greenhalgh@arm.com>
6
7         * config/tc-arm.c (do_t_strexbh): New.
8         (insns): Update accordingly.
9
10 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
11
12         PR ld/13048
13         * config/tc-i386.c (handle_quad): Removed.
14         (md_pseudo_table): Remove "quad".
15         (tc_gen_reloc): Don't check BFD_RELOC_64 for disallow_64bit_reloc.
16         (x86_dwarf2_addr_size): New.
17
18         * config/tc-i386.h (x86_dwarf2_addr_size): New.
19         (DWARF2_ADDR_SIZE): Likewise.
20
21 2011-08-01  Nick Clifton  <nickc@redhat.com>
22
23         PR ld/12974
24         * config/tc-arm.c (literal_pool): Add locs field.
25         (add_to_lit_pool): Initialise the locs entry for the new literal.
26         (s_ltorg): Generate a DWARF2 line number entry for each emitted
27         literal pool entry.
28
29 2011-08-01  Tristan Gingold  <gingold@adacore.com>
30
31         * write.c (write_relocs): Fix -Wshadow in DEBUG3 and DEBUG4.
32
33 2011-08-01  Tristan Gingold  <gingold@adacore.com>
34
35         * frags.c (frag_grow): Simplify the code.
36
37 2011-07-30  Richard Sandiford  <rdsandiford@googlemail.com>
38
39         * config/tc-mips.c (nops_for_vr4130): Revert previous commit.
40
41 2011-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
42
43         * config/tc-mips.c: Adjust comments throughout.
44         (reglist_lookup): Reshape code.
45         (jmp_reloc_p, jalr_reloc_p): Reformat.
46         (got16_reloc_p, hi16_reloc_p, lo16_reloc_p): Handle microMIPS
47         relocations.
48         (gpr_mod_mask): Remove unused variable.
49         (gpr_read_mask, gpr_write_mask): Reshape code.
50         (fpr_read_mask, fpr_write_mask): Likewise.
51         (nops_for_vr4130): Ensure non-microMIPS mode.
52         (can_swap_branch_p): Correct pinfo2 reference.  Reshape code.
53         (append_insn): Skip Loongson 2F workaround in MIPS16 mode.  Use
54         the outermost operator of a compound relocation to determines
55         the relocated field.  Fix formatting.
56         (md_convert_frag): Reshape code.
57
58 2011-07-29  Tristan Gingold  <gingold@adacore.com>
59
60         * frags.c (frag_var_init): New function.
61         (frag_var): Call frag_var_init to initialize.
62         (frag_variant): Ditto.
63
64 2011-07-27  Nathan Sidwell  <nathan@codesourcery.com>
65
66         * dwarf2dbg.c (out_debug_line): Ignore non-normal segments, with a
67         warning.
68         * doc/as.texinfo (Offset): Document .offset directive.
69
70 2011-07-27  Tristan Gingold  <gingold@adacore.com>
71
72         * frags.c (frag_grow): Revert previous patch.
73
74 2011-07-26  Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
75
76         * config/tc-rx.c (md_convert_frag): Fix encoding of beq.a
77         synthetic instruction.
78
79 2011-07-25  Tristan Gingold  <gingold@adacore.com>
80
81         * frags.c (frag_grow): Simplify the code.
82
83 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
84             Chao-ying Fu  <fu@mips.com>
85             Richard Sandiford  <rdsandiford@googlemail.com>
86
87         * config/tc-mips.h (mips_segment_info): Add one bit for
88         microMIPS.
89         (TC_LABEL_IS_LOCAL): New macro.
90         (mips_label_is_local): New prototype.
91         * config/tc-mips.c (S0, S7): New macros.
92         (emit_branch_likely_macro): New variable.
93         (mips_set_options): Add micromips.
94         (mips_opts): Initialise micromips to -1.
95         (file_ase_micromips): New variable.
96         (CPU_HAS_MICROMIPS): New macro.
97         (hilo_interlocks): Set for microMIPS too.
98         (gpr_interlocks): Likewise.
99         (cop_interlocks): Likewise.
100         (cop_mem_interlocks): Likewise.
101         (HAVE_CODE_COMPRESSION): New macro.
102         (micromips_op_hash): New variable.
103         (micromips_nop16_insn, micromips_nop32_insn): New variables.
104         (NOP_INSN): Handle microMIPS ASE.
105         (mips32_to_micromips_reg_b_map): New macro.
106         (mips32_to_micromips_reg_c_map): Likewise.
107         (mips32_to_micromips_reg_d_map): Likewise.
108         (mips32_to_micromips_reg_e_map): Likewise.
109         (mips32_to_micromips_reg_f_map): Likewise.
110         (mips32_to_micromips_reg_g_map): Likewise.
111         (mips32_to_micromips_reg_l_map): Likewise.
112         (mips32_to_micromips_reg_n_map): Likewise.
113         (mips32_to_micromips_reg_h_map): New variable.
114         (mips32_to_micromips_reg_m_map): Likewise.
115         (mips32_to_micromips_reg_q_map): Likewise.
116         (micromips_to_32_reg_h_map): New variable.
117         (micromips_to_32_reg_i_map): Likewise.
118         (micromips_to_32_reg_m_map): Likewise.
119         (micromips_to_32_reg_q_map): Likewise.
120         (micromips_to_32_reg_b_map): New macro.
121         (micromips_to_32_reg_c_map): Likewise.
122         (micromips_to_32_reg_d_map): Likewise.
123         (micromips_to_32_reg_e_map): Likewise.
124         (micromips_to_32_reg_f_map): Likewise.
125         (micromips_to_32_reg_g_map): Likewise.
126         (micromips_to_32_reg_l_map): Likewise.
127         (micromips_to_32_reg_n_map): Likewise.
128         (micromips_imm_b_map, micromips_imm_c_map): New macros.
129         (RELAX_DELAY_SLOT_16BIT): New macro.
130         (RELAX_DELAY_SLOT_SIZE_FIRST): Likewise.
131         (RELAX_DELAY_SLOT_SIZE_SECOND): Likewise.
132         (RELAX_MICROMIPS_ENCODE, RELAX_MICROMIPS_P): New macros.
133         (RELAX_MICROMIPS_TYPE, RELAX_MICROMIPS_AT): Likewise.
134         (RELAX_MICROMIPS_U16BIT, RELAX_MICROMIPS_UNCOND): Likewise.
135         (RELAX_MICROMIPS_COMPACT, RELAX_MICROMIPS_LINK): Likewise.
136         (RELAX_MICROMIPS_RELAX32, RELAX_MICROMIPS_TOOFAR16): Likewise.
137         (RELAX_MICROMIPS_MARK_TOOFAR16): Likewise.
138         (RELAX_MICROMIPS_CLEAR_TOOFAR16): Likewise.
139         (RELAX_MICROMIPS_TOOFAR32): Likewise.
140         (RELAX_MICROMIPS_MARK_TOOFAR32): Likewise.
141         (RELAX_MICROMIPS_CLEAR_TOOFAR32): Likewise.
142         (INSERT_OPERAND, EXTRACT_OPERAND): Handle microMIPS ASE.
143         (mips_macro_warning): Add delay_slot_16bit_p, delay_slot_32bit_p,
144         fsize and insns.
145         (mips_mark_labels): New function.
146         (mips16_small, mips16_ext): Remove variables, replacing with...
147         (forced_insn_size): ... this.
148         (append_insn, mips16_ip): Update accordingly.
149         (micromips_insn_length): New function.
150         (insn_length): Return the length of microMIPS instructions.
151         (mips_record_mips16_mode): Rename to...
152         (mips_record_compressed_mode): ... this.  Handle microMIPS ASE.
153         (install_insn): Handle microMIPS ASE.
154         (reglist_lookup): New function.
155         (is_size_valid, is_delay_slot_valid): Likewise.
156         (md_begin): Handle microMIPS ASE.
157         (md_assemble): Likewise.  Update for append_insn interface change.
158         (micromips_reloc_p): New function.
159         (got16_reloc_p): Handle microMIPS ASE.
160         (hi16_reloc_p): Likewise.
161         (lo16_reloc_p): Likewise.
162         (jmp_reloc_p): New function.
163         (jalr_reloc_p): Likewise.
164         (matching_lo_reloc): Handle microMIPS ASE.
165         (insn_uses_reg, reg_needs_delay): Likewise.
166         (mips_move_labels): Likewise.
167         (mips16_mark_labels): Rename to...
168         (mips_compressed_mark_labels): ... this.  Handle microMIPS ASE.
169         (gpr_mod_mask): New function.
170         (gpr_read_mask, gpr_write_mask): Handle microMIPS ASE.
171         (fpr_read_mask, fpr_write_mask): Likewise.
172         (insns_between, nops_for_vr4130, nops_for_insn): Likewise.
173         (fix_loongson2f_nop, fix_loongson2f_jump): Likewise.
174         (MICROMIPS_LABEL_CHAR): New macro.
175         (micromips_target_label, micromips_target_name): New variables.
176         (micromips_label_name, micromips_label_expr): New functions.
177         (micromips_label_inc, micromips_add_label): Likewise.
178         (mips_label_is_local): Likewise.
179         (micromips_map_reloc): Likewise.
180         (can_swap_branch_p): Handle microMIPS ASE.
181         (append_insn): Add expansionp argument.  Handle microMIPS ASE.
182         (start_noreorder, end_noreorder): Handle microMIPS ASE.
183         (macro_start, macro_warning, macro_end): Likewise.
184         (brk_fmt, cop12_fmt, jalr_fmt, lui_fmt): New variables.
185         (mem12_fmt, mfhl_fmt, shft_fmt, trap_fmt): Likewise.
186         (BRK_FMT, COP12_FMT, JALR_FMT, LUI_FMT): New macros.
187         (MEM12_FMT, MFHL_FMT, SHFT_FMT, TRAP_FMT): Likewise.
188         (macro_build): Handle microMIPS ASE.  Update for append_insn
189         interface change.
190         (mips16_macro_build): Update for append_insn interface change.
191         (macro_build_jalr): Handle microMIPS ASE.
192         (macro_build_lui): Likewise.  Simplify.
193         (load_register): Handle microMIPS ASE.
194         (load_address): Likewise.
195         (move_register): Likewise.
196         (macro_build_branch_likely): New function.
197         (macro_build_branch_ccl): Likewise.
198         (macro_build_branch_rs): Likewise.
199         (macro_build_branch_rsrt): Likewise.
200         (macro): Handle microMIPS ASE.
201         (validate_micromips_insn): New function.
202         (expr_const_in_range): Likewise.
203         (mips_ip): Handle microMIPS ASE.
204         (options): Add OPTION_MICROMIPS and OPTION_NO_MICROMIPS.
205         (md_longopts): Add mmicromips and mno-micromips.
206         (md_parse_option): Handle OPTION_MICROMIPS and
207         OPTION_NO_MICROMIPS.
208         (mips_after_parse_args): Handle microMIPS ASE.
209         (md_pcrel_from): Handle microMIPS relocations.
210         (mips_force_relocation): Likewise.
211         (md_apply_fix): Likewise.
212         (mips_align): Handle microMIPS ASE.
213         (s_mipsset): Likewise.
214         (s_cpload, s_cpsetup, s_cpreturn): Use relocation wrappers.
215         (s_dtprel_internal): Likewise.
216         (s_gpword, s_gpdword): Likewise.
217         (s_insn): Handle microMIPS ASE.
218         (s_mips_stab): Likewise.
219         (relaxed_micromips_32bit_branch_length): New function.
220         (relaxed_micromips_16bit_branch_length): New function.
221         (md_estimate_size_before_relax): Handle microMIPS ASE.
222         (mips_fix_adjustable): Likewise.
223         (tc_gen_reloc): Handle microMIPS relocations.
224         (mips_relax_frag): Handle microMIPS ASE.
225         (md_convert_frag): Likewise.
226         (mips_frob_file_after_relocs): Likewise.
227         (mips_elf_final_processing): Likewise.
228         (mips_nop_opcode): Likewise.
229         (mips_handle_align): Likewise.
230         (md_show_usage): Handle microMIPS options.
231         * symbols.c (TC_LABEL_IS_LOCAL): New macro.
232         (S_IS_LOCAL): Add a TC_LABEL_IS_LOCAL check.
233
234         * doc/as.texinfo (Target MIPS options): Add -mmicromips and
235         -mno-micromips.
236         (-mmicromips, -mno-micromips): New options.
237         * doc/c-mips.texi (-mmicromips, -mno-micromips): New options.
238         (MIPS ISA): Document .set micromips and .set nomicromips.
239         (MIPS insn): Update for microMIPS support.
240
241 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
242
243         * config/tc-mips.c (mips_ip): Make a copy of the instruction's
244         mnemonic and use it for further processing.
245
246 2011-07-24  Maciej W. Rozycki  <macro@codesourcery.com>
247
248         * config/tc-mips.c (can_swap_branch_p): Adjust for the rename of
249         INSN_TRAP to INSN_NO_DELAY_SLOT.  Remove the check for INSN_SYNC
250         as well as explicit checks for ERET and DERET when scheduling
251         branch delay slots.
252
253 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
254
255         * config/tc-i386.c (cpu_arch): Add k1om.
256         (i386_align_code): Handle PROCESSOR_K1OM.
257         (check_cpu_arch_compatible): Check EM_K1OM.
258         (i386_arch): Handle Intel K1OM.
259         (i386_mach): Return bfd_mach_k1om for Intel K1OM.
260         (i386_target_format): Return ELF_TARGET_K1OM_FORMAT for Intel
261         K1OM.
262
263         * config/tc-i386.h (ELF_TARGET_K1OM_FORMAT): New.
264         (processor_type): Add PROCESSOR_K1OM.
265
266         * doc/c-i386.texi: Document k1om.
267
268 2011-07-18  H.J. Lu  <hongjiu.lu@intel.com>
269
270         * doc/c-i386.texi: Fix a typo.
271
272 2011-07-06  Aurelien Jarno  <aurelien@aurel32.net>
273
274         * config/tc-mips.c (append_insn): delete prev_pinfo2 and pinfo2.
275
276 2011-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
277
278         * config/tc-mips.c (gpr_read_mask, gpr_write_mask): Fix handling
279         of register 0.
280
281 2011-07-04  Maciej W. Rozycki  <macro@codesourcery.com>
282
283         * config/tc-mips.c (append_insn): Make sure DWARF-2 location
284         information is properly adjusted for branches that get swapped.
285
286 2011-07-03  Samuel Thibault  <samuel.thibault@gnu.org>
287             Thomas Schwinge  <thomas@schwinge.name>
288
289         PR binutils/12913
290         * config/obj-elf.c (obj_elf_type): Use ELFOSABI_GNU name instead of
291         ELFOSABI_LINUX alias.
292         * config/tc-ia64.c: Likewise.
293
294 2011-06-30  Paul Carroll  <pcarroll@codesourcery.com>
295
296         * config/tc-arm.c (do_t_add_sub): Only allow LSL shifts of less
297         than 4 in Thumb mode.
298
299 2011-06-30  Nick Clifton  <nickc@redhat.com>
300
301         PR gas/12848
302         * config/tc-arm.c (BAD_RANGE): New error message define.
303         (md_apply_fix): Use it.
304         Fix range check for thumb branch instructions.
305
306 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
307
308         * config/tc-mips.c (append_method): New enum.
309         (can_swap_branch_p, get_append_method): New functions.
310         (append_insn): Use get_append_method to decide how the instruction
311         should be added.
312
313 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
314
315         * config/tc-mips.c (append_insn): Remove bogus goto.
316
317 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
318
319         * config/tc-mips.c (append_insn): Always clear the history after an
320         unconditional branch.
321
322 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
323
324         * config/tc-mips.c (find_altered_mips16_opcode): New function.
325         (append_insn): Use it.
326
327 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
328
329         * config/tc-mips.c (insn_uses_reg): Delete.
330         (gpr_read_mask, gpr_write_mask): New functions.
331         (fpr_read_mask, fpr_write_mask): Likewise.
332         (insns_between, nops_for_vr4130, append_insn): Use them.
333
334 2011-06-29  Richard Sandiford  <rdsandiford@googlemail.com>
335
336         * config/tc-mips.c (md_mips_end): Call mips_emit_delays.
337
338 2011-06-29  Dave Martin  <dave.martin@linaro.org>
339
340         PR gas/12931
341         * config/tc-arm.c (mapping_state): When changing to ARM or THUMB
342         state set the minimum required alignment of the section.
343
344 2011-06-29  Tristan Gingold  <gingold@adacore.com>
345
346         * config/tc-i386.c (i386_mach): Convert to ISO-C.
347         (md_begin, pe_directive_secrel, md_estimate_size_before_relax): Ditto.
348         (md_convert_frag, md_apply_fix, md_undefined_symbol): Ditto.
349         (md_section_align, tc_gen_reloc): Ditto.
350
351 2011-06-28  Tristan Gingold  <gingold@adacore.com>
352
353         * config/tc-alpha.c (s_alpha_pdesc): Fix indentation. Do not
354         generate dummy fix.
355
356 2011-06-28  Tristan Gingold  <gingold@adacore.com>
357
358         * config/tc-alpha.c (load_expression): Use alloca instead of xmalloc.
359         (emit_jsrjmp): Ditto.
360         (tc_gen_reloc): Ditto.
361
362 2011-06-28  Tristan Gingold  <gingold@adacore.com>
363
364         * config/tc-alpha.c (alpha_evax_proc_hash): Remove.
365         (alpha_evax_proc_data): New variable.
366         (s_alpha_ent): Prevent nested function.  Remove has_insert call.
367         (s_alpha_pdesc): Do not call demand_empty_rest_of_line in case of
368         error.  Do not search in the hash table.  Check if match with .ent.
369         (s_alpha_name): Remove unused variable.
370         (md_begin): Remove initialization of alpha_evax_proc_hash.
371
372 2011-06-27  Tristan Gingold  <gingold@adacore.com>
373
374         * config/tc-alpha.c (add_to_link_pool): Remove basesym parameter.
375         Locally declare basesym.  Add comments.  Do not set literal_pool_size.
376         (load_expression): Adjust call to add_to_link_pool.
377         (s_alpha_pdesc): Define pdesc symbol using dot.
378         Do not set literal_pool_size.
379         (s_alpha_end): Use NULL instead of 0.
380
381 2011-06-27  Tristan Gingold  <gingold@adacore.com>
382
383         * config/obj-evax.c (evax_frob_file_before_adjust): Add comments.
384         Fix style.
385         * config/obj-evax.h (struct alpha_linkage_fixups): Remove seg
386         field.  Add comments.
387         (obj_symbol_type, object_headers, OBJ_SYMFIELD_TYPE): Remove
388
389 2011-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
390
391         * config/tc-mips.c (fix_24k_record_store_info): If the previous
392         instruction was a store, and the next instructions are unknown,
393         assume the worst.
394
395 2011-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
396
397         PR gas/12915
398         * config/tc-mips.c (nops_for_vr4130, nops_for_24k, nops_for_insn)
399         (nops_for_sequence, nops_for_insn_or_target): Add ignore parameters.
400         (mips_emit_delays, start_noreorder): Update accordingly.
401         (append_insn): Likewise.  Revert original fix for this PR
402         and use the ignore parameter instead.
403
404 2011-06-24  Tristan Gingold  <gingold@adacore.com>
405
406         PR gas/11625
407         * config/obj-evax.c (evax_frob_symbol): Use as_bad instead of abort.
408
409 2011-06-24  Tristan Gingold  <gingold@adacore.com>
410
411         * config/tc-alpha.c (add_to_link_pool): Remove useless offset
412         variable.  Fix style.
413
414 2011-06-23  Richard Sandiford  <rdsandiford@googlemail.com>
415
416         PR gas/12915
417         * config/tc-mips.c (append_insn): Only consider hazards between the
418         pre-noreorder block and ip.
419
420 2011-06-21  Sameera Deshpande  <sameera.deshpande@arm.com>
421
422         * config/tc-arm.c (vfp_conv): Add check on range of immediate operand
423         in vcvt instruction between floating-point and fixed-point.
424         (operand_parse_code): Add "OP_oI32z".
425         (parse_operands): OP_oI32z case added.
426
427 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
428
429         * configure.tgt: Revert x32 change.
430
431 2011-06-20  Nick Clifton  <nickc@redhat.com>
432
433         * doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
434         * doc/Makefile.in: Regenerate.
435         * doc/all.texi: Set XSTORMY16.
436         * doc/c-xstormy16.texi: New file.
437
438 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>
439
440         * configure.tgt: Support x32.
441
442 2011-06-15  Nick Clifton  <nickc@redhat.com>
443
444         * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
445
446 2011-06-14  Tristan Gingold  <gingold@adacore.com>
447
448         * config/tc-ppc.h (struct ppc_tc_sy): Complete comment on within.
449         (tc_new_dot_label): Define.
450         (ppc_new_dot_label): Declare.
451         * config/tc-ppc.c (ppc_frob_label): Set within target field.
452         (ppc_fix_adjustable): Use this field to adjust the reloc.
453         (ppc_new_dot_label): New function.
454
455 2011-06-14  Alan Modra  <amodra@gmail.com>
456
457         * po/POTFILES.in: Regenerate.
458
459 2011-06-13  Walter Lee  <walt@tilera.com>
460
461         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tilegx.c and
462         config/tc-tilepro.c.
463         (TARGET_CPU_HFILES): Add config/tc-tilegx.h and
464         config/tc-tilepro.h.
465         * Makefile.in: Regenerate.
466         * configure.tgt (tilepro-*-*): New.
467         (tilegx-*-*): Likewise.
468         * config/tc-tilegx.c: New file.
469         * config/tc-tilegx.h: Likewise.
470         * config/tc-tilepro.h: Likewise.
471         * config/tc-tilepro.c: Likewise.
472         * doc/Makefile.am (CPU_DOCS): Add c-tilegx.texi and
473         c-tilepro.texi.
474         * doc/Makefile.in: Regenerate.
475         * doc/all.texi (TILEGX): Define.
476         (TILEPRO): Define.
477         * doc/as.texinfo: Add Tile-Gx and TILEPro documentation.  Include
478         c-tilegx.texi and c-tilepro.texi.
479         * doc/c-tilegx.texi: New.
480         * doc/c-tilepro.texi: New.
481
482 2011-06-13  Nick Clifton  <nickc@redhat.com>
483
484         PR gas/12854
485         * config/tc-arm.c (do_shift): Do not allow shift operations at the
486         end of a register based shift insn.
487         (do_t_shift): Likewise.
488
489 2011-06-13  Nick Clifton  <nickc@redhat.com>
490
491         * config/tc-score.c (s3_my_get_expression): Delete unused local
492         variable 'seg'.
493         (s3_do_ldst_insn): Delete unused local variable 'strbak'.
494         (s3_do16_ldst_insn): Delete unused local variable 'temp'.
495         (s3_do_macro_bcmp): Zero inst_expand array.
496         (s3_do_macro_bcmpz): Likewise.
497         (s3_s_score_end): Delete unused local variable 'dot'.
498         (s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
499         * config/tc-score7.c (s7_my_get_expression): Delete unused local
500         variable 'seg'.
501         (s7_do_ldst_insn): Delete unused local variable 'strbak'.
502         (s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
503         'r_new'.
504         (s7_s_score_end): Delete unused local variable 'dot'.
505         (s7_relax_frag): Delete unused local variable 'relax_size'.
506         (s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
507
508 2011-06-10  H.J. Lu  <hongjiu.lu@intel.com>
509
510         AVX Programming Reference (June, 2011)
511         * config/tc-i386.c (i386_error): Add invalid_vsib_address and
512         unsupported_vector_index_register.
513         (cpu_arch): Add .avx2, .bmi2, .lzcnt and .invpcid.
514         (check_VecOperands): New.
515         (match_template): Call check_VecOperands.  Handle
516         invalid_vsib_address and unsupported_vector_index_register.
517         (build_modrm_byte): Support VecSIB.  Check register-only source
518         operand when two source operands are swapped.
519         (i386_index_check): Allow Xmm/Ymm index registers.
520
521         * doc/c-i386.texi: Document avx2/.avx2, bmi2/.bmi2, lzcnt/.lzcnt
522         and invpcid./invpcid.
523
524 2011-06-09  Nick Clifton  <nickc@redhat.com>
525
526         PR gas/12861
527         * config/tc-cr16.c (tc_gen_reloc): Remove unused local variable
528         code.
529         (check_cinv_options): Remove unused local variables.  Make
530         function void.
531         (md_assemble): Remove unused local variable.
532
533 2011-06-09  James Greenhalgh  <james.greenhalgh@arm.com>
534
535         * config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
536
537 2011-06-03  Arnaud Patard  <arnaud.patard@rtp-net.org>
538
539         PR gas/12698
540         * config/tc-arm.c (parse_psr): Set m_profile to false when
541         assembling for any architecture.
542
543 2011-06-02  Jie Zhang jie@codesourcery.com
544             Nathan Sidwell nathan@codesourcery.com
545
546         * config/tc-arm.c (parse_address_main): Handle -0 offsets.
547         (encode_arm_addr_mode_2): Set default sign of zero here ...
548         (encode_arm_addr_mode_3): ... and here.
549         (encode_arm_cp_address): ... and here.
550         (md_apply_fix): Use default sign of zero here.
551
552 2011-06-02  Nick Clifton  <nickc@redhat.com>
553
554         * as.c: Fix spelling typo.
555         * read.c: Likewise.
556         * config/tc-ppc.c: Likewise.
557         * po/gas.pit: Regenerate.
558
559 2011-05-31  Paul Brook  <paul@codesourcery.com>
560
561         * config/tc-arm.c (arm_cpus): Add Cortex-R5.
562         (arm_extensions): Allow idiv on ARMv7-R.
563         * doc/c-arm.text: Update idiv extension restrictions.
564
565 2011-05-31  Paul Brook  <paul@codesourcery.com>
566
567         * config/tc-arm.c (arm_force_relocation): Resolve all pc-relative
568         loads.
569
570 2011-05-31  Paul Brook  <paul@codesourcery.com>
571
572         * config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
573         addresses.
574
575 2011-05-31  Paul Brook  <paul@codesourcery.com>
576         Nathan Sidwell  <nathan@codesourcery.com>
577
578         * config/tc-arm.c (fix_new_arm): Create an absolute symbol for
579         pc-relative fixes to constants.
580         * config/tc-arm.h (TC_FORCE_RELOCATATION_ABS): Define.
581
582 2011-05-27  Nick Clifton  <nickc@redhat.com>
583
584         * config/tc-s390.c (md_begin): Remove unused variable dup_insn.
585
586 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
587
588         * config/tc-s390.c (md_gather_operands): Fix check for floating
589         register pair operands.
590
591 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
592
593         * config/tc-s390.c (md_gather_operands): Emit an error for odd
594         numbered registers used as register pair operand.
595
596 2011-05-23  Nick Clifton  <nickc@redhat.com>
597
598         * config/tc-v850.h (TC_FX_SIZE_SLACK): Define.
599
600 2011-05-20  Bernd Schmidt  <bernds@codesourcery.com>
601
602         * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset".
603         (tic6x_parse_name): Handle it.
604         (tic6x_fix_new_exp): Handle O_pcr_offset.
605         (tic6x_fix_adjustable): Return 0 for the new relocs.
606         (md_apply_fix): Handle them.
607         (tc_gen_reloc): Likewise.
608         * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
609
610 2011-05-18  Nick Clifton  <nickc@redhat.com>
611
612         PR gas/12754
613         * config/tc-tic30.c (ordinal_names): Allow translation of the
614         ordinal names.
615
616 2011-05-18  Nick Clifton  <nickc@redhat.com>
617
618         * config/tc-arm.c (s_unreq): Reword warning message to make it
619         easier to translate.
620         * config/tc-ia64.c (md_show_usage): Add note for translators.
621         * configure.in (ALL_LINGUAS): Add "fi".
622         * configure: Regenerate.
623
624 2011-05-18  Tristan Gingold  <gingold@adacore.com>
625
626         * config/tc-ppc.h (ppc_tc_sy): Reorder fields.
627         Put size into an union with dw.
628         (OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust.
629         (ppc_xcoff_end): Declare.
630         (md_end): Define.
631         * config/tc-ppc.c: Add includes for xcoff.
632         (ppc_dwsect): New function.
633         (md_pseudo_table): Add dwsect.
634         (struct dw_subsection): New.
635         (dw_sections): New.
636         (ppc_change_debug_section): New function.
637         (ppc_xcoff_end): Ditto.
638         (ppc_function): Adjust for ppc_tc_sy.
639         (ppc_symbol_new_hook): Ditto.
640         (ppc_frob_symbol): Ditto.
641         (ppc_frob_section): Do not set vma for debug sections.
642         (ppc_fix_adjustable): Return true for debug sections.
643         * config/obj-coff.c: Add includes for xcoff.
644         (coff_frob_section): Handle dwarf section.
645
646 2011-05-17  Nick Clifton  <nickc@redhat.com>
647
648         * po/fi.po: New Finnish translation.
649         * po/fr.po: Updated French translation.
650
651         * config/tc-m32r.c (md_show_usage): Fix typos in descriptions.
652         * config/tc-mt.c (md_assemble): Fix typos in warning messages.
653         * cond.c (s_else): Fix typos in error messages.
654         * config/tc-pj.c (md_assemble): Fix typo in error message.
655
656 2011-05-16  Hans-Peter Nilsson  <hp@axis.com>
657
658         * config/tc-cris.c (md_parse_option) <OPTION_PIC>: Error if not
659         emitting ELF object.
660         (md_show_usage): Only mention --pic if the assembler can generate
661         ELF objects.
662         * doc/c-cris.texi (CRIS-Opt): Mention that generating ELF is a
663         prerequisite for --pic being a valid option.
664
665 2011-05-13  Frederic Marchal  <fmarchal@perso.be>
666
667         PR gas/12755
668         * config/tc-v850.c (parse_register_list): Correct error string.
669
670 2011-05-12  Quentin Neill  <quentin.neill@amd.com>
671
672         * config/tc-i386.c (cpu_arch): Rename PROCESSOR_BDVER1 to PROCESSOR_BD.
673         (i386_align_code): Ditto
674
675 2011-05-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
676
677         PR gas/12715
678         * config/tc-arm.c (parse_big_immediate):  Fix parsing of 64-bit
679         immediates on 32-bit hosts.
680
681 2011-05-10  Quentin Neill  <quentin.neill@amd.com>
682
683         * config/tc-i386.c (cpu_arch): Add bdver2 and rename
684         PROCESSOR_BDVER1 to PROCESSOR_BDVER.
685         (i386_align_code): Rename PROCESSOR_BDVER1.
686         (processor_type): Ditto.
687         * doc/c-i386.texi: Add bdver2.
688
689 2011-05-10  Alan Modra  <amodra@gmail.com>
690
691         * dw2gencfi.c (tc_cfi_endproc): Avoid "set but not used" error.
692
693 2011-05-09  Paul Brook  <paul@codesourcery.com>
694
695         * config/tc-tic6x.c (streq): Define.
696         (tic6x_get_unwind): New.
697         (s_tic6x_cantunwind, s_tic6x_handlerdata, s_tic6x_endp,
698         s_tic6x_personalityindex, s_tic6x_personality): New functions.
699         (md_pseudo_table): Add "endp", "handlerdata", "personalityindex",
700         "personality" and "cantunwind".
701         (tic6x_regname_to_dw2regnum, tic6x_frame_initial_instructions,
702         tic6x_start_unwind_section, tic6x_unwind_frame_regs,
703         tic6x_pop_rts_offset_little, tic6x_pop_rts_offset_big,
704         tic6x_unwind_reg_from_dwarf, tic6x_flush_unwind_word,
705         tic6x_unwind_byte, tic6x_unwind_2byte, tic6x_unwind_uleb,
706         tic6x_cfi_startproc, output_exidx_entry, tic6x_output_unwinding,
707         tic6x_cfi_endproc): New.
708         * config/tc-tic6x.h (TIC6X_NUM_UNWIND_REGS): Define.
709         (tic6x_unwind_info): New.
710         (tic6x_segment_info_type): Add marked_pr_dependency, unwind and
711         text_unwind.
712         (TARGET_USE_CFIPOP, tc_regname_to_dw2regnum,
713         tc_cfi_frame_initial_instructions, DWARF2_DEFAULT_RETURN_COLUMN,
714         DWARF2_CIE_DATA_ALIGNMENT, tc_cfi_startproc, tc_cfi_endproc,
715         tc_cfi_section_name): Define.
716         * doc/c-tic6x.texi: Document new unwinding directives.
717         * dw2gencfi.c (tc_cfi_startproc, tc_cfi_endproc): Add default
718         definitions.
719         (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset, CFI_return_column,
720         CFI_rel_offset, CFI_escape, CFI_signal_frame, CFI_val_encoded_addr):
721         Move to dw2gencfi.h.
722         (CFI_EMIT_target): Define.
723         (dot_cfi_sections): Check tc_cfi_section_name.
724         (dot_cfi_startproc): Use tc_cfi_startproc.
725         (dot_cfi_endproc): Use tc_cfi_endproc.
726         * dw2gencfi.h (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset,
727         CFI_return_column, CFI_rel_offset, CFI_escape, CFI_signal_frame,
728         CFI_val_encoded_addr):  Move to here from dw2gencfi.c.
729
730 2011-05-07  Alan Modra  <amodra@gmail.com>
731
732         * dw2gencfi.c (CUR_SEG, SET_CUR_SEG, HANDLED, SET_HANDLED): Define.
733         Use throughout in place of #if SUPPORT_FRAME_LINKONCE.
734         (struct fde_entry): Rename cseg to cur_seg.
735         (cfi_change_reg_numbers): Remove ATTRIBUTE_UNUSED.
736         (get_cfi_seg): Likewise.  Use if (SUPPORT_FRAME_LINKONCE) rather
737         that #if SUPPORT_FRAME_LINKONCE.
738         (cfi_finish): Likewise.
739
740 2011-05-06  Tristan Gingold  <gingold@adacore.com>
741
742         * read.c (s_comm_internal): Remove code for OBJ_VMS.
743         (s_data): Ditto.
744         (s_text): Ditto.
745         * write.c (write_object_file): Ditto.
746         * symbols.c (define_sym_at_dot): Ditto.
747         (colon): Ditto.
748
749 2011-05-05  Alan Modra  <amodra@gmail.com>
750
751         * dw2gencfi.c (SUPPORT_FRAME_LINKONCE): Define.  Use throughout
752         file to conditionally compile code added 2011-04-26.
753         (cfi_change_reg_numbers): Add ATTRIBUTE_UNUSED on params only used
754         when SUPPORT_FRAME_LINKONCE.
755         (get_cfi_seg): Likewise.  Reintroduce old code for when not
756         SUPPORT_FRAME_LINKONCE.
757         (cfi_finish): Move get_cfi_seg calls out of loop when not
758         SUPPORT_FRAME_LINKONCE.  Avoid unused var warning.
759
760 2011-05-03  Paul Brook  <paul@codesourcery.com>
761
762         * config/tc-tic6x.c (s_ehtype): New function.
763         (md_pseudo_table): Add "ehtype".
764         (tic6x_fix_adjustable, md_apply_fix): BFD_RELOC_C6000_EHTYPE.
765         * doc/c-tic6x.texi: Document .ehtype directive.
766
767 2011-04-26  Kai Tietz  <ktietz@redhat.com>
768
769         * dw2gencfi.c (dwcfi_seg_list): New struct.
770         (dwcfi_hash): New static hash variable.
771         (get_debugseg_name): New.
772         (alloc_debugseg_item): New.
773         (make_debug_seg): New.
774         (dwcfi_hash_insert): New.
775         (dwcfi_hash_find): New.
776         (dwcfi_hash_find_or_make): New.
777         (cfi_insn_data): New member cur_seg.
778         (cie_entry): Likewise.
779         (fde_entry): New cseg and handled members.
780         (alloc_fde_entry): Initialize cseg member.
781         (alloc_cfi_insn_data): Initialize cur_seg member.
782         (dot_cfi_sections): Compare for beginning of
783         section names via strncmp.
784         (get_cfi_seg): New.
785         (cfi_finish): Treat link-once sections.
786         (is_now_linkonce_segment): New local helper.
787         (output_cie): Ignore cie entries not member of current
788         segment.
789         (output_fde): Likewise.
790         (select_cie_for_fde): Likewise.
791         (cfi_change_reg_numbers): Add new argument for current segment
792         and ignore insn elements, if not part of current segment.
793         * ehopt.c (get_cie_info): Use strncmp for
794         section name matching.
795         (heck_eh_frame): Likewise.
796
797 2011-04-20  Catherine Moore  <clm@codesourcery.com>
798             David Ung <davidu@mips.com>
799
800         * config/mips.c (mips_cl_insn): Add new field complete_p.
801         (create_insn): Initialize complete_p to zero.
802         (BASE_REG_EQ): New.
803         (fix_24k_align_to): New.
804         (fix_24k_store_info): Declare.
805         (fix_24k_sort): New.
806         (fix_24k_record_store_info): New.
807         (nops_for_24k): New.
808         (nops_for_insn): Call nops_for_24k.
809         (append_insn): Move O_constant expression handling.
810
811 2011-04-20  Alan Modra  <amodra@gmail.com>
812
813         * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size.
814         (hash_new_sized): New function, split out from..
815         (hash_new): ..here.
816
817 2011-04-19  Nick Clifton  <nickc@redhat.com>
818
819         * config/tc-arm.c (v7m_psrs): Revert previous delta.
820
821 2011-04-18  Julian Brown  <julian@codesourcery.com>
822             Nick Clifton  <nickc@redhat.com>
823
824         * config/tc-arm.c (parse_psr): Use selected_cpu not cpu_variant to
825         detect M-profile targets.
826         (do_t_swi): Exclude v7 and higher variants from arm_ext_os test.
827         (v7m_psrs): Fix typo: basepri_max should be basepri_mask.
828
829 2011-04-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
830
831         * config/tc-s390.c (s390_machine): New prototype.
832         (md_pseudo_table): New pseudo-op .machine.
833         (s390_opcode_hash): Initialize to NULL.
834         (s390_parse_cpu): New function.
835         (md_parse_option): Use s390_parse_cpu.
836         (s390_setup_opcodes): New function.
837         (md_begin): Use s390_setup_opcodes.
838         (s390_machine): New hook handling the new .machine pseudo.
839
840         * doc/c-s390.texi: Document the new pseudo op .machine.
841
842 2011-04-12  H.J. Lu  <hongjiu.lu@intel.com>
843
844         * config/tc-i386.c (i386_mach): Start error message with lower
845         case.
846         (md_begin): Likewise.
847         (md_parse_option): Likewise.
848         (i386_target_format): Likewise.
849         (check_byte_reg): Likewise.
850         (check_long_reg): Likewise.
851         (check_qword_reg): Likewise.
852         (check_word_reg): Likewise.
853
854 2011-04-12  Nick Clifton  <nickc@redhat.com>
855
856         PR gas/12532
857         * config/tc-arm.c (relax_branch): Do not relax branches to
858         preemptable global symbols.
859
860 2011-04-11  Julian Brown  <julian@codesourcery.com>
861
862         * config/tc-arm.c (parse_psr): Add LHS argument. Improve support
863         for *APSR bitmasks.
864         (operand_parse_code): Replace OP_PSR with OP_wPSR and OP_rPSR.
865         Remove OP_RVC_PSR.
866         (parse_operands): Likewise.
867         (do_mrs): Tweak error message for constraint.
868         (do_t_mrs): Update constraints for changes to APSR support.
869         (do_t_msr): Likewise. Don't set PSR_f flag here.
870         (psrs): Remove "g", "nzcvq", "nzcvqg".
871         (insns): Tweak entries for msr and mrs instructions.
872
873 2011-04-11  Kai Tietz  <ktietz@redhat.com>
874
875         * config/tc-i386.c (x86_cons): Initialize adjust with zero.
876
877 2011-04-11  Nick Clifton  <nickc@redhat.com>
878
879         * config/tc-i386.c (x86_cons): Define even for non-ELF targets.
880         * config/tc-i386.h (x86_cons): Always prototype.
881
882         * config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
883         in order to avoid a compile time warning.
884         (getprocreg_image): Likewise.
885
886 2011-04-11  Alan Modra  <amodra@gmail.com>
887
888         * config/tc-cr16.c (getprocreg_image): Correct range check.
889         (getprocregp_image): Likewise.
890
891 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
892
893         * configure.tgt (strongarm*be, strongarm*b, strongarm*,
894         xscale*be|xscale*b, xscale*): Remove architectures.
895         (thumb-*-coff, thumb-*-rtems*, thumb-*-elf, thumb-epoc-pe,
896         thumb-*-pe, xscale-*-coff, xscale-*-elf): Remove targets.
897
898 2011-04-01  Tristan Gingold  <gingold@adacore.com>
899
900         * config/tc-ia64.c (md_apply_fix): Add a cast to avoid a warning.
901
902 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
903
904         * config/tc-tic6x.c (sbss_section, scom_section, scom_symbol): New
905         static variables.
906         (md_begin): Initialize them.
907         (s_tic6x_scomm): New static function.
908         (md_pseudo_table): Add "scomm".
909         (tc_gen_reloc): Really undo all adjustments made by
910         bfd_install_relocation.
911         * doc/c-tic6x.texi: Document the .scomm directive.
912
913 2011-03-31  Tristan Gingold  <gingold@adacore.com>
914
915         * dwarf2dbg.c (DWARF2_VERSION): Define.
916         (out_debug_line): Use it.
917         (out_debug_aranges): Ditto.
918         (out_debug_info): Ditto.
919         * config/tc-ia64.h (DWARF2_VERSION): Override it.
920
921 2011-03-30  Michael Snyder  <msnyder@vmware.com>
922
923         * obj-elf.c (obj_elf_section): Free malloced name.
924         * macro.c (get_any_string): Free malloced br_buf.
925         (do_formals): Free 'formal'.
926
927 2011-03-30  Tristan Gingold  <gingold@adacore.com>
928
929         * config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
930         to offset only if within is set.
931         (ppc_stabx): Reformat.  For stsym stabs, add a check and set
932         within only for symbols.
933
934 2011-03-29  Richard Henderson  <rth@redhat.com>
935
936         PR 12610
937         * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous
938         label; zap alpha_insn_label.
939
940 2011-03-29  H.J. Lu  <hongjiu.lu@intel.com>
941
942         * config/tc-i386.c (handle_quad): Properly handle multiple
943         operands.
944
945 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
946
947         * config/bfin-parse.y (BYTEUNPACK): Return yyerror when dest
948         reg $2 is the same as dest reg $4.
949
950 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
951
952         * config/bfin-parse.y (BYTEOP16M): Return yyerror when dest
953         reg $2 is the same as dest reg $4.
954
955 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
956
957         * config/bfin-parse.y (BYTEOP16P): Return yyerror when dest
958         reg $2 is the same as dest reg $4.
959
960 2011-03-28  Mike Frysinger  <vapier@gentoo.org>
961
962         * config/bfin-parse.y (16bit acc add): Return yyerror when dest
963         reg $1 is the same as dest reg $7.
964
965 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
966
967         * config/tc-i386.c (handle_quad): New.
968         (md_pseudo_table): Add "quad".
969
970 2011-03-26  John Marino  <binutils@marino.st>
971
972         * configure.tgt: Fix support for *-*-dragonfly*.
973         * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
974         * config/te-dragonfly.h: New file.
975
976 2011-03-24  Eric B. Weddington  <eric.weddington@atmel.com>
977
978         * config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
979         atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
980         at90pwm161.
981         * doc/c-avr.texi: Document new device names.
982
983 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
984
985         * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
986         reg $1 is the same as dest reg $7.
987         (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
988         dest reg $7.
989
990 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
991
992         * config/bfin-parse.y (check_macfuncs): Clarify error message when
993         P is mismatched.  Check destination regno are off by one when P is
994         set, or are equal when P is not set.
995
996 2011-03-23  Mike Frysinger  <vapier@gentoo.org>
997
998         * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
999         the same as dest reg $4.
1000         (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
1001
1002 2011-03-23  Eric B. Weddington  <eric.weddington@atmel.com>
1003
1004         * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
1005         atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
1006         * doc/c-avr.texi: Document new device names.
1007
1008 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
1009
1010         * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
1011         (AVR_INSN): Change definition to match.
1012         (avr_opcodes): Likewise, change to match.
1013         (mcu_types): Add XMEGA architecture names and new XMEGA device names.
1014         (md_show_usage): Add XMEGA architecture names.
1015         (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
1016         Add support for SPM Z+ instruction.
1017         * doc/c-avr.texi: Add documentation for XMEGA architectures and
1018         devices.
1019
1020 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
1021
1022         * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
1023
1024 2011-03-18  Alan Modra  <amodra@gmail.com>
1025
1026         * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
1027         on .size expression errors rather than symbols in the size expression.
1028
1029 2011-03-18  Alan Modra  <amodra@gmail.com>
1030
1031         * input-scrub.c (line_numberT): Delete.
1032         (input_scrub_close): Reset line counters.
1033         * messages.c (as_show_where): Don't print invalid line number.
1034         (as_warn_internal, as_bad_internal): Likewise.
1035
1036 2011-03-18  Alan Modra  <amodra@gmail.com>
1037
1038         * read.c (read_a_source_file): Remove md_after_pass_hook.
1039         Move "quit" label before set of dot_symbol.
1040         * config/tc-d10v.h (md_after_pass_hook): Don't define.
1041         * config/tc-d30v.h (md_after_pass_hook): Likewise.
1042         * config/tc-m32r.h (md_after_pass_hook): Likewise.
1043         (md_cleanup): Define to call m32r_fill_insn.
1044
1045 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1046
1047         * config/tc-s390.c (md_parse_option): Add -march=all option which
1048         switches to the highest available CPU.
1049
1050 2011-03-17  Alan Modra  <amodra@gmail.com>
1051
1052         PR 12569
1053         * expr.c (operand): Correct passing of "mode" to expr.
1054         * read.c (do_org): Allow expr_section.
1055         (get_known_segmented_expression): Don't assert anything about the
1056         segment.
1057
1058 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         * as.c (show_usage): Add --size-check=.
1061         (parse_args): Add and handle OPTION_SIZE_CHECK.
1062
1063         * as.h (flag_size_check): New.
1064
1065         * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
1066         bad .size directive only for --size-check=error.
1067
1068         * doc/as.texinfo: Document --size-check=.
1069
1070 2011-03-14  Mike Frysinger  <vapier@gentoo.org>
1071
1072         * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
1073         bf542/bf544/bf547/bf548/bf549.
1074
1075 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
1076
1077         * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
1078         determine whether a relocation is needed.
1079         (md_apply_fix, arm_apply_sym_value): Likewise.
1080
1081 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
1082
1083         * config/tc-arm.c (arm_adjust_symtab): Set the branch type
1084         for Thumb symbols.
1085
1086 2011-03-11  Nick Clifton  <nickc@redhat.com>
1087
1088         * remap.c (remap_debug_filename): Always allocate a buffer for the
1089         returned pointer.
1090         * stabs.c (stabs_generate_asm_file): Free the pointer returned by
1091         remap_debug_filename.
1092
1093 2011-03-10  Michael Snyder  <msnyder@vmware.com>
1094
1095         Revert the following change:
1096         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
1097         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
1098
1099 2011-03-10  Alan Modra  <amodra@gmail.com>
1100
1101         * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
1102         TARGET_SYMBOL_FIELDS): Don't define.
1103         * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
1104
1105 2011-03-09  Michael Snyder  <msnyder@vmware.com>
1106
1107         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
1108         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
1109         (emit_fixed_inc_line_addr): Assign instead of conditional in
1110         assert.
1111
1112 2011-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1113
1114         * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
1115         non-constant .size expression.
1116
1117 2011-03-02  Nick Clifton  <nickc@redhat.com>
1118
1119         * ecoff.c: Incldue filenames.h
1120
1121 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
1122
1123         * depend.c (register_dependency): Use filename_(n)cmp.
1124         * dwarf2dbg.c (get_filenum): Likewise.
1125         * ecoff.c (add_file): Likewise.
1126         (ecoff_generate_asm_lineno): Likewise.
1127         * input-scrub.c (new_logical_line_flags): Likewise.
1128         * listing.c (file_info): Likewise.
1129         (listing_newline): Likewise.
1130         * remap.c (remap_debug_filename): Likewise.
1131         * stabs.c (generate_asm_file): Likewise.
1132         (stabs_generate_asm_lineno): Likewise.
1133
1134 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1135
1136         * config/tc-mips.c (append_insn): Disable branch relaxation for
1137         DSP instructions.
1138
1139 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1140
1141         * config/tc-mips.c (macro): Handle M_PREF_AB.
1142
1143 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1144
1145         * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
1146         register to use.
1147         (RELAX_BRANCH_UNCOND): Adjust accordingly.
1148         (RELAX_BRANCH_LIKELY): Likewise.
1149         (RELAX_BRANCH_LINK): Likewise.
1150         (RELAX_BRANCH_TOOFAR): Likewise.
1151         (RELAX_BRANCH_AT): New macro.
1152         (append_insn): Encode the temporary register to use in standard
1153         MIPS branch relaxation.
1154         (relaxed_branch_length): Update according to changes to
1155         RELAX_BRANCH_ENCODE.
1156         (md_convert_frag): Use the encoded register as the temporary.
1157
1158 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1159
1160         * config/tc-mips.c (mips_fix_adjustable): On REL targets also
1161         reject PC-relative relocations.
1162
1163 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
1164
1165         * config/tc-mips.c (md_convert_frag): Correct message
1166         capitalization.
1167
1168 2011-02-28  Alan Modra  <amodra@gmail.com>
1169
1170         * symbols.c (report_op_error): Remove unnecessary forward declaration.
1171         Add "op" parameter.  Report operator and operand segments in error
1172         message, not operand symbols.
1173         (resolve_symbol_value): Always set segment for equated symbols, not
1174         just when finalizing.  Adjust report_op_error calls.
1175
1176 2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
1179         if 64bit relocations aren't allowed.
1180
1181 2011-02-25  Alan Modra  <amodra@gmail.com>
1182
1183         PR gas/12519
1184         * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
1185
1186 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
1187
1188         * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
1189         initialization of offset_reloc.
1190
1191 2011-02-15  Richard Henderson  <rth@redhat.com>
1192
1193         * dw2gencfi.c (dot_cfi_dummy): New.
1194         (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
1195         * read.c (pobegin): Unconditionally call cfi_pop_insert.
1196
1197 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1198
1199         * configure: Regenerate.
1200
1201 2011-02-13  Mike Frysinger  <vapier@gentoo.org>
1202
1203         * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
1204         * config/bfin-parse.y (BYTEOP2M): Delete token.
1205         (asm_1): Remove BYTEOP2M insn matching.
1206
1207 2011-02-12  Mike Frysinger  <vapier@gentoo.org>
1208
1209         * config/bfin-defs.h: Include opcode/bfin.h.
1210         (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
1211
1212 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
1213
1214         * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
1215         (Modify Registers): Fix subtracted typo.
1216         (.byte2): Extend and swap descriptions with .byte4.
1217         (.byte4): Extend and swap descriptions with .byte2.
1218         (.db, .dw, .dd): Document behavior.
1219
1220 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
1221
1222         * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
1223
1224 2011-02-11  Alan Modra  <amodra@gmail.com>
1225
1226         * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
1227
1228 2011-02-10  Alan Modra  <amodra@gmail.com>
1229
1230         * doc/as.texinfo (Overview): Add missing markup around Blackfin
1231         and PowerPC options.
1232
1233 2011-02-10  Alan Modra  <amodra@gmail.com>
1234
1235         * config/tc-ppc.c (md_show_usage): Remove -l and -b.  Add -K PIC.
1236         * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
1237         (Overview <Target PowerPC options>): Add a number of missing options.
1238         * doc/c-ppc.texi: Likewise.  Add markup for use in manpage generation.
1239
1240 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         PR gas/6957
1243         * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
1244         for i686.
1245
1246 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
1247
1248         * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
1249         for ISA extensions.
1250         (md_parse_option): Likewise.
1251
1252 2011-02-04  Bernd Schmidt  <bernds@codesourcery.com>
1253
1254         * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
1255         * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
1256         (TIC6X Options): Don't mention "-matomic".
1257         * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
1258         (md_longopts): Remove corresponding entries.
1259         (md_parse_option): Don't handle them.
1260         (md_show_usage): Don't document them.
1261         (tic6x_atomic): Delete variable.
1262         (tic6x_update_features): Always copy tic6x_arch_enable to
1263         tic6x_features.
1264         (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
1265         (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
1266         (md_pseudo_table): Remove ".atomic" and ".noatomic".
1267
1268 2011-01-31  Nick Clifton  <nickc@redhat.com>
1269
1270         * write.c (write_contents): Include output file name and bfd error
1271         value when reporting the inability to write to the output file.
1272         * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
1273         frag that has a non-zero fill value.
1274
1275 2011-01-27  DJ Delorie  <dj@redhat.com>
1276
1277         * config/tc-rx.c (md_convert_frag): If we can't compute the target
1278         address, zero out the values stored in the object file to make
1279         objdump's output consistent.
1280
1281 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
1282
1283         * config/tc-i386.c (md_begin): Set for x64 windows COFF target
1284         x86_dwarf2_return_column to 32.
1285
1286 2011-01-20  Nick Clifton  <nickc@redhat.com>
1287
1288         PR gas/12384
1289         * config/tc-h8300.c (constant_fits_width_p): Use correct type for
1290         comparison.
1291
1292 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1293
1294         * write.c (compress_debug): Return if section size is smaller
1295         than 32 bytes.
1296
1297 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1298
1299         PR gas/12409
1300         * write.c (compress_debug): Return if section size is 0.
1301
1302 2011-01-18  Mingfeng Wu  <mingfeng@faraday-tech.com>
1303
1304         * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
1305         cores: fa606te, fa616te, fmp626.  Modify the VFP of fa626te.
1306         * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
1307         fmp626} options.
1308
1309 2011-01-18  Nick Clifton  <nickc@redhat.com>
1310
1311         PR gas/12390
1312         * doc/all.texi: Add NS32K
1313         * doc/as.texinfo: Remove target specific details of which
1314         characters act as comment initiators and statement separators into
1315         individual target specific files.
1316         * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
1317         the hash character at the start of a line.
1318         * doc/c-arm.texi (ARM-Chars): Likewise.
1319         * doc/c-avr.texi (AVR-Chars): Likewise.
1320         * doc/c-d10v.texi (D10V-Chars): Likewise.
1321         * doc/c-d30v.texi (D30V-Chars): Likewise.
1322         * doc/c-mmix.texi (MMIX-Chars): Likewise.
1323         * doc/c-s390.texi (s390 characters): Likewise.
1324         * doc/c-sh.texi (SH-Chars): Likewise.
1325         * doc/c-sh64.texi (SH64-Chars): Likewise.
1326         * doc/c-sparc.texi (SPARC-Chars): Likewise.
1327         * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
1328         * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
1329         * doc/c-z80.texi (Z80-Chars): Likewise.
1330         * doc/c-z8k.texi (Z8000-Chars): Likewise.
1331         * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
1332         * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
1333         * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
1334         line separator characters.
1335         * doc/c-cr16.texi (CR16 Syntax): Likewise.
1336         * doc/c-i386.texi (i386-Chars): Likewise.
1337         * doc/c-i860.texi (i860-Chars): Likewise.
1338         * doc/c-i960.texi (i960-Chars): Likewise.
1339         * doc/c-ip2k.texi (IP2K-Chars): Likewise.
1340         * doc/c-lm32.texi (LM32-Chars): likewise.
1341         * doc/c-m32c.texi (M32C-Chars): Likewise.
1342         * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
1343         * doc/c-m68k.texi (M68K-Chars): Likewise.
1344         * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
1345         * doc/c-msp430.texi (MSP430-Chars): Likewise.
1346         * doc/c-mt.texi (MT-Chars): Likewise.
1347         * doc/c-ns32k.texi (NS32K-Chars): Likewise.
1348         * doc/c-pj.texi (PJ-Chars): Likewise.
1349         * doc/c-ppc.texi (PowerPC-Chars): Likewise.
1350         * doc/c-rx.texi (RX-Chars): Likewise.
1351         * doc/c-score.texi (SCORE-Chars): Likewise.
1352         * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
1353         * doc/c-v850.texi (V850-Chars): Likewise.
1354         * doc/c-vax.texi (VAX-Chars): Likewise.
1355         * doc/c-xc16x.texi (xc16x-Chars): Likewise.
1356
1357 2011-01-17  Quentin Neill  <quentin.neill@amd.com>
1358
1359         * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
1360
1361         * doc/c-i386.texi (i386-TBM): New section.
1362
1363 2011-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1364
1365         * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
1366         (disallow_64bit_reloc): This.
1367         (md_assemble): Don't check movabs for x32 mode here.
1368         (i386_target_format): Updated.
1369         (tc_gen_reloc): Check if 64bit relocations are allowed.
1370
1371 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1372
1373         * config/tc-i386.c (disallow_64bit_disp): New.
1374         (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
1375         X86_64_ABI/X86_64_X32_ABI.
1376         (md_assemble): Don't allow movabs with relocation in x32 mode.
1377         (i386_target_format): Updated.
1378
1379 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         * config/tc-i386.c (OPTION_N32): Renamed to ...
1382         (OPTION_X32): This.
1383         (md_longopts): Replace n32 with x32.
1384         (md_parse_option): Updated.
1385         (md_show_usage): Likewise.
1386
1387         * doc/c-i386.texi: Replace --n32 with --x32.
1388
1389 2011-01-11  Mingjie Xing  <mingjie.xing@gmail.com>
1390
1391         * config/tc-mips.c (mips_ip): Update error messages.  Take an
1392         unadjusted offset for "+c" argument.
1393
1394 2011-01-10  Nick Clifton  <nickc@redhat.com>
1395
1396         * config/tc-i386.c (x86_elf_abi): Only define for targets that use
1397         it.
1398
1399 2011-01-10  Nick Clifton  <nickc@redhat.com>
1400
1401         * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
1402         part of the file.
1403
1404 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
1405             Glauber de Oliveira Costa  <glommer@gmail.com>
1406
1407         * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
1408         .tlsdescseq directive.
1409         * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
1410         following a symbol.
1411         (s_arm_tls_descseq): New directive.
1412         (md_pseudo_table): Add it.
1413         (encode_branch): Allow TLS_CALL relocs too.
1414         (do_t_blx, do_t_branch23): Use encode_branch.
1415         (reloc_names): Add tlsdesc and tlscall.
1416         (md_apply_fix): Process tls desc relocations.
1417         (tc_gen_reloc): Likewise.
1418         (arm_fix_adjustable): Likewise.
1419
1420 2011-01-07  Quentin Neill  <quentin.neill@amd.com>
1421
1422         * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
1423
1424         * doc/c-i386.texi (i386-BMI): New section.
1425
1426 2011-01-06  Paul Koning  <ni1d@arrl.net>
1427
1428         * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
1429         references to absolute addresses.
1430
1431 2011-01-05  DJ Delorie  <dj@redhat.com>
1432
1433         * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
1434         instead of an RH_NEG32 one.
1435
1436 2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1437
1438         * doc/c-i386.texi: Clarify --n32.
1439
1440 2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1441
1442         * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
1443         integer registers in VEX.vvvv.  Check register-only source
1444         operand when two source operands are swapped.  Properly update
1445         destination when two source operands are swapped.
1446
1447 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1448
1449         * gas.c (parse_args): Update copyright to 2011.
1450
1451 For older changes see ChangeLog-2010
1452 \f
1453 Local Variables:
1454 mode: change-log
1455 left-margin: 8
1456 fill-column: 74
1457 version-control: never
1458 End: