Remove previous patch, committed in error.
[platform/upstream/binutils.git] / gas / ChangeLog
1 2011-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
2
3         * config/tc-mips.c (fix_24k_record_store_info): If the previous
4         instruction was a store, and the next instructions are unknown,
5         assume the worst.
6
7 2011-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
8
9         PR gas/12915
10         * config/tc-mips.c (nops_for_vr4130, nops_for_24k, nops_for_insn)
11         (nops_for_sequence, nops_for_insn_or_target): Add ignore parameters.
12         (mips_emit_delays, start_noreorder): Update accordingly.
13         (append_insn): Likewise.  Revert original fix for this PR
14         and use the ignore parameter instead.
15
16 2011-06-24  Tristan Gingold  <gingold@adacore.com>
17
18         PR gas/11625
19         * config/obj-evax.c (evax_frob_symbol): Use as_bad instead of abort.
20
21 2011-06-24  Tristan Gingold  <gingold@adacore.com>
22
23         * config/tc-alpha.c (add_to_link_pool): Remove useless offset
24         variable.  Fix style.
25
26 2011-06-23  Richard Sandiford  <rdsandiford@googlemail.com>
27
28         PR gas/12915
29         * config/tc-mips.c (append_insn): Only consider hazards between the
30         pre-noreorder block and ip.
31
32 2011-06-21  Sameera Deshpande  <sameera.deshpande@arm.com>
33
34         * config/tc-arm.c (vfp_conv): Add check on range of immediate operand
35         in vcvt instruction between floating-point and fixed-point.
36         (operand_parse_code): Add "OP_oI32z".
37         (parse_operands): OP_oI32z case added.
38
39 2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>
40
41         * configure.tgt: Revert x32 change.
42
43 2011-06-20  Nick Clifton  <nickc@redhat.com>
44
45         * doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
46         * doc/Makefile.in: Regenerate.
47         * doc/all.texi: Set XSTORMY16.
48         * doc/c-xstormy16.texi: New file.
49
50 2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>
51
52         * configure.tgt: Support x32.
53
54 2011-06-15  Nick Clifton  <nickc@redhat.com>
55
56         * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
57
58 2011-06-14  Tristan Gingold  <gingold@adacore.com>
59
60         * config/tc-ppc.h (struct ppc_tc_sy): Complete comment on within.
61         (tc_new_dot_label): Define.
62         (ppc_new_dot_label): Declare.
63         * config/tc-ppc.c (ppc_frob_label): Set within target field.
64         (ppc_fix_adjustable): Use this field to adjust the reloc.
65         (ppc_new_dot_label): New function.
66
67 2011-06-14  Alan Modra  <amodra@gmail.com>
68
69         * po/POTFILES.in: Regenerate.
70
71 2011-06-13  Walter Lee  <walt@tilera.com>
72
73         * Makefile.am (TARGET_CPU_CFILES): Add config/tc-tilegx.c and
74         config/tc-tilepro.c.
75         (TARGET_CPU_HFILES): Add config/tc-tilegx.h and
76         config/tc-tilepro.h.
77         * Makefile.in: Regenerate.
78         * configure.tgt (tilepro-*-*): New.
79         (tilegx-*-*): Likewise.
80         * config/tc-tilegx.c: New file.
81         * config/tc-tilegx.h: Likewise.
82         * config/tc-tilepro.h: Likewise.
83         * config/tc-tilepro.c: Likewise.
84         * doc/Makefile.am (CPU_DOCS): Add c-tilegx.texi and
85         c-tilepro.texi.
86         * doc/Makefile.in: Regenerate.
87         * doc/all.texi (TILEGX): Define.
88         (TILEPRO): Define.
89         * doc/as.texinfo: Add Tile-Gx and TILEPro documentation.  Include
90         c-tilegx.texi and c-tilepro.texi.
91         * doc/c-tilegx.texi: New.
92         * doc/c-tilepro.texi: New.
93
94 2011-06-13  Nick Clifton  <nickc@redhat.com>
95
96         PR gas/12854
97         * config/tc-arm.c (do_shift): Do not allow shift operations at the
98         end of a register based shift insn.
99         (do_t_shift): Likewise.
100
101 2011-06-13  Nick Clifton  <nickc@redhat.com>
102
103         * config/tc-score.c (s3_my_get_expression): Delete unused local
104         variable 'seg'.
105         (s3_do_ldst_insn): Delete unused local variable 'strbak'.
106         (s3_do16_ldst_insn): Delete unused local variable 'temp'.
107         (s3_do_macro_bcmp): Zero inst_expand array.
108         (s3_do_macro_bcmpz): Likewise.
109         (s3_s_score_end): Delete unused local variable 'dot'.
110         (s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
111         * config/tc-score7.c (s7_my_get_expression): Delete unused local
112         variable 'seg'.
113         (s7_do_ldst_insn): Delete unused local variable 'strbak'.
114         (s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
115         'r_new'.
116         (s7_s_score_end): Delete unused local variable 'dot'.
117         (s7_relax_frag): Delete unused local variable 'relax_size'.
118         (s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
119
120 2011-06-10  H.J. Lu  <hongjiu.lu@intel.com>
121
122         AVX Programming Reference (June, 2011)
123         * config/tc-i386.c (i386_error): Add invalid_vsib_address and
124         unsupported_vector_index_register.
125         (cpu_arch): Add .avx2, .bmi2, .lzcnt and .invpcid.
126         (check_VecOperands): New.
127         (match_template): Call check_VecOperands.  Handle
128         invalid_vsib_address and unsupported_vector_index_register.
129         (build_modrm_byte): Support VecSIB.  Check register-only source
130         operand when two source operands are swapped.
131         (i386_index_check): Allow Xmm/Ymm index registers.
132
133         * doc/c-i386.texi: Document avx2/.avx2, bmi2/.bmi2, lzcnt/.lzcnt
134         and invpcid./invpcid.
135
136 2011-06-09  Nick Clifton  <nickc@redhat.com>
137
138         PR gas/12861
139         * config/tc-cr16.c (tc_gen_reloc): Remove unused local variable
140         code.
141         (check_cinv_options): Remove unused local variables.  Make
142         function void.
143         (md_assemble): Remove unused local variable.
144
145 2011-06-09  James Greenhalgh  <james.greenhalgh@arm.com>
146
147         * config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
148
149 2011-06-03  Arnaud Patard  <arnaud.patard@rtp-net.org>
150
151         PR gas/12698
152         * config/tc-arm.c (parse_psr): Set m_profile to false when
153         assembling for any architecture.
154
155 2011-06-02  Jie Zhang jie@codesourcery.com
156             Nathan Sidwell nathan@codesourcery.com
157
158         * config/tc-arm.c (parse_address_main): Handle -0 offsets.
159         (encode_arm_addr_mode_2): Set default sign of zero here ...
160         (encode_arm_addr_mode_3): ... and here.
161         (encode_arm_cp_address): ... and here.
162         (md_apply_fix): Use default sign of zero here.
163
164 2011-06-02  Nick Clifton  <nickc@redhat.com>
165
166         * as.c: Fix spelling typo.
167         * read.c: Likewise.
168         * config/tc-ppc.c: Likewise.
169         * po/gas.pit: Regenerate.
170
171 2011-05-31  Paul Brook  <paul@codesourcery.com>
172
173         * config/tc-arm.c (arm_cpus): Add Cortex-R5.
174         (arm_extensions): Allow idiv on ARMv7-R.
175         * doc/c-arm.text: Update idiv extension restrictions.
176
177 2011-05-31  Paul Brook  <paul@codesourcery.com>
178
179         * config/tc-arm.c (arm_force_relocation): Resolve all pc-relative
180         loads.
181
182 2011-05-31  Paul Brook  <paul@codesourcery.com>
183
184         * config/tc-arm.c (do_t_branch): Avoid relaxing branches to constant
185         addresses.
186
187 2011-05-31  Paul Brook  <paul@codesourcery.com>
188         Nathan Sidwell  <nathan@codesourcery.com>
189
190         * config/tc-arm.c (fix_new_arm): Create an absolute symbol for
191         pc-relative fixes to constants.
192         * config/tc-arm.h (TC_FORCE_RELOCATATION_ABS): Define.
193
194 2011-05-27  Nick Clifton  <nickc@redhat.com>
195
196         * config/tc-s390.c (md_begin): Remove unused variable dup_insn.
197
198 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
199
200         * config/tc-s390.c (md_gather_operands): Fix check for floating
201         register pair operands.
202
203 2011-05-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
204
205         * config/tc-s390.c (md_gather_operands): Emit an error for odd
206         numbered registers used as register pair operand.
207
208 2011-05-23  Nick Clifton  <nickc@redhat.com>
209
210         * config/tc-v850.h (TC_FX_SIZE_SLACK): Define.
211
212 2011-05-20  Bernd Schmidt  <bernds@codesourcery.com>
213
214         * config/tc-tic6x.c (tic6x_operators): Add "pcr_offset".
215         (tic6x_parse_name): Handle it.
216         (tic6x_fix_new_exp): Handle O_pcr_offset.
217         (tic6x_fix_adjustable): Return 0 for the new relocs.
218         (md_apply_fix): Handle them.
219         (tc_gen_reloc): Likewise.
220         * config/tc-tic6x.h (tic6x_fix_info): Add a fix_subsy member.
221
222 2011-05-18  Nick Clifton  <nickc@redhat.com>
223
224         PR gas/12754
225         * config/tc-tic30.c (ordinal_names): Allow translation of the
226         ordinal names.
227
228 2011-05-18  Nick Clifton  <nickc@redhat.com>
229
230         * config/tc-arm.c (s_unreq): Reword warning message to make it
231         easier to translate.
232         * config/tc-ia64.c (md_show_usage): Add note for translators.
233         * configure.in (ALL_LINGUAS): Add "fi".
234         * configure: Regenerate.
235
236 2011-05-18  Tristan Gingold  <gingold@adacore.com>
237
238         * config/tc-ppc.h (ppc_tc_sy): Reorder fields.
239         Put size into an union with dw.
240         (OBJ_COPY_SYMBOL_ATTRIBUTES): Adjust.
241         (ppc_xcoff_end): Declare.
242         (md_end): Define.
243         * config/tc-ppc.c: Add includes for xcoff.
244         (ppc_dwsect): New function.
245         (md_pseudo_table): Add dwsect.
246         (struct dw_subsection): New.
247         (dw_sections): New.
248         (ppc_change_debug_section): New function.
249         (ppc_xcoff_end): Ditto.
250         (ppc_function): Adjust for ppc_tc_sy.
251         (ppc_symbol_new_hook): Ditto.
252         (ppc_frob_symbol): Ditto.
253         (ppc_frob_section): Do not set vma for debug sections.
254         (ppc_fix_adjustable): Return true for debug sections.
255         * config/obj-coff.c: Add includes for xcoff.
256         (coff_frob_section): Handle dwarf section.
257
258 2011-05-17  Nick Clifton  <nickc@redhat.com>
259
260         * po/fi.po: New Finnish translation.
261         * po/fr.po: Updated French translation.
262
263         * config/tc-m32r.c (md_show_usage): Fix typos in descriptions.
264         * config/tc-mt.c (md_assemble): Fix typos in warning messages.
265         * cond.c (s_else): Fix typos in error messages.
266         * config/tc-pj.c (md_assemble): Fix typo in error message.
267
268 2011-05-16  Hans-Peter Nilsson  <hp@axis.com>
269
270         * config/tc-cris.c (md_parse_option) <OPTION_PIC>: Error if not
271         emitting ELF object.
272         (md_show_usage): Only mention --pic if the assembler can generate
273         ELF objects.
274         * doc/c-cris.texi (CRIS-Opt): Mention that generating ELF is a
275         prerequisite for --pic being a valid option.
276
277 2011-05-13  Frederic Marchal  <fmarchal@perso.be>
278
279         PR gas/12755
280         * config/tc-v850.c (parse_register_list): Correct error string.
281
282 2011-05-12  Quentin Neill  <quentin.neill@amd.com>
283
284         * config/tc-i386.c (cpu_arch): Rename PROCESSOR_BDVER1 to PROCESSOR_BD.
285         (i386_align_code): Ditto
286
287 2011-05-12  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
288
289         PR gas/12715
290         * config/tc-arm.c (parse_big_immediate):  Fix parsing of 64-bit
291         immediates on 32-bit hosts.
292
293 2011-05-10  Quentin Neill  <quentin.neill@amd.com>
294
295         * config/tc-i386.c (cpu_arch): Add bdver2 and rename
296         PROCESSOR_BDVER1 to PROCESSOR_BDVER.
297         (i386_align_code): Rename PROCESSOR_BDVER1.
298         (processor_type): Ditto.
299         * doc/c-i386.texi: Add bdver2.
300
301 2011-05-10  Alan Modra  <amodra@gmail.com>
302
303         * dw2gencfi.c (tc_cfi_endproc): Avoid "set but not used" error.
304
305 2011-05-09  Paul Brook  <paul@codesourcery.com>
306
307         * config/tc-tic6x.c (streq): Define.
308         (tic6x_get_unwind): New.
309         (s_tic6x_cantunwind, s_tic6x_handlerdata, s_tic6x_endp,
310         s_tic6x_personalityindex, s_tic6x_personality): New functions.
311         (md_pseudo_table): Add "endp", "handlerdata", "personalityindex",
312         "personality" and "cantunwind".
313         (tic6x_regname_to_dw2regnum, tic6x_frame_initial_instructions,
314         tic6x_start_unwind_section, tic6x_unwind_frame_regs,
315         tic6x_pop_rts_offset_little, tic6x_pop_rts_offset_big,
316         tic6x_unwind_reg_from_dwarf, tic6x_flush_unwind_word,
317         tic6x_unwind_byte, tic6x_unwind_2byte, tic6x_unwind_uleb,
318         tic6x_cfi_startproc, output_exidx_entry, tic6x_output_unwinding,
319         tic6x_cfi_endproc): New.
320         * config/tc-tic6x.h (TIC6X_NUM_UNWIND_REGS): Define.
321         (tic6x_unwind_info): New.
322         (tic6x_segment_info_type): Add marked_pr_dependency, unwind and
323         text_unwind.
324         (TARGET_USE_CFIPOP, tc_regname_to_dw2regnum,
325         tc_cfi_frame_initial_instructions, DWARF2_DEFAULT_RETURN_COLUMN,
326         DWARF2_CIE_DATA_ALIGNMENT, tc_cfi_startproc, tc_cfi_endproc,
327         tc_cfi_section_name): Define.
328         * doc/c-tic6x.texi: Document new unwinding directives.
329         * dw2gencfi.c (tc_cfi_startproc, tc_cfi_endproc): Add default
330         definitions.
331         (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset, CFI_return_column,
332         CFI_rel_offset, CFI_escape, CFI_signal_frame, CFI_val_encoded_addr):
333         Move to dw2gencfi.h.
334         (CFI_EMIT_target): Define.
335         (dot_cfi_sections): Check tc_cfi_section_name.
336         (dot_cfi_startproc): Use tc_cfi_startproc.
337         (dot_cfi_endproc): Use tc_cfi_endproc.
338         * dw2gencfi.h (cfi_insn_data, fde_entry, CFI_adjust_cfa_offset,
339         CFI_return_column, CFI_rel_offset, CFI_escape, CFI_signal_frame,
340         CFI_val_encoded_addr):  Move to here from dw2gencfi.c.
341
342 2011-05-07  Alan Modra  <amodra@gmail.com>
343
344         * dw2gencfi.c (CUR_SEG, SET_CUR_SEG, HANDLED, SET_HANDLED): Define.
345         Use throughout in place of #if SUPPORT_FRAME_LINKONCE.
346         (struct fde_entry): Rename cseg to cur_seg.
347         (cfi_change_reg_numbers): Remove ATTRIBUTE_UNUSED.
348         (get_cfi_seg): Likewise.  Use if (SUPPORT_FRAME_LINKONCE) rather
349         that #if SUPPORT_FRAME_LINKONCE.
350         (cfi_finish): Likewise.
351
352 2011-05-06  Tristan Gingold  <gingold@adacore.com>
353
354         * read.c (s_comm_internal): Remove code for OBJ_VMS.
355         (s_data): Ditto.
356         (s_text): Ditto.
357         * write.c (write_object_file): Ditto.
358         * symbols.c (define_sym_at_dot): Ditto.
359         (colon): Ditto.
360
361 2011-05-05  Alan Modra  <amodra@gmail.com>
362
363         * dw2gencfi.c (SUPPORT_FRAME_LINKONCE): Define.  Use throughout
364         file to conditionally compile code added 2011-04-26.
365         (cfi_change_reg_numbers): Add ATTRIBUTE_UNUSED on params only used
366         when SUPPORT_FRAME_LINKONCE.
367         (get_cfi_seg): Likewise.  Reintroduce old code for when not
368         SUPPORT_FRAME_LINKONCE.
369         (cfi_finish): Move get_cfi_seg calls out of loop when not
370         SUPPORT_FRAME_LINKONCE.  Avoid unused var warning.
371
372 2011-05-03  Paul Brook  <paul@codesourcery.com>
373
374         * config/tc-tic6x.c (s_ehtype): New function.
375         (md_pseudo_table): Add "ehtype".
376         (tic6x_fix_adjustable, md_apply_fix): BFD_RELOC_C6000_EHTYPE.
377         * doc/c-tic6x.texi: Document .ehtype directive.
378
379 2011-04-26  Kai Tietz  <ktietz@redhat.com>
380
381         * dw2gencfi.c (dwcfi_seg_list): New struct.
382         (dwcfi_hash): New static hash variable.
383         (get_debugseg_name): New.
384         (alloc_debugseg_item): New.
385         (make_debug_seg): New.
386         (dwcfi_hash_insert): New.
387         (dwcfi_hash_find): New.
388         (dwcfi_hash_find_or_make): New.
389         (cfi_insn_data): New member cur_seg.
390         (cie_entry): Likewise.
391         (fde_entry): New cseg and handled members.
392         (alloc_fde_entry): Initialize cseg member.
393         (alloc_cfi_insn_data): Initialize cur_seg member.
394         (dot_cfi_sections): Compare for beginning of
395         section names via strncmp.
396         (get_cfi_seg): New.
397         (cfi_finish): Treat link-once sections.
398         (is_now_linkonce_segment): New local helper.
399         (output_cie): Ignore cie entries not member of current
400         segment.
401         (output_fde): Likewise.
402         (select_cie_for_fde): Likewise.
403         (cfi_change_reg_numbers): Add new argument for current segment
404         and ignore insn elements, if not part of current segment.
405         * ehopt.c (get_cie_info): Use strncmp for
406         section name matching.
407         (heck_eh_frame): Likewise.
408
409 2011-04-20  Catherine Moore  <clm@codesourcery.com>
410             David Ung <davidu@mips.com>
411
412         * config/mips.c (mips_cl_insn): Add new field complete_p.
413         (create_insn): Initialize complete_p to zero.
414         (BASE_REG_EQ): New.
415         (fix_24k_align_to): New.
416         (fix_24k_store_info): Declare.
417         (fix_24k_sort): New.
418         (fix_24k_record_store_info): New.
419         (nops_for_24k): New.
420         (nops_for_insn): Call nops_for_24k.
421         (append_insn): Move O_constant expression handling.
422
423 2011-04-20  Alan Modra  <amodra@gmail.com>
424
425         * hash.c (set_gas_hash_table_size): Use bfd_hash_set_default_size.
426         (hash_new_sized): New function, split out from..
427         (hash_new): ..here.
428
429 2011-04-19  Nick Clifton  <nickc@redhat.com>
430
431         * config/tc-arm.c (v7m_psrs): Revert previous delta.
432
433 2011-04-18  Julian Brown  <julian@codesourcery.com>
434             Nick Clifton  <nickc@redhat.com>
435
436         * config/tc-arm.c (parse_psr): Use selected_cpu not cpu_variant to
437         detect M-profile targets.
438         (do_t_swi): Exclude v7 and higher variants from arm_ext_os test.
439         (v7m_psrs): Fix typo: basepri_max should be basepri_mask.
440
441 2011-04-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
442
443         * config/tc-s390.c (s390_machine): New prototype.
444         (md_pseudo_table): New pseudo-op .machine.
445         (s390_opcode_hash): Initialize to NULL.
446         (s390_parse_cpu): New function.
447         (md_parse_option): Use s390_parse_cpu.
448         (s390_setup_opcodes): New function.
449         (md_begin): Use s390_setup_opcodes.
450         (s390_machine): New hook handling the new .machine pseudo.
451
452         * doc/c-s390.texi: Document the new pseudo op .machine.
453
454 2011-04-12  H.J. Lu  <hongjiu.lu@intel.com>
455
456         * config/tc-i386.c (i386_mach): Start error message with lower
457         case.
458         (md_begin): Likewise.
459         (md_parse_option): Likewise.
460         (i386_target_format): Likewise.
461         (check_byte_reg): Likewise.
462         (check_long_reg): Likewise.
463         (check_qword_reg): Likewise.
464         (check_word_reg): Likewise.
465
466 2011-04-12  Nick Clifton  <nickc@redhat.com>
467
468         PR gas/12532
469         * config/tc-arm.c (relax_branch): Do not relax branches to
470         preemptable global symbols.
471
472 2011-04-11  Julian Brown  <julian@codesourcery.com>
473
474         * config/tc-arm.c (parse_psr): Add LHS argument. Improve support
475         for *APSR bitmasks.
476         (operand_parse_code): Replace OP_PSR with OP_wPSR and OP_rPSR.
477         Remove OP_RVC_PSR.
478         (parse_operands): Likewise.
479         (do_mrs): Tweak error message for constraint.
480         (do_t_mrs): Update constraints for changes to APSR support.
481         (do_t_msr): Likewise. Don't set PSR_f flag here.
482         (psrs): Remove "g", "nzcvq", "nzcvqg".
483         (insns): Tweak entries for msr and mrs instructions.
484
485 2011-04-11  Kai Tietz  <ktietz@redhat.com>
486
487         * config/tc-i386.c (x86_cons): Initialize adjust with zero.
488
489 2011-04-11  Nick Clifton  <nickc@redhat.com>
490
491         * config/tc-i386.c (x86_cons): Define even for non-ELF targets.
492         * config/tc-i386.h (x86_cons): Always prototype.
493
494         * config/tc-cr16.c (getprocregp_image): Fix type of 'r' parameter
495         in order to avoid a compile time warning.
496         (getprocreg_image): Likewise.
497
498 2011-04-11  Alan Modra  <amodra@gmail.com>
499
500         * config/tc-cr16.c (getprocreg_image): Correct range check.
501         (getprocregp_image): Likewise.
502
503 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
504
505         * configure.tgt (strongarm*be, strongarm*b, strongarm*,
506         xscale*be|xscale*b, xscale*): Remove architectures.
507         (thumb-*-coff, thumb-*-rtems*, thumb-*-elf, thumb-epoc-pe,
508         thumb-*-pe, xscale-*-coff, xscale-*-elf): Remove targets.
509
510 2011-04-01  Tristan Gingold  <gingold@adacore.com>
511
512         * config/tc-ia64.c (md_apply_fix): Add a cast to avoid a warning.
513
514 2011-03-31  Bernd Schmidt  <bernds@codesourcery.com>
515
516         * config/tc-tic6x.c (sbss_section, scom_section, scom_symbol): New
517         static variables.
518         (md_begin): Initialize them.
519         (s_tic6x_scomm): New static function.
520         (md_pseudo_table): Add "scomm".
521         (tc_gen_reloc): Really undo all adjustments made by
522         bfd_install_relocation.
523         * doc/c-tic6x.texi: Document the .scomm directive.
524
525 2011-03-31  Tristan Gingold  <gingold@adacore.com>
526
527         * dwarf2dbg.c (DWARF2_VERSION): Define.
528         (out_debug_line): Use it.
529         (out_debug_aranges): Ditto.
530         (out_debug_info): Ditto.
531         * config/tc-ia64.h (DWARF2_VERSION): Override it.
532
533 2011-03-30  Michael Snyder  <msnyder@vmware.com>
534
535         * obj-elf.c (obj_elf_section): Free malloced name.
536         * macro.c (get_any_string): Free malloced br_buf.
537         (do_formals): Free 'formal'.
538
539 2011-03-30  Tristan Gingold  <gingold@adacore.com>
540
541         * config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
542         to offset only if within is set.
543         (ppc_stabx): Reformat.  For stsym stabs, add a check and set
544         within only for symbols.
545
546 2011-03-29  Richard Henderson  <rth@redhat.com>
547
548         PR 12610
549         * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous
550         label; zap alpha_insn_label.
551
552 2011-03-29  H.J. Lu  <hongjiu.lu@intel.com>
553
554         * config/tc-i386.c (handle_quad): Properly handle multiple
555         operands.
556
557 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
558
559         * config/bfin-parse.y (BYTEUNPACK): Return yyerror when dest
560         reg $2 is the same as dest reg $4.
561
562 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
563
564         * config/bfin-parse.y (BYTEOP16M): Return yyerror when dest
565         reg $2 is the same as dest reg $4.
566
567 2011-03-29  Mike Frysinger  <vapier@gentoo.org>
568
569         * config/bfin-parse.y (BYTEOP16P): Return yyerror when dest
570         reg $2 is the same as dest reg $4.
571
572 2011-03-28  Mike Frysinger  <vapier@gentoo.org>
573
574         * config/bfin-parse.y (16bit acc add): Return yyerror when dest
575         reg $1 is the same as dest reg $7.
576
577 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
578
579         * config/tc-i386.c (handle_quad): New.
580         (md_pseudo_table): Add "quad".
581
582 2011-03-26  John Marino  <binutils@marino.st>
583
584         * configure.tgt: Fix support for *-*-dragonfly*.
585         * config/tc-i386.c: define SVR4_COMMENT_CHARS for dragonfly.
586         * config/te-dragonfly.h: New file.
587
588 2011-03-24  Eric B. Weddington  <eric.weddington@atmel.com>
589
590         * config/tc-avr.c (mcu_types): Add new devices: atmega325pa,
591         atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb,
592         at90pwm161.
593         * doc/c-avr.texi: Document new device names.
594
595 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
596
597         * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
598         reg $1 is the same as dest reg $7.
599         (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
600         dest reg $7.
601
602 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
603
604         * config/bfin-parse.y (check_macfuncs): Clarify error message when
605         P is mismatched.  Check destination regno are off by one when P is
606         set, or are equal when P is not set.
607
608 2011-03-23  Mike Frysinger  <vapier@gentoo.org>
609
610         * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
611         the same as dest reg $4.
612         (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
613
614 2011-03-23  Eric B. Weddington  <eric.weddington@atmel.com>
615
616         * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
617         atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
618         * doc/c-avr.texi: Document new device names.
619
620 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
621
622         * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
623         (AVR_INSN): Change definition to match.
624         (avr_opcodes): Likewise, change to match.
625         (mcu_types): Add XMEGA architecture names and new XMEGA device names.
626         (md_show_usage): Add XMEGA architecture names.
627         (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
628         Add support for SPM Z+ instruction.
629         * doc/c-avr.texi: Add documentation for XMEGA architectures and
630         devices.
631
632 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
633
634         * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
635
636 2011-03-18  Alan Modra  <amodra@gmail.com>
637
638         * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
639         on .size expression errors rather than symbols in the size expression.
640
641 2011-03-18  Alan Modra  <amodra@gmail.com>
642
643         * input-scrub.c (line_numberT): Delete.
644         (input_scrub_close): Reset line counters.
645         * messages.c (as_show_where): Don't print invalid line number.
646         (as_warn_internal, as_bad_internal): Likewise.
647
648 2011-03-18  Alan Modra  <amodra@gmail.com>
649
650         * read.c (read_a_source_file): Remove md_after_pass_hook.
651         Move "quit" label before set of dot_symbol.
652         * config/tc-d10v.h (md_after_pass_hook): Don't define.
653         * config/tc-d30v.h (md_after_pass_hook): Likewise.
654         * config/tc-m32r.h (md_after_pass_hook): Likewise.
655         (md_cleanup): Define to call m32r_fill_insn.
656
657 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
658
659         * config/tc-s390.c (md_parse_option): Add -march=all option which
660         switches to the highest available CPU.
661
662 2011-03-17  Alan Modra  <amodra@gmail.com>
663
664         PR 12569
665         * expr.c (operand): Correct passing of "mode" to expr.
666         * read.c (do_org): Allow expr_section.
667         (get_known_segmented_expression): Don't assert anything about the
668         segment.
669
670 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
671
672         * as.c (show_usage): Add --size-check=.
673         (parse_args): Add and handle OPTION_SIZE_CHECK.
674
675         * as.h (flag_size_check): New.
676
677         * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
678         bad .size directive only for --size-check=error.
679
680         * doc/as.texinfo: Document --size-check=.
681
682 2011-03-14  Mike Frysinger  <vapier@gentoo.org>
683
684         * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
685         bf542/bf544/bf547/bf548/bf549.
686
687 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
688
689         * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
690         determine whether a relocation is needed.
691         (md_apply_fix, arm_apply_sym_value): Likewise.
692
693 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
694
695         * config/tc-arm.c (arm_adjust_symtab): Set the branch type
696         for Thumb symbols.
697
698 2011-03-11  Nick Clifton  <nickc@redhat.com>
699
700         * remap.c (remap_debug_filename): Always allocate a buffer for the
701         returned pointer.
702         * stabs.c (stabs_generate_asm_file): Free the pointer returned by
703         remap_debug_filename.
704
705 2011-03-10  Michael Snyder  <msnyder@vmware.com>
706
707         Revert the following change:
708         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
709         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
710
711 2011-03-10  Alan Modra  <amodra@gmail.com>
712
713         * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
714         TARGET_SYMBOL_FIELDS): Don't define.
715         * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
716
717 2011-03-09  Michael Snyder  <msnyder@vmware.com>
718
719         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
720         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
721         (emit_fixed_inc_line_addr): Assign instead of conditional in
722         assert.
723
724 2011-03-05  H.J. Lu  <hongjiu.lu@intel.com>
725
726         * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
727         non-constant .size expression.
728
729 2011-03-02  Nick Clifton  <nickc@redhat.com>
730
731         * ecoff.c: Incldue filenames.h
732
733 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
734
735         * depend.c (register_dependency): Use filename_(n)cmp.
736         * dwarf2dbg.c (get_filenum): Likewise.
737         * ecoff.c (add_file): Likewise.
738         (ecoff_generate_asm_lineno): Likewise.
739         * input-scrub.c (new_logical_line_flags): Likewise.
740         * listing.c (file_info): Likewise.
741         (listing_newline): Likewise.
742         * remap.c (remap_debug_filename): Likewise.
743         * stabs.c (generate_asm_file): Likewise.
744         (stabs_generate_asm_lineno): Likewise.
745
746 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
747
748         * config/tc-mips.c (append_insn): Disable branch relaxation for
749         DSP instructions.
750
751 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
752
753         * config/tc-mips.c (macro): Handle M_PREF_AB.
754
755 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
756
757         * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
758         register to use.
759         (RELAX_BRANCH_UNCOND): Adjust accordingly.
760         (RELAX_BRANCH_LIKELY): Likewise.
761         (RELAX_BRANCH_LINK): Likewise.
762         (RELAX_BRANCH_TOOFAR): Likewise.
763         (RELAX_BRANCH_AT): New macro.
764         (append_insn): Encode the temporary register to use in standard
765         MIPS branch relaxation.
766         (relaxed_branch_length): Update according to changes to
767         RELAX_BRANCH_ENCODE.
768         (md_convert_frag): Use the encoded register as the temporary.
769
770 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
771
772         * config/tc-mips.c (mips_fix_adjustable): On REL targets also
773         reject PC-relative relocations.
774
775 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
776
777         * config/tc-mips.c (md_convert_frag): Correct message
778         capitalization.
779
780 2011-02-28  Alan Modra  <amodra@gmail.com>
781
782         * symbols.c (report_op_error): Remove unnecessary forward declaration.
783         Add "op" parameter.  Report operator and operand segments in error
784         message, not operand symbols.
785         (resolve_symbol_value): Always set segment for equated symbols, not
786         just when finalizing.  Adjust report_op_error calls.
787
788 2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
789
790         * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
791         if 64bit relocations aren't allowed.
792
793 2011-02-25  Alan Modra  <amodra@gmail.com>
794
795         PR gas/12519
796         * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
797
798 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
799
800         * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
801         initialization of offset_reloc.
802
803 2011-02-15  Richard Henderson  <rth@redhat.com>
804
805         * dw2gencfi.c (dot_cfi_dummy): New.
806         (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
807         * read.c (pobegin): Unconditionally call cfi_pop_insert.
808
809 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
810
811         * configure: Regenerate.
812
813 2011-02-13  Mike Frysinger  <vapier@gentoo.org>
814
815         * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
816         * config/bfin-parse.y (BYTEOP2M): Delete token.
817         (asm_1): Remove BYTEOP2M insn matching.
818
819 2011-02-12  Mike Frysinger  <vapier@gentoo.org>
820
821         * config/bfin-defs.h: Include opcode/bfin.h.
822         (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
823
824 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
825
826         * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
827         (Modify Registers): Fix subtracted typo.
828         (.byte2): Extend and swap descriptions with .byte4.
829         (.byte4): Extend and swap descriptions with .byte2.
830         (.db, .dw, .dd): Document behavior.
831
832 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
833
834         * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
835
836 2011-02-11  Alan Modra  <amodra@gmail.com>
837
838         * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
839
840 2011-02-10  Alan Modra  <amodra@gmail.com>
841
842         * doc/as.texinfo (Overview): Add missing markup around Blackfin
843         and PowerPC options.
844
845 2011-02-10  Alan Modra  <amodra@gmail.com>
846
847         * config/tc-ppc.c (md_show_usage): Remove -l and -b.  Add -K PIC.
848         * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
849         (Overview <Target PowerPC options>): Add a number of missing options.
850         * doc/c-ppc.texi: Likewise.  Add markup for use in manpage generation.
851
852 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
853
854         PR gas/6957
855         * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
856         for i686.
857
858 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
859
860         * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
861         for ISA extensions.
862         (md_parse_option): Likewise.
863
864 2011-02-04  Bernd Schmidt  <bernds@codesourcery.com>
865
866         * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
867         * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
868         (TIC6X Options): Don't mention "-matomic".
869         * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
870         (md_longopts): Remove corresponding entries.
871         (md_parse_option): Don't handle them.
872         (md_show_usage): Don't document them.
873         (tic6x_atomic): Delete variable.
874         (tic6x_update_features): Always copy tic6x_arch_enable to
875         tic6x_features.
876         (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
877         (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
878         (md_pseudo_table): Remove ".atomic" and ".noatomic".
879
880 2011-01-31  Nick Clifton  <nickc@redhat.com>
881
882         * write.c (write_contents): Include output file name and bfd error
883         value when reporting the inability to write to the output file.
884         * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
885         frag that has a non-zero fill value.
886
887 2011-01-27  DJ Delorie  <dj@redhat.com>
888
889         * config/tc-rx.c (md_convert_frag): If we can't compute the target
890         address, zero out the values stored in the object file to make
891         objdump's output consistent.
892
893 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
894
895         * config/tc-i386.c (md_begin): Set for x64 windows COFF target
896         x86_dwarf2_return_column to 32.
897
898 2011-01-20  Nick Clifton  <nickc@redhat.com>
899
900         PR gas/12384
901         * config/tc-h8300.c (constant_fits_width_p): Use correct type for
902         comparison.
903
904 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
905
906         * write.c (compress_debug): Return if section size is smaller
907         than 32 bytes.
908
909 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
910
911         PR gas/12409
912         * write.c (compress_debug): Return if section size is 0.
913
914 2011-01-18  Mingfeng Wu  <mingfeng@faraday-tech.com>
915
916         * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
917         cores: fa606te, fa616te, fmp626.  Modify the VFP of fa626te.
918         * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
919         fmp626} options.
920
921 2011-01-18  Nick Clifton  <nickc@redhat.com>
922
923         PR gas/12390
924         * doc/all.texi: Add NS32K
925         * doc/as.texinfo: Remove target specific details of which
926         characters act as comment initiators and statement separators into
927         individual target specific files.
928         * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
929         the hash character at the start of a line.
930         * doc/c-arm.texi (ARM-Chars): Likewise.
931         * doc/c-avr.texi (AVR-Chars): Likewise.
932         * doc/c-d10v.texi (D10V-Chars): Likewise.
933         * doc/c-d30v.texi (D30V-Chars): Likewise.
934         * doc/c-mmix.texi (MMIX-Chars): Likewise.
935         * doc/c-s390.texi (s390 characters): Likewise.
936         * doc/c-sh.texi (SH-Chars): Likewise.
937         * doc/c-sh64.texi (SH64-Chars): Likewise.
938         * doc/c-sparc.texi (SPARC-Chars): Likewise.
939         * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
940         * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
941         * doc/c-z80.texi (Z80-Chars): Likewise.
942         * doc/c-z8k.texi (Z8000-Chars): Likewise.
943         * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
944         * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
945         * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
946         line separator characters.
947         * doc/c-cr16.texi (CR16 Syntax): Likewise.
948         * doc/c-i386.texi (i386-Chars): Likewise.
949         * doc/c-i860.texi (i860-Chars): Likewise.
950         * doc/c-i960.texi (i960-Chars): Likewise.
951         * doc/c-ip2k.texi (IP2K-Chars): Likewise.
952         * doc/c-lm32.texi (LM32-Chars): likewise.
953         * doc/c-m32c.texi (M32C-Chars): Likewise.
954         * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
955         * doc/c-m68k.texi (M68K-Chars): Likewise.
956         * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
957         * doc/c-msp430.texi (MSP430-Chars): Likewise.
958         * doc/c-mt.texi (MT-Chars): Likewise.
959         * doc/c-ns32k.texi (NS32K-Chars): Likewise.
960         * doc/c-pj.texi (PJ-Chars): Likewise.
961         * doc/c-ppc.texi (PowerPC-Chars): Likewise.
962         * doc/c-rx.texi (RX-Chars): Likewise.
963         * doc/c-score.texi (SCORE-Chars): Likewise.
964         * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
965         * doc/c-v850.texi (V850-Chars): Likewise.
966         * doc/c-vax.texi (VAX-Chars): Likewise.
967         * doc/c-xc16x.texi (xc16x-Chars): Likewise.
968
969 2011-01-17  Quentin Neill  <quentin.neill@amd.com>
970
971         * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
972
973         * doc/c-i386.texi (i386-TBM): New section.
974
975 2011-01-16  H.J. Lu  <hongjiu.lu@intel.com>
976
977         * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
978         (disallow_64bit_reloc): This.
979         (md_assemble): Don't check movabs for x32 mode here.
980         (i386_target_format): Updated.
981         (tc_gen_reloc): Check if 64bit relocations are allowed.
982
983 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
984
985         * config/tc-i386.c (disallow_64bit_disp): New.
986         (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
987         X86_64_ABI/X86_64_X32_ABI.
988         (md_assemble): Don't allow movabs with relocation in x32 mode.
989         (i386_target_format): Updated.
990
991 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
992
993         * config/tc-i386.c (OPTION_N32): Renamed to ...
994         (OPTION_X32): This.
995         (md_longopts): Replace n32 with x32.
996         (md_parse_option): Updated.
997         (md_show_usage): Likewise.
998
999         * doc/c-i386.texi: Replace --n32 with --x32.
1000
1001 2011-01-11  Mingjie Xing  <mingjie.xing@gmail.com>
1002
1003         * config/tc-mips.c (mips_ip): Update error messages.  Take an
1004         unadjusted offset for "+c" argument.
1005
1006 2011-01-10  Nick Clifton  <nickc@redhat.com>
1007
1008         * config/tc-i386.c (x86_elf_abi): Only define for targets that use
1009         it.
1010
1011 2011-01-10  Nick Clifton  <nickc@redhat.com>
1012
1013         * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
1014         part of the file.
1015
1016 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
1017             Glauber de Oliveira Costa  <glommer@gmail.com>
1018
1019         * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
1020         .tlsdescseq directive.
1021         * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
1022         following a symbol.
1023         (s_arm_tls_descseq): New directive.
1024         (md_pseudo_table): Add it.
1025         (encode_branch): Allow TLS_CALL relocs too.
1026         (do_t_blx, do_t_branch23): Use encode_branch.
1027         (reloc_names): Add tlsdesc and tlscall.
1028         (md_apply_fix): Process tls desc relocations.
1029         (tc_gen_reloc): Likewise.
1030         (arm_fix_adjustable): Likewise.
1031
1032 2011-01-07  Quentin Neill  <quentin.neill@amd.com>
1033
1034         * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
1035
1036         * doc/c-i386.texi (i386-BMI): New section.
1037
1038 2011-01-06  Paul Koning  <ni1d@arrl.net>
1039
1040         * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
1041         references to absolute addresses.
1042
1043 2011-01-05  DJ Delorie  <dj@redhat.com>
1044
1045         * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
1046         instead of an RH_NEG32 one.
1047
1048 2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
1049
1050         * doc/c-i386.texi: Clarify --n32.
1051
1052 2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1053
1054         * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
1055         integer registers in VEX.vvvv.  Check register-only source
1056         operand when two source operands are swapped.  Properly update
1057         destination when two source operands are swapped.
1058
1059 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
1060
1061         * gas.c (parse_args): Update copyright to 2011.
1062
1063 For older changes see ChangeLog-2010
1064 \f
1065 Local Variables:
1066 mode: change-log
1067 left-margin: 8
1068 fill-column: 74
1069 version-control: never
1070 End: