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