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