merge from gcc
[binutils.git] / gas / ChangeLog
blobcbcf2cddc13b985081e0ae4a064af6ef4d7aeaa0
1 2009-07-24  Roland McGrath  <roland@redhat.com>
2             Mark Wielaard  <mjw@redhat.com>
4         * config/obj-elf.c (obj_elf_ident): Set SEC_MERGE | SEC_STRINGS
5         flags on .comment section.
7 2009-07-24  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
8             Alan Modra  <amodra@bigpond.net.au>
10         * config/tc-spu.c (md_apply_fix): Handle SPU_ADD_PIC.
11         * config/tc-spu.h (tc_fix_adjustable): Don't adjust for SPU_ADD_PIC.
12         (TC_FORCE_RELOCATION): Emit relocs for SPU_ADD_PIC.
14 2009-07-24  Jan Beulich  <jbeulich@novell.com>
16         * tc-i386.c (cpu_arch): Add .8087, .287, .387, .no87, .nommx,
17         .nosse, and .noavx.
18         (cpu_flags_and_not): New.
19         (set_cpu_arch): Check whether sub-architecture specified is a
20         feature disable.
21         (md_parse_option): Likewise.
22         (parse_real_register): Don't return floating point register
23         when x87 functionality is disabled.
24         (md_show_usage): Add new sub-options.
25         * doc/c-i386.texi: Update with new command line sub-options.
27 2009-07-24  Nick Clifton  <nickc@redhat.com>
29         PR 10437
30         * config/tc-alpha.c: Fix up uses of gas printf like functions so
31         that the format string is a constant string.  Add translation
32         support to message strings.
33         * config/tc-arc.c: Likewise.
34         * config/tc-arm.c: Likewise.
35         * config/tc-cris.c: Likewise.
36         * config/tc-fr30.c: Likewise.
37         * config/tc-frv.c: Likewise.
38         * config/tc-h8300.c: Likewise.
39         * config/tc-hppa.c: Likewise.
40         * config/tc-i370.c: Likewise.
41         * config/tc-i960.c: Likewise.
42         * config/tc-ia64.c: Likewise.
43         * config/tc-m32r.c: Likewise.
44         * config/tc-mep.c: Likewise.
45         * config/tc-mips.c: Likewise.
46         * config/tc-moxie.c: Likewise.
47         * config/tc-msp430.c: Likewise.
48         * config/tc-openrisc.c: Likewise.
49         * config/tc-pdp11.c: Likewise.
50         * config/tc-pj.c: Likewise.
51         * config/tc-s390.c: Likewise.
52         * config/tc-sh.c: Likewise.
53         * config/tc-sh64.c: Likewise.
54         * config/tc-sparc.c: Likewise.
55         * config/tc-spu.c: Likewise.
56         * config/tc-tic30.c: Likewise.
57         * config/tc-tic4x.c: Likewise.
58         * config/tc-tic54x.c: Likewise.
59         * config/tc-v850.c: Likewise.
60         * config/tc-xc16x.c: Likewise.
61         * config/tc-xstormy16.c: Likewise.
62         * config/tc-z80.c: Likewise.
63         * config/tc-z8k.c: Likewise.
64         * config/atof-ieee.c: Add translation support to as_warn
65         messages.
66         * config/obj-coff.c: Likewise.
68 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
70         * config/obj-elf.c (obj_elf_type): Add code to support a type of
71         gnu_unique_object.
72         * doc/as.texinfo: Document new feature of .type directive.
73         * NEWS: Mention support for gnu_unique_object symbol type.
75 2009-07-23  Nick Clifton  <nickc@redhat.com>
77         PR binutils/10379
78         * doc/c-mips.texi (MIPS insn): Document the special behaviour of
79         the .global directive for MIPS ports.
81 2009-07-21  H.J. Lu  <hongjiu.lu@intel.com>
83         PR gas/10420
84         * config/tc-i386.c (i386_align_code): Tune for 32bit nops in
85         64bit.
86         (i386_target_format): Set cpu_arch_isa_flags.bitfield.cpulm
87         for 64bit.
89 2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>
91         * config/tc-i386.c (md_assemble): Update operand types.
92         (update_imm): Updated.
93         (finalize_imm): Update the first 2 immediate operands only
94         for instructions with 2 operands or more.
96 2009-07-17  H.J. Lu  <hongjiu.lu@intel.com>
98         * config/tc-i386.c (md_assemble): Check implicit registers
99         only for instructions with 3 operands or less.
101 2009-07-17  Nick Clifton  <nickc@redhat.com>
103         * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoid
104         compile time warning.
106 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
108         * config/tc-i386.c (md_assemble): Only check i.operands for AX.
109         (md_estimate_size_before_relax): Don't relax IFUNC symbols.
111 2009-07-16  Nathan Sidwell  <nathan@codesourcery.com>
113         * config/tc-arm.c (md_apply_fix <BFD_RELOC_ARM_TARGET2>): Write
114         the offset for REL targets here.
116 2009-07-15  Kai Tietz  <kai.tietz@onevision.com>
118         * listing.c (print_source): Initialize cache by NULL.
120 2009-07-15  Daniel Gutson  <dgutson@codesourcery.com>
122         * doc/c-arm.texi (mauto-it): Removed old option.
123         (mimplicit-it): Added right option.
125 2009-07-14  Daniel Gutson  <dgutson@codesourcery.com>
127         * config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
128         (MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of
129         MAX_MEM_ALIGNMENT_BYTES.
130         * config/tc-arm.c (arm_frag_align_code): Replace hard coded
131         constant with MAX_MEM_FOR_RS_ALIGN_CODE.
133 2009-07-14  Nick Clifton  <nickc@redhat.com>
135         PR 10387
136         * config/tc-arm.h (THUMB_IS_FUNC): Handle a NULL pointer.
137         (ARM_IS_FUNC): Likewise.
139 2009-07-14  Daniel Gutson  <dgutson@codesourcery.com>
141         * config/tc-arm.c (md_assemble): Added validation.
143 2009-07-10  H.J. Lu  <hongjiu.lu@intel.com>
145         * Makefile.am: Run "make dep-am".
146         * Makefile.in: Regenerated.
148 2009-07-10  Tom Tromey  <tromey@redhat.com>
150         * Makefile.am (DEPTC_alpha_ecoff): Refer to dwarf2.h, not
151         elf/dwarf2.h.
152         (DEPTC_alpha_elf): Likewise.
153         (DEPTC_alpha_evax): Likewise.
154         (DEPTC_arm_elf): Likewise.
155         (DEPTC_hppa_elf): Likewise.
156         (DEPTC_i386_aout): Likewise.
157         (DEPTC_i386_coff): Likewise.
158         (DEPTC_i386_elf): Likewise.
159         (DEPTC_m68k_aout): Likewise.
160         (DEPTC_m68k_coff): Likewise.
161         (DEPTC_m68k_elf): Likewise.
162         (DEPTC_mips_coff): Likewise.
163         (DEPTC_mips_ecoff): Likewise.
164         (DEPTC_mips_elf): Likewise.
165         (DEPTC_ppc_coff): Likewise.
166         (DEPTC_ppc_elf): Likewise.
167         (DEPTC_s390_elf): Likewise.
168         (DEPTC_sh_coff): Likewise.
169         (DEPTC_sh_elf): Likewise.
170         (DEPTC_sh64_elf): Likewise.
171         (DEPTC_sparc_aout): Likewise.
172         (DEPTC_sparc_coff): Likewise.
173         (DEPTC_sparc_elf): Likewise.
174         (as.o): Likewise.
175         (dwarf2dbg.o): Likewise.
176         (dw2gencfi.o): Likewise.
177         (ehopt.o): Likewise.
178         (read.o): Likewise.
179         * Makefile.in: Rebuild.
180         * dw2gencfi.h: Include dwarf2.h, not elf/dwarf2.h.
181         * dwarf2dbg.c: Likewise.
182         * ehopt.c: Likewise.
184 2009-07-09  Daniel Gutson  <dgutson@codesourcery.com>
186         * config/tc-arm.c (it_fsm_post_encode): New forward declaration.
187         (set_it_insn_type_nonvoid): New macro.
188         (emit_thumb32_expr): New function.
189         (thumb_insn_size): New function.
190         (emit_insn): New function.
191         (s_arm_elf_inst): New function.
192         (md_pseudo_table): New pseudo-opcode entries added.
193         * doc/c-arm.texi: New directive added.
195 2009-07-07  DJ Delorie  <dj@redhat.com>
197         * config/tc-mep.c (md_begin): Don't reset the coprocessor options
198         when enabling other options without a specific configuration.
200 2009-07-07  Chung-Lin Tang  <cltang@pllab.cs.nthu.edu.tw>
202         * config/tc-arm.c (insns): Fix encoding for torvsc.
204 2009-07-06  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
206         * config/tc-i386.c (cpu_arch): Add .fma4 and CPU_FMA4_FLAGS.
207         (build_modrm_byte): Add support to handle FMA4 instructions.
208         (md_show_usage): Add fma4.
210 2009-07-04  Alan Modra  <amodra@bigpond.net.au>
212         * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
214 2009-07-02  Tristan Gingold  <gingold@adacore.com>
216         * Makefile.am (OBJ_FORMATS): Add macho.
217         (CPU_OBJ_VALID): Ditto.
218         (OBJ_FORMAT_CFILES): Add config/obj-macho.c
219         (OBJ_FORMAT_HFILES): Add config/obj-macho.h
220         (obj-macho.o): New rule.
221         * Makefile.in: Regenerated.
222         * configure.tgt (generic_target): Add i386-*-darwin*.
223         * config/tc-i386.h: Use i386_target_format for Mach-O.
224         * config/tc-i386.c (i386_target_format): Define it for Mach-O.
225         (i386_target_format): Add a case for bfd_target_mach_o_flavour.
226         * config/obj-macho.h: New file.
227         * config/obj-macho.c: New file.
229 2009-07-01  Nick Clifton  <nickc@redhat.com>
231         PR 10168
232         * config/tc-arm.c (do_t_pkhtb): Swap Rm and Rn when encoding as
233         PKHBT.
235 2009-07-01  Paul Brook <paul@codesourcery.com>
237         * config/tc-arm.c (MISSING_FNSTART): Define.
238         (s_arm_unwind_fnstart): Diagnose duplicate directive.
239         (s_arm_unwind_handlerdata, s_arm_unwind_fnend, s_arm_unwind_fnend,
240         s_arm_unwind_cantunwind, s_arm_unwind_personalityindex,
241         s_arm_unwind_personality, s_arm_unwind_save, s_arm_unwind_movsp,
242         s_arm_unwind_pad, s_arm_unwind_setfp, s_arm_unwind_raw): Error if
243         not inside function unwinding region.
245 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
247         * config/tc-i386.c: Reformat.
249 2009-06-23  DJ Delorie  <dj@redhat.com>
251         * config/tc-mep.c (mep_check_ivc2_scheduling): For IVC2, allocate
252         32 bits for relaxable branches so that we can relax them later.
253         (md_estimate_size_before_relax): Assume IVC2 branches will be relaxed.
254         (mep_relax_frag): New.
255         (md_convert_frag): Relax IVC2 branches in-place.
256         * config/tc-mep.h ((mep_relax_frag): New.
258 2009-06-22  Martin Thuresson  <martin@mtme.org>
260         * gas/app, gas/as.c, gas/as.h, gas/atof-generic.c, gas/cgen.c,
261         gas/config/atof-ieee.c, gas/config/obj-aout.c,
262         gas/config/obj-coff.c, gas/config/obj-ecoff.c,
263         gas/config/obj-elf.c, gas/config/obj-som.c, gas/config/tc-alpha.c,
264         gas/config/tc-arc.c, gas/config/tc-arm.c, gas/config/tc-cr16.c,
265         gas/config/tc-cris.c, gas/config/tc-crx.c, gas/config/tc-d30v.c,
266         gas/config/tc-dlx.c, gas/config/tc-hppa.c, gas/config/tc-i370.c,
267         gas/config/tc-i386-intel.c, gas/config/tc-i386.c,
268         gas/config/tc-i860.c, gas/config/tc-i960.c, gas/config/tc-ia64.c,
269         gas/config/tc-iq2000.c, gas/config/tc-m32c.c,
270         gas/config/tc-m32r.c, gas/config/tc-m68hc11.c,
271         gas/config/tc-m68k.c, gas/config/tc-maxq.c, gas/config/tc-mcore.c,
272         gas/config/tc-mep.c, gas/config/tc-mips.c, gas/config/tc-mmix.c,
273         gas/config/tc-mn10300.c, gas/config/tc-moxie.c,
274         gas/config/tc-ns32k.c, gas/config/tc-pj.c, gas/config/tc-ppc.c,
275         gas/config/tc-s390.c, gas/config/tc-score.c,
276         gas/config/tc-score7.c, gas/config/tc-sh.c, gas/config/tc-sparc.c,
277         gas/config/tc-spu.c, gas/config/tc-tic30.c, gas/config/tc-vax.c,
278         gas/config/tc-xtensa.c, gas/config/xtensa-relax.c,
279         gas/dw2gencfi.c, gas/dwarf2dbg.c, gas/ehopt.c, gas/expr.c,
280         gas/frags.c, gas/input-file.c, gas/read.c, gas/sb.c,
281         gas/subsegs.c, gas/symbols.c, gas/write.c: Change the name of the
282         gas macro `assert' to `gas_assert'.
284 2009-06-22  Daniel Gutson <dgutson@codesourcery.com>
286         * config/tc-arm.c (implicit_it_mode): New enum.
287         (implicit_it_mode): New global.
288         (it_instruction_type): New enum.
289         (arm_parse_it_mode): New function.
290         (arm_long_opts): New option added.
291         (arm_it): New field.
292         (it_state): New enum.
293         (now_it): New macro.
294         (check_it_blocks_finished): New function.
295         (insns[]): Use the IT Thumb opcodes for ARM too.
296         (arm_cleanup): Call check_it_blocks_finished.
297         (now_it_compatible): New function.
298         (conditional_insn): New function.
299         (set_it_insn_type): New macro.
300         (set_it_insn_type_last): New macro.
301         (do_it): Call automatic IT machinery functions.
302         (do_t_add_sub): Likewise
303         (do_t_arit3): Likewise.
304         (do_t_arit3c): Likewise.
305         (do_t_blx): Likewise.
306         (do_t_branch): Likewise.
307         (do_t_bkpt): Likewise.
308         (do_t_branch23): Likewise.
309         (do_t_bx): Likewise.
310         (do_t_bxj): Likewise.
311         (do_t_cps): Likewise.
312         (do_t_cpsi): Likewise.
313         (do_t_cbz): Likewise.
314         (do_t_it): Likewise.
315         (encode_thumb2_ldmstm): Likewise.
316         (do_t_ldst): Likewise.
317         (do_t_mov_cmp): Likewise.
318         (do_t_mvn_tst): Likewise.
319         (do_t_mul): Likewise.
320         (do_t_neg): Likewise.
321         (do_t_setend): Likewise.
322         (do_t_shift): Likewise.
323         (do_t_tb): Likewise.
324         (output_it_inst): New function.
325         (new_automatic_it_block): New function.
326         (close_automatic_it_block): New function.
327         (now_it_add_mask): New function.
328         (it_fsm_pre_encode): New function.
329         (handle_it_state): New function.
330         (it_fsm_post_encode): New function.
331         (force_automatic_it_block_close): New function.
332         (in_it_block): New function.
333         (md_assemble): Call automatic IT block machinery functions.
334         (arm_frob_label): Likewise.
335         (arm_opts): New element.
336         * config/tc-arm.h (it_state): New enum.
337         (current_it): New struct.
338         (arm_segment_info_type): New member added.
339         * doc/c-arm.texi: New option -mimplicit-it documented.
341 2009-06-20  Alan Modra  <amodra@bigpond.net.au>
343         PR 10302
344         * doc/as.texinfo (Section <ELF "M,S" flag>): Clarify tail merge.
346 2009-06-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
348         * config/tc-s390.c (md_gather_operands): Accept an instruction
349         without operands if all operands are tagged as optional.
351 2009-06-18  Nick Clifton  <nickc@redhat.com>
353         PR 10169
354         * gas/tc-arm.c (do_t_ssat): Move common code from here...
355         (do_t_usat): ... and here to...
356         (do_t_ssat_usat): New function: ... here.  Add code to check that
357         the shift value, if present, is in range.
359 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
361         Merge cegcc and mingw32ce target name changes
362         from CeGCC project:
364         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
366         * configure.tgt: Add arm*-*-cegcc* target.
368         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
370         * configure.tgt: Add arm-*-mingw32ce* target.
372 2009-06-16  Maciej W. Rozycki  <macro@linux-mips.org>
374         * config/tc-vax.c (md_estimate_size_before_relax): Accept
375         indirect symbol references in the PIC mode and emit a
376         PC-relative relocation instead of a GOT/PLT one.  Likewise
377         for symbols known to be hidden at this point.
379 2009-06-15  Nick Clifton  <nickc@redhat.com>
381         PR 10186
382         * config/tc-arm.c (T16_32_TAB): Fix binary value of SEV.W
383         instruction.
385 2009-06-13  H.J. Lu  <hongjiu.lu@intel.com>
387         PR ld/10269
388         * config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION
389         instead of generic_force_reloc.
391         * config/tc-i386.h (TC_FORCE_RELOCATION): New.
393 2009-06-11  Anthony Green  <green@moxielogic.com>
395         * config/tc-moxie.c (md_chars_to_number): Define.
396         (md_begin): Populate opcode hashtable with more form 3 opcodes.
397         (md_assemble): Assemble MOXIE_F3_PCREL encoded instructions.
398         (md_apply_fix): Handle BFD_RELOC_MOXIE_10_PCREL relocations.
399         (tc_gen_reloc): Ditto.
400         (md_pcrel_from): Ditto.
401         (md_chars_to_number): New function.
403 2009-06-10  Anthony Green  <green@moxielogic.com>
405         * config/tc-moxie.c (md_assemble): Handle MOXIE_F1_M encoded
406         opcodes.
408 2009-06-09  Jakub Jelinek  <jakub@redhat.com>
410         PR gas/10255
411         * dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
412         to DW_CFA_advance_loc4.
414 2009-06-08  Dave Korn  <dave.korn.cygwin@gmail.com>
416         PR gas/977
417         * config/tc-i386.c (md_estimate_size_before_relax):  Don't relax
418         branches to weak symbols.
419         (md_apply_fix):  Don't convert fixes against weak symbols to
420         section-relative offsets, but save addend for later reloc emission.
421         (tc_gen_reloc):  When emitting reloc against weak symbol, adjust
422         addend to pre-compensate for bfd_install_relocation.
424 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
426         * dep-in.sed: Don't use \n in replacement part of s command.
427         * Makefile.am (DEP1, DEPTC, DEPOBJ, DEP2): LC_ALL for uniq.
428         * Makefile.in: Regenerate.
430 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
432         PR gas/10198
433         * config/tc-i386-intel.c (i386_intel_operand): Check '$' as '.'.
435 2009-05-26  Catherine Moore  <clm@codesourcery.com>
437         * config/tc-mips.c (check_for_24k_errata): Remove.
438         (md_mips_end): Remove call to check_for_24k_errata.
439         (start_noreorder): Likewise.
440         (s_change_sec): Likewise.
441         (s_change_section): Likewise.
442         (insns_between): Add 24k errata checks.
443         (append_insn): Remove declaration and references to nhdx_24k.
444         Remove calls to check_for_24k_errata.
446 2009-05-26  Nick Clifton  <nickc@redhat.com>
448         * po/id.po: Updated Indonesian translation.
449         * po/gas.pot: Updated template file.
451 2009-05-26  Nick Clifton  <nickc@redhat.com>
453         PR 10143
454         * config/bfin-parse.y (error): Use "%s" as format string for error
455         message.
457 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
459         * dep-in.sed: Output one filename per line with all lines having
460         continuation backslash.  Prefix first line with "A", following
461         lines with "B".
462         * Makefile.am (DEP): Don't use dep.sed here.
463         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
464         sort and uniq.
465         (DEPTC, DEPOBJ, DEP2): Use dep.sed on dependencies, sort and uniq.
466         Emit multi dependencies on one line.
467         * Makefile.in: Regenerate.
469 2009-05-25  Tristan Gingold  <gingold@adacore.com>
471         * makefile.vms: New file to compile gas on VMS.
473         * configure.com: New file to do configuration on VMS with DCL.
475 2009-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
477         * config/tc-mips.c (nops_for_vr4130): Don't check noreorder_p.
478         (nops_for_insn): Likewise.
480 2009-05-22  H.J. Lu  <hongjiu.lu@intel.com>
482         * symbols.c (COPIED_SYMFLAGS): Add BSF_GNU_INDIRECT_FUNCTION.
484 2009-05-22  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
486         * config/tc-i386.c (process_drex): Delete. Remove SSE5 support.
487         (build_modrm_byte): Remove DREX handling support.
488         (DREX_*): Delete.
489         (drex_byte): Delete.
490         (md_assemble): Remove DREX handling support.
491         (process_operands): Remove DREX, SSE5 support.
492         (i386_insn): Remove DREX.
494 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
496         * Makefile.am: Run "make dep-am".
497         * Makefile.in: Regenerate.
499 2009-05-20  Kai Tietz  <kai.tietz@onevision.com>
500             H.J. Lu  <hongjiu.lu@intel.com>
502         * config/obj-coff.h: Include "coff/x86_64.h" for x86 pe-coff.
503         (TARGET_FORMAT): Removed for x86 pe-coff.
504         (COFF_TARGET_FORMAT): Likewise.
506         * config/tc-i386.c (md_longopts): Allow --64 for x86 pe-coff.
507         (md_parse_option): Likewise.
508         (md_show_usage): Show option --32/--64 for x86 pe-coff.
509         (i386_target_format): Use also for x86 pe-coff.
511         * config/tc-i386.h (TARGET_FORMAT): Defined as i386_target_format
512         for x86 pe-coff.
514 2009-05-19  DJ Delorie  <dj@redhat.com>
516         * config/tc-mep.c (mep_machine): Only check CPU flags, not COP flags.
517         (mep_process_saved_insns): Remove debugging printfs.
519 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
521         * NEWS:  Mention new feature.
522         * config/obj-coff.c (obj_coff_common_parse):  New function.
523         (obj_coff_comm):  Likewise.
524         (coff_pseudo_table):  Override default ".comm" definition on PE.
525         * doc/as.texinfo:  Document new feature.
527 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
529         * config/obj-coff.c (obj_coff_section): Add 'y' as
530         specifier for SEC_COFF_NOREAD section flag.
531         * doc/as.texinfo: Add documentation about .section flag 'y'.
533 2009-05-13  DJ Delorie  <dj@redhat.com>
535         * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
537 2009-05-13  Andrew Jenner  <andrew@codesourcery.com>
539         * config/tc-arm.c: Move as.h to start of file.
541 2009-05-05 Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
543         * config/tc-arm.h: Fix typo in comment.
544         (ARM_IS_FUNC): New macro.
545         (MD_APPLY_SYM_VALUE): Define.
547         * config/tc-arm.c (do_blx): Retain BFD_RELOC_ARM_PCREL_BLX for
548         all versions of EABI.
549         (relax_branch): Do not relax for branches to ARM functions.
550         (md_pcrel_from_section): Set up base correctly for
551         BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_THUMB_PCREL_CALL,
552         BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_ARM_PCREL_BLX
553         BFD_RELOC_ARM_PCREL_CALL.
554         (md_apply_fix): Flip bl to blx where possible.
555         Flip blx to bl where possible.
556         (arm_force_relocation): Force relocations for
557         BFD_RELOC_ARM_PCREL_JUMP, BFD_RELOC_ARM_PCREL_JUMP,
558         BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_THUMB_PCREL_BLX,
559         BFD_RELOC_THUMB_PCREL_BRANCH20, BFD_RELOC_THUMB_PCREL_BRANCH23,
560         BFD_RELOC_THUMB_PCREL_BRANCH25.
561         (arm_apply_sym_value): New function.
563 2009-05-04  Tristan Gingold  <gingold@adacore.com>
565         * config/tc-alpha.c: Also declare alpha_prologue_label for OBJ_EVAX.
567 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
569         * config/tc-armlinux-eabi.h (FPU_DEFAULT): Default to plain VFP.
570         * config/tc-armeabi.h (FPU_DEFAULT): Likewise.
571         * config/tc-arm.c (md_begin): If FPU_DEFAULT is set, don't infer
572         the default FPU from the processor.
574 2009-05-01  Julian Brown  <julian@codesourcery.com>
576         * config/tc-arm.c (do_t_blx): Always use BFD_RELOC_THUMB_PCREL_BLX.
577         (md_pcrel_from_section): Align address for BLX.
578         (tc_gen_reloc): Change BFD_RELOC_THUMB_PCREL_BLX relocations to
579         BFD_RELOC_THUMB_PCREL_BRANCH23 for EABI v4+.
581 2009-04-29  DJ Delorie  <dj@redhat.com>
583         * config/tc-mep.c (md_begin): Check coprocessor type.
584         (md_check_parallel64_scheduling): Use memset to initialize the buffer.
585         (md_check_parallel32_scheduling): Likewise.
586         (slot_ok): New.
587         (mep_check_ivc2_scheduling): New.
588         (mep_check_parallel_scheduling): Call it.
589         (mep_process_saved_insns): Add IVC2 slot support.
590         (md_assemble): Likewise.
592 2009-04-30  Nick Clifton  <nickc@redhat.com>
594         * config/obj-elf.c (obj_elf_type): Add support for a
595         gnu_indirect_function type.
596         * config/tc-i386.c (tc_i386_fix_adjustable): Do not adjust fixups
597         against indirect function symbols.
598         * doc/as.texinfo (.type): Document the support for the
599         gnu_indirect_function symbol type.
600         * NEWS: Mention the new feature.
602 2009-04-24  Cary Coutant  <ccoutant@google.com>
604         * NEWS: Add item about discriminator support.
605         * dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
606         * dwarf2dbg.c (current): Add discriminator field.
607         (dwarf2_where): Copy discriminator value.
608         (dwarf2_consume_line_info): Set discriminator to 0.
609         (dwarf2_directive_loc): Process discriminator sub-op.
610         (out_leb128): New function.
611         (process_entries): Output DW_LNE_set_discriminator.
612         * doc/as.texinfo: Add discriminator operand to .loc directive.
614 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
616         * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
617         as_bad calls to silence compiler warning.
619 2009-04-21  H.J. Lu  <hongjiu.lu@intel.com>
621         * config/tc-i386-intel.c (O_XXX): Reorder.
623 2009-04-20  Jan Beulich  <jbeulich@novell.com>
625         * Makefile.am: Add explicit dependency of tc-i386.o on
626         tc-i386-intel.c.
627         * Makefile.in: Likewise.
628         * config/tc-i386.c (i386_finalize_immediate): Declare, broken
629         out from i386_immediate.
630         (i386_immediate): Slightly re-arrange, call
631         i386_finalize_immediate.
632         (i386_finalize_displacement): Declare, broken out from
633         i386_displacement.
634         (i386_displacement): Slightly re-arrange, call
635         i386_finalize_displacement.
636         (i386_intel_simplify, i386_intel_parse_name): Declare.
637         (this_operand): Initialize to -1.
638         (set_intel_syntax): Set expression rank for O_full_ptr.
639         (md_assemble): Set this_operand back to -1 after parsing
640         operands.
641         (x86_cons): Negate intel_syntax to indicate state. Call
642         i386_intel_simplify.
643         (md_operand): Convert if to switch. Handle '[' for Intel
644         syntax.
645         (i386_intel_operand): Delete, including all helper functions
646         and data.
647         * config/tc-i386-intel.c: New file, all new code.
648         * config/tc-i386.h (i386_operator): Declare.
649         (md_operator): Define to i386_operator.
650         (i386_need_index_operator): Declare.
651         (md_need_index_operator): Define to i386_need_index_operator.
652         (O_full_ptr): Define.
654 2009-04-20  Jan Beulich  <jbeulich@novell.com>
656         * expr.c (operand): Call md_need_index_operator() and
657         md_operator() if defined. Add unary label.
658         (operator): Call md_operator() if defined.
659         (expr): Adjust assertions on range and rank of op_left and
660         op_right. Don't abort on unhandled operators when reducing
661         expressions with both operands being constant.
662         (expr_set_rank): New.
663         * expr.h (expr_set_rank): Declare.
665 2009-04-15  Anthony Green  <green@moxielogic.com>
667         * config/tc-moxie.h: New file.
668         * config/tc-moxie.c: New file.
669         * configure: Add support for moxie.
670         * configure.tgt: Add support for moxie.
672 2009-04-16  Jan Beulich  <jbeulich@novell.com>
674         * expr.c: Include limits.h if available, and #define CHAR_BITS
675         otherwise.
676         (expr): Check range of shift count when evaluating a constant
677         expression.
679 2009-04-15  Jan Beulich  <jbeulich@novell.com>
681         * config/tc-i386.c (process_operands): Print operands in
682         correct order depending on intel_syntax.
684 2009-04-09  Catherine Moore  <clm@codesourcery.com>
686         * config/tc-mips.c (mips_fix_24k): Declare.
687         (check_for_24k_errata): New.
688         (mips_cleanup): Call check_for_24k_errata.
689         (start_noreorder): Likewise.
690         (md_mips_end): Likewise.
691         (s_change_sec): Likewise.
692         (s_change_section): Likewise.
693         (append_insn): Call check_for_24k_errata.  Prevent
694         ERET/DERET instructions from being moved into delay
695         slots.
696         (OPTION_FIX_24K): New.
697         (OPTION_NO_FIX_24k) New.
698         (md_longopts): Add "mfix-24k" and "mno-fix-24k".
699         (md_parse_option): Handle fix-24k options.
700         (md_show_usage): Display fix-24k options.
701         * doc/c-mips.texi: Document.
703 2009-04-09  Adam Nemet  <anemet@caviumnetworks.com>
705         * config/tc-mips.c (mips_dwarf2_addr_size): Use HAVE_64BIT_OBJECTS
706         instead of HAVE_64BIT_SYMBOLS.
708 2009-04-07  DJ Delorie  <dj@redhat.com>
710         * config/tc-mep.c: Add UCI/DSP instruction support.  Add C5 support.
711         (md_show_usage): Change default endian to little.
712         * config/tc-mep.h (TARGET_BYTES_BIG_ENDIAN): Change default to little.
714 2009-04-06  DJ Delorie  <dj@redhat.com>
716         * tc-h8300.c (do_a_fix_imm): Pass the insn, force relocs for MOVA
717         immediates.
718         (build_bytes): Pass insn to do_a_fix_imm.
720 2009-04-02  Daniel Gutson <dgutson@codesourcery.com>
722         * config/tc-arm.c (arm_cpus): Add entry for ARM Cortex-M0.
723         * doc/c-arm.texi: Added codes for processors ARM Cortex-M0 and
724         Cortex-M1.
726 2009-04-01  Matt Thomas <matt@netbsd.org>
728         * config/tc-vax.c (synthetic_votstrs): add "jbbcci" and "jbbssi"
729         (md_assemble): emit symbol name when used as immediate in PIC mode.
730         (md_assemble): fix LP64 bug (use sizeof (valueT) instead 4).
732 2009-04-01  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
734         * config/tc-xtensa.c (parse_arguments): call demand_empty_rest_of_line
736 2009-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
738         * config/tc-arm.c (arm_validate_fix): Define only for OBJ_COFF.
739         (find_real_start): Likewise.
740         * config/tc-arm.h (TC_VALIDATE_FIX): Likewise
742 2009-04-01  Nathan Sidwell  <nathan@codesourcery.com>
744         * config/tc-arm.c (do_nop): Generate v6k nops whenever possible.
745         (arm_handle_align): Generate v6k ARM, thumb2 wide & narrow nops
746         whenever possible.
748 2009-03-31  Peter Bergner  <bergner@vnet.ibm.com>
750         * config/tc-ppc.c (ppc_handle_align): Handle power7's group ending nop.
752 2009-03-31  Dave Korn  <dave.korn.cygwin@gmail.com>
754         * doc/internals.texi:  Fix trivial syntax errors.
756 2009-03-26  Alan Modra  <amodra@bigpond.net.au>
758         PR 10005
759         * config/tc-i386.c (reloc): Don't abort on lack of required
760         reloc type.
762 2009-03-25  H.J. Lu  <hongjiu.lu@intel.com>
764         * config/tc-i386.c (parse_insn): Use default_arch on unsupported
765         arch.
767 2009-03-23  H.J. Lu  <hongjiu.lu@intel.com>
769         PR gas/9966
770         * listing.c (listing_newline): Properly handle `\\"' and ';'.
772         * read.c (is_end_of_line): Update comments for line separator.
773         (read_begin): Set line separator in is_end_of_line to 2.
775 2009-03-19  David S. Miller  <davem@davemloft.net>
777         * config/tc-sparc.c (md_parse_option): If the user gives
778         us '--64' make sure max_architecture is at least V9.
780 2009-03-18  Andrew Stubbs  <ams@codesourcery.com>
782         * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and
783         BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section.
784         Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol.
786 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
788         * as.h: Include alloca-conf.h instead of config.h and remove
789         existing #if's handling alloca.
790         * Makefile.am: Run "make dep-am".
791         * Makefile.in: Regenerate.
793 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
795         * config/tc-ppc.c (ppc_frob_symbol): Add csect information for
796         C_AIX_WEAKEXT too.
798 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
800         * config/tc-ppc.c (md_apply_fix): On COFF targets, always reread
801         "value" from fx_offset.  Manually resubtract md_pcrel_from_section
802         where necessary.
804 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
806         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
807         * configure.in: Likewise.
808         * configure: Regenerate.
810 2009-03-11  Hans-Peter Nilsson  <hp@axis.com>
812         * config/tc-cris.c (cris_create_short_jump): Remove prototype.
813         Rename, changing all callers, to...
814         (md_create_short_jump): Adjust head comment.  Assert
815         word-sized-branch distance for v32.  Bail out calling as_fatal for
816         compatibility mode here.
817         (md_create_long_jump): ...not here.
818         * config/tc-cris.h (md_create_short_jump): Do not define.
820 2009-03-10  Hans-Peter Nilsson  <hp@axis.com>
822         * write.c (write_object_file) [!WORKING_DOT_WORD]: When patching
823         the jump table for multiple overflowing entries with the same
824         target, handle base symbols being different.
825         (relax_segment) <case rs_broken_word, second loop>: Whenever a
826         single entry overflows, arrange to redirect all entries with the
827         same target.
829 2009-03-10  Alan Modra  <amodra@bigpond.net.au>
831         * config/tc-ppc.c (parse_cpu): Delete.
832         (md_parse_option, ppc_machine): Use ppc_parse_cpu.
834 2009-03-09  H.J. Lu  <hongjiu.lu@intel.com>
836         PR gas/9915
837         * config/tc-i386.h (LOCAL_LABELS_DOLLAR): New.  Defined as 0.
838         (LOCAL_LABELS_FB): Undefine befoe define.
840 2009-03-06  Nick Clifton  <nickc@redhat.com>
842         * po/es.po: Updated Spanish translation.
844 2009-03-05  Joseph Myers  <joseph@codesourcery.com>
846         * read.c (s_fill, s_space, s_float_space, float_cons, stringer,
847         s_incbin): Call md_cons_align (1).
849 2009-03-04  Nick Clifton  <nickc@redhat.com>
851         * config/tc-alpha.c (alpha_prologue_label): Only define for ELF
852         based targets.
853         (s_alpha_comm): Only define "temp" and "log_align" local variables
854         for EVAX targets.
856 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
858         * config/tc-ppc.c (ppc_elf_suffix): Error if ppc32 tls got relocs
859         have non-zero addend.
860         (md_assemble): Parse args of __tls_get_addr calls.
861         (md_apply_fix): Handle BFD_RELOC_PPC_TLSGD and BFD_RELOC_PPC_TLSLD.
863 2009-03-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
865         binutils/3807
866         * config/tc-hppa.h (tc_frob_symbol): Don't frob absolute symbols with
867         local scope for ELF targets.
869 2009-03-04  Alan Modra  <amodra@bigpond.net.au>
871         * config/tc-ppc.c (md_assemble): APUinfo only for e500.
873 2009-03-03  Tristan Gingold  <gingold@adacore.com>
874             Eric Botcazou  <ebotcazou@adacore.com>
875             Douglas B Rupp  <rupp@gnat.com>
877         * doc/as.texinfo (Overview): Mention -replace/-noreplace options
878         for Alpha.
879         * doc/c-alpha.texi (Alpha Options): Document -replace/-noreplace.
880         * config/tc-alpha.h (TC_VALIDATE_FIX_SUB): Define to 1 (evax).
881         (OBJ_SYMFIELD_TYPE): Remove.
882         (tc_canonicalize_symbol_name): Define to evax_shorten_name.
883         (TC_IMPLICIT_LCOMM_ALIGNMENT): For alignment to 3 on evax.
884         (tc_frob_file_before_fix): Do not defined on evax.
885         * config/tc-alpha.c: Always includes dwarf2dbg.h.
886         Include vms.h if OBJ_EVAX.
887         (struct alpha_fixup): Add xtrasym and procsym (evax only).
888         (enum alpha_macro_arg): Remove trailing comma.
889         (md_longopts): Add replace and noreplace arguments (evax only).
890         (alpha_evax_proc_hash): New variable.
891         (alpha_link_section): Make it global.
892         (alpha_ctors_section, alpha_dtors_section): Removed.
893         (alpha_ctors_symbol, alpha_dtors_symbol): Ditto.
894         (alpha_lit8_section): Ifndef'ed on evax.
895         (alpha_lit8_symbol): Ditto.
896         (alpha_prologue_label): New variable.
897         (alpha_linkage_symbol): New variable (evax only).
898         (alpha_flag_replace): Ditto.
899         (struct alpha_evax_procs): Add handler and handler_data field.
900         (alpha_evax_proc): Now of type pointer.
901         (alpha_linkage_fixup_root, alpha_linkage_fixup_tail): New variables.
902         (struct alpha_reloc_tag): Add sym and psym fields (evax only).
903         (get_alpha_reloc_tag): Initialize sym and psym fields (evax only).
904         (alpha_adjust_relocs): Ifndef'ed on evax.
905         (load_expression): Add opname argument.
906         Implement LDA/BSR optimization for evax.
907         (emit_lda): Adjust for new prototype of load_expression.
908         (emit_ir_load): Ditto. Do not nothing for GP if ..lk symbols.
909         (emit_loadstore): Likewise.
910         (emit_ldXu): Likewise.
911         (emit_stX): Likewise.
912         (emit_jsrjmp): Likewise.  Implement LDA/BSR optimization for evax.
913         (emit_ldgp): Avoid warning in evax case.
914         (add_to_link_pool): Make it static.  Return symbolic expression rather
915         than number expression for the offset.
916         (s_alpha_text): Create .text symbol for evax if not already created.
917         (s_alpha_comm): Do not create specific section for common symbol.
918         Fill common area with zeros for evax.
919         (s_alpha_prologue): Create alpha_prologue_label.
920         (s_alpha_section_name): New function (evax).
921         (s_alpha_section_word): Likewise.
922         (section_name): New static variabke moved out from ...
923         (s_alpha_section): ... here.  Create new sections on demand.
924         (s_alpha_literals): New function (evax).
925         (s_alpha_ent): Create alpha_evax_proc instance and insert it in the
926         alpha_evax_proc_hash table.
927         (s_alpha_handler): New function (evax).
928         (s_alpha_frame): Adjust for new type of alpha_evax_proc.
929         (s_alpha_prologue): New function (evax).
930         (s_alpha_pdesc): Adjust for new type of alpha_evax_proc and new
931         handling of procedures with hash table.
932         Add support for condition handlers.
933         (s_alpha_linkage): Create linkage_fixup instance and chain it.
934         (s_alpha_fp_save): Adjust for new type of alpha_evax_proc.
935         (s_alpha_mask): Likewise.
936         (s_alpha_fmask): Likewise.
937         (s_alpha_end): Clear alpha_evax_proc.
938         (s_alpha_align): Increase max_alignment to 16.
939         (alpha_print_token): Call print_expr_1 instead of print_expr.
940         (md_pseudo_table): Add "section", "literals", "handler" and
941         "handler_data" (evax).  Do not ignore "prologue" on evax.
942         Fix indentation.
943         (md_begin): Create hash table for alpha_evax_proc_hash.
944         (md_parse_option): Handle OPTION_REPLACE and OPTION_NOREPLACE.
945         (md_show_usage): Mention -replace/-noreplace for evax.
946         (md_apply_fix): Handle evax relocs (_NOP, _LDA, _BSR and _BOH).
947         (alpha_force_relocation): Likewise.
948         (alpha_fix_adjustable): Likewise. Add BFD_RELOC_16 case.
949         (tc_gen_reloc): Likewise.  Add BFD_RELOC_ALPHA_LINKAGE for evax.
950         (emit_insn): New cases for evax specific relocs.
951         (assemble_insn): Fix indentation.
952         Take care of -MDISP in operand table.
953         * config/obj-evax.h (struct alpha_linkage_fixups): New struct.
954         (OBJ_SYMFIELD_TYPE): New macro.
955         (obj_symbol_new_hook): Define.
956         (obj_frob_symbol, obj_frob_file_before_adjust): Ditto.
957         (obj_frob_file_before_fix): Ditto.
958         (PDSC_S_M_HANDLER_VALID): New macro.
959         (PDSC_S_M_HANDLER_DATA_VALID): Ditto.
960         (TC_IMPLICIT_LCOMM_ALIGNMENT): Remove.
961         Add prototypes for functions declared in obj-evax.c
962         * config/obj-evax.c: Include subsegs.h, struc-symbol.h, safe-ctype.h.
963         (s_evax_weak): Convert to ansi-C.
964         (evax_symbol_new_hook): New function.
965         (evax_frob_symbol): Ditto.
966         (evax_frob_file_before_adjust): Ditto.
967         (evax_frob_file_before_fix): Ditto.
968         (evax_shorten_name): Ditto.
969         (crc32): Ditto.
970         (encode_32): Ditto.
971         (encode_16): Ditto.
972         (decode_16): Ditto.
973         (shorten_identifier): Ditto.
974         (is_truncated_identifier): Ditto.
975         * dwarf2dbg.c (out_debug_info): Do not append trailing slash on VMS.
976         * as.c (close_output_file): Remove #ifndef OBJ_VMS.
977         (main): Ditto.
979 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
981         * Makefile.am: Run "make dep-am".
982         * Makefile.in: Regenerate.
984 2009-03-02  Nick Clifton  <nickc@redhat.com>
986         PR 9874
987         * config/tc-ia64.c (fix_insn): Fix warning reported by
988         -Wformat-security.
990 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
992         * config/tc-score7.c: New file.
993         * doc/c-score.texi: New file.
994         * Makefile.am: Update dependencies for tc-score.c.
995         * Makefile.in: Regenerate.
996         * NEWS: Mention support for Score7 architecture.
997         * config/tc-score.c: Add support for Score7 architecture.
998         * config/tc-score.h: Likewise.
999         * doc/Makefile.am: Add c-score.texi.
1000         * doc/Makefile.in: Regenerate.
1001         * doc/all.texi: Add Score7.
1002         * doc/as.texinfo: Add Score7.
1004 2009-03-01  Mark Mitchell  <mark@codesourcery.com>
1006         * config/tc-arm.c (md_assemble): Allow barrier instructions on
1007         ARMv6-M cores.
1009 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1011         * configure: Regenerate.
1013 2009-02-26  Peter Bergner  <bergner@vnet.ibm.com>
1015         * config/tc-ppc.c (pre_defined_registers): Add "f32" to "f63",
1016         "f.32" to "f.63", "vs0" to "vs63" and "vs.0" to "vs.63".
1017         (parse_cpu): Extend -mpower7 to accept power7 and isel instructions.
1019 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
1021         * config/tc-i386.c (fits_in_imm4): Removed.
1023 2009-02-24  Helge Deller <deller@gmx.de>
1025         * config/tc-hppa.c (pa_ip): Add check of immediate values.
1026         (SAVE_IMMEDIATE): New define.
1028 2009-02-23  Mark Mitchell  <mark@codesourcery.com>
1030         * config/tc-arm.c (warn_deprecated_sp): New macro.
1031         (do_t_mov_cmp): Permit R13 as the second
1032         argument to "cmp.n".
1034 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1036         * config/tc-i386.c (type_names): Add OPERAND_TYPE_REGYMM.
1037         (pt): Replace UINTS_ALL_ZERO with operand_type_all_zero.
1039 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1041         * config/tc-i386.c (type_names): Remove OPERAND_TYPE_VEX_IMM4.
1043 2009-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1045         * config/tc-i386.c (vex_imm4): Removed.
1046         (VEX_check_operands): Likewise.
1047         (match_template): Updated.
1049 2009-02-23  Martin Schwidefsky  <schwidefsky@de.ibm.com>
1051         * doc/all.texi: Set S390.
1052         * doc/as.texinfo: Add S390 support and pull in c-s390.texi.
1053         * doc/Makefile.am (CPU_DOCS): Add c-s390.texi.
1054         * doc/Makefile.in: Likewise.
1055         * doc/c-s390.texi: New.
1057 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
1059         * config/tc-m68k.c (mcf51qe_ctrl): Add CPUCR.
1060         (mcf52259_ctrl, mcf52277_ctrl, mcf53017_ctrl): New.
1061         (mcf5307_ctrl): Add VBR.
1062         (no_mac): New variable.
1063         (m68k_extensions): Refer to no_mac mask.
1064         (m68k_cpus): Add 51, 51ac, 51cn, 51em, 51jm, 52274, 52277,
1065         52252..52259, 53011..53017.
1066         (m68k_ip): Process CPUCR.
1067         (init_table): Add cpucr entry.
1068         (m68k_set_extension): Allow negated mask to refer to a variable.
1069         (md_show_usage): Use '%s' to silence fprintf warning.
1070         * config/m68k-parse.h (CPUCR): New control register.
1072 2009-02-10  Nathan Sidwell  <nathan@codesourcery.com>
1074         * config/tc-ppc.c (ppc_insert_operand, md_assemble): Use '%s' for
1075         as_bad calls to silence compiler warning.
1077 2009-02-06  Nick Clifton  <nickc@redhat.com>
1079         PR 9814
1080         * config/tc-arm.c (MODE_RECORDED): New define.
1081         (output_inst): Record the thumb_mode in the current frag.
1082         (arm_handle_align): Ignore the MODE_RECORDED bit in tc_frag_data.
1083         (arm_init_frag): Only set the tc_frag_data field if it has not
1084         already been set.
1086 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1088         AVX Programming Reference (January, 2009)
1089         * config/tc-i386.c (CPU_FLAGS_PCLMUL_MATCH): New.
1090         (CPU_FLAGS_AVX_MATCH): Updated.
1091         (CPU_FLAGS_32BIT_MATCH): Likewise.
1092         (cpu_flags_match): Likewise.
1094 2009-02-03  Sandip Matte  <sandip@rmicorp.com>
1096         * config/tc-mips.c (macro): Handle M_MSGSND, M_MSGLD, M_MSGLD_T,
1097         M_MSGWAIT and M_MSGWAIT_T.
1098         (mips_cpu_info_table): Add XLR entry.
1099         * doc/c-mips.texi (-march): Document xlr.
1101 2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
1103         * config/tc-avr.c (mcu_types): Add ata6289.
1104         * doc/c-avr.texi: Likewise.
1106 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
1108         * configure.in: AC_SUBST pdfdir.
1109         * Makefile.am: Add install-pdf, install-pdf-am,
1110         and install-pdf-recursive targets.
1111         * doc/Makefile.am: Define pdf__strip_dir. Add
1112         install-pdf and install-pdf-am targets.
1113         * po/Make-in: Add install-pdf target.
1114         * configure: Regenerate.
1115         * Makefile.in: Regenerate.
1116         * doc/Makefile.in: Regenerate.
1118 2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1120         * config/m68k-parse.h (enum pic_relocation): Add values for TLS
1121         relocations.
1122         * config/m68k-parse.y (yylex): Parse TLS relocations.
1123         * config/tc-m68k.c (m68k_elf_cons): New static function.
1124         (md_pseudo_table): Use it.
1125         (get_reloc_code, tc_m68k_fix_adjustable, tc_gen_reloc): Handle TLS
1126         relocations.
1127         (md_apply_fix): Fix to set thread local flag.
1128         (m68k_elf_suffix): New static function; helper for m68k_elf_cons.
1130 2009-02-03  Vince Weaver <vince@csl.cornell.edu>
1132         PR 9779
1133         * config/tc-pdp11.c (parse_op_no_deferred): Fix handling of
1134         indexed addressing for symbolic expressions.
1136 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
1138         * config/tc-arm.c (BAD_SP): Define.
1139         (s_arm_unwind_fnstart): Use REG_SP.
1140         (s_arm_unwind_setfp): Likewise.
1141         (reject_bad_reg): New macro.
1142         (do_co_reg): Check for bad registers.
1143         (do_co_reg2c): Likewise.
1144         (do_srs): Use REG_SP.
1145         (do_t_add_sub): Check for bad registers.
1146         (do_t_adr): Likewise.
1147         (do_t_arit3): Likewise.
1148         (do_t_arit3c): Likewise.
1149         (do_t_bfc): Likewise.
1150         (do_t_bfi): Likewise.
1151         (do_t_bfx): Likewise.
1152         (do_t_blx): Likewise.
1153         (do_t_bx): Likewise.
1154         (do_t_bxj): Likewise.
1155         (do_t_clz): Likewise.
1156         (do_t_div): Likewise.
1157         (do_t_mla): Likewise.
1158         (do_t_mlal): Likewise.
1159         (do_t_mov_cmp): Likewise.
1160         (do_t_mov16): Likewise.
1161         (do_t_mvn_tst): Likewise.
1162         (do_t_mrs): Likewise.
1163         (do_t_msr): Likewise.
1164         (do_t_mul): Likewise.
1165         (do_t_mull): Likewise.
1166         (do_t_orn): Likewise.
1167         (do_t_pkhbt): Likewise.
1168         (do_t_pld): Likewise.
1169         (do_t_rbit): Likewise.
1170         (do_t_rev): Likewise.
1171         (do_t_rrx): Likewise.
1172         (do_t_rsb): Likewise.
1173         (do_t_shift): Likewise.
1174         (do_t_simd): Likewise.
1175         (do_t_ssat): Likewise.
1176         (do_t_ssat16): Likewise.
1177         (do_t_sxtah): Likewise.
1178         (do_t_sxth): Likewise.
1179         (do_t_tb): Likewise.
1180         (do_t_usat): Likewise.
1181         (do_t_usat16): Likewise.
1182         (nysn_insert_sp): Use REG_SP.
1184 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
1186         * config/tc-arm.c (do_t_orn): New function.
1187         (do_t_rrx): Likewise.
1188         (insns): Add orn and rrx.
1190 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
1192         * config/tc-arm.c (insns): Add qasx, qsax, shasx, shsax, ssax,
1193         uasx, uhasx, uhsx, uqasx, uqsax, usax.
1195 2009-01-29  Mark Mitchell  <mark@codesourcery.com>
1197         * config/tc-arm.c (insns): Correct encoding of qadd, qdadd, qsub,
1198         qdsub in Thumb-2 mode.
1200 2009-01-29  Paul Brook  <paul@codesourcery.com>
1201             Mark Mitchell  <mark@codesourcery.com>
1203         * config/tc-arm.c (do_t_mul): In Thumb-2 mode, use 16-bit encoding
1204         of MUL when possible.
1206 2009-01-29  Nick Clifton  <nickc@redhat.com>
1208         * config/tc-mep.h (DIFF_EXPR_OK): Do not define.
1210 2009-01-29  Nathan Sidwell  <nathan@codesourcery.com>
1211             Catherine Moore <clm@codesourcery.com?
1213         * doc/c-arm.texi (ARM Directives): Alphabetize. Document .2byte,
1214         .4byte, .8byte, .bss, .even, .extend, .ldouble, .packed, .secrel32
1215         directives.
1217 2009-01-27  Nick Clifton  <nickc@redhat.com>
1219         * config/tc-mips.c (append_insn): Cope with a complex reloc
1220         sequence containing an unsupported reloc type.
1221         (enum options): Replace computed #define's constants for option
1222         numbers with this enum.
1223         (struct md_longopts): Use the enum.  Allow OPTION_32 in a non-ELF
1224         environment.
1225         (md_parse_option): Allow -32 in a non-ELF environment.
1227 2009-01-26  Andrew Stubbs  <ams@codesourcery.com>
1229         * config/tc-arm.c (attributes_set_explicitly): New array.
1230         (s_arm_eabi_attribute): Check return value from s_vendor_attribute.
1231         (cpu_arch): Add ARM_ARCH_V5T.
1232         (aeabi_set_attribute_int): New function.
1233         (aeabi_set_attribute_string): New function.
1234         (aeabi_set_public_attributes): Set attributes according to the user's
1235         intentions, rather than the actual state of the binary.
1236         Use aeabi_set_attribute_int and aeabi_set_attribute_string instead of
1237         bfd_elf_add_proc_attr_int and bfd_elf_add_proc_attr_string.
1238         Support WMMXv2. Use attribute names instead of numbers.
1239         * read.c (s_vendor_attribute): Change return type to int.
1240         Return the tag number that was set.
1241         * read.h (s_vendor_attribute): Change return type to int.
1243 2009-01-26  Eric B. Weddington  <eric.weddington@atmel.com>
1245         PR 9789
1246         * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name.
1247         * doc/c-avr.texi: Likewise.
1249 2009-01-23  Nathan Sidwell  <nathan@codesourcery.com>
1251         * doc/c-arm.texi (): Document -mwarn-deprecated.
1252         * config/tc-arm.c (WARN_DEPRECATED): Remove.  Replace with ...
1253         (warn_on_deprecated): ... this.
1254         (opcode_lookup, md_assemble): Check it before warning.
1255         (arm_opts): Add m[no-]warn-deprecated.
1256         (md_parse_option): Replace WARN_DEPRECATED with
1257         warn_on_deprecated.
1259 2009-01-23  Andreas Schwab  <schwab@suse.de>
1261         * config/tc-mips.c (macro) [M_DINS, M_SEQ_I, M_SNE_I]: Cast
1262         arguments to macro_build to match format.
1264         * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define.
1265         * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define.
1267 2009-01-19  Nick Clifton  <nickc@redhat.com>
1269         * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for
1270         ELF format ARM targets.
1271         * config/tc-arm.c (arm_convert_symbolic_attribute): Likewise.
1273 2009-01-19  Nick Clifton  <nickc@redhat.com>
1275         * configure.tgt: Restore alpha sorting to object format switch
1276         statement.
1278 2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
1280         * read.c (s_vendor_attribute): Allow for unknown flag bits in type.
1282 2009-01-16  Mark Shinwell  <shinwell@codesourcery.com>
1284         * config/te-armeabi.h (EABI_DEFAULT): Use EF_ARM_EABI_VER5.
1285         * config/te-armlinuxeabi.h (EABI_DEFAULT): Likewise.
1287 2009-01-16  Andrew Stubbs  <ams@codesourcery.com>
1288             Daniel Jacobowitz  <dan@codesourcery.com>
1290         * config/tc-arm.c (arm_copy_symbol_attributes): New function.
1291         * config/tc-arm.h (arm_copy_symbol_attributes): New prototype.
1292         (CONVERT_SYMBOLIC_ATTRIBUTE): New define.
1293         * read.c (s_vendor_attribute): Add support for symbolic tag names.
1294         Improve string parser.
1295         * doc/c-arm.texi (ARM Machine Directives): Document
1296         .eabi_attribute symbolic tag names.
1298 2009-01-16  Alan Modra  <amodra@bigpond.net.au>
1300         * configure.in (commonbfdlib): Delete.
1301         * configure: Regenerate.
1302         * po/POTFILES.in: Regenerate.
1304 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
1305             Julian Brown   <julian@codesourcery.com>
1307         * config/tc-arm.c (cpu_arch): Change ARM_ARCH_V6M to 11.
1309 2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
1311         * read.c (s_vendor_attribute): bfd_elf_add_obj_attr_compat ->
1312         bfd_elf_add_obj_attr_int_string.
1314 2009-01-15  Douglas B Rupp  <rupp@gnat.com>
1316         * configure.tgt(ia64-*-*vms*): New target.
1317         * dwarf2dbg.h (dwarf2_loc_mark_labels): Make extern.
1318         * tc.h (md_number_to_chars): Declare iff undefined.
1319         * config/obj-elf.c (obj_elf_change_section): Change type of arg
1320         attr to bfd_vma.
1321         (obj_elf_parse_section_letters): Return a bfd_vma. Change type of
1322         variables attr, md_attr to bfd_vma.
1323         (obj_elf_section_word): Likewise.
1324         (obj_elf_section): Change type of variable attr to bfd_vma
1325         * config/obj-elf.h (obj_elf_change_section): Change type of arg
1326         attr to bfd_vma.
1327         * config/tc-ia64.c (bfdver.h,time.h): Include.
1328         (ia64_elf_section_letter): Now returns a bfd_vma.
1329         Handle VMS specific attributes.
1330         (ia64_elf_section_flags): Arg attr now a bfd_vma.
1331         (ia64_init): Don't turn on dependency checking for VMS.
1332         (ia64_target_format): Check for VMS flag bit.
1333         (do_alias): Hande decc$ functions.
1334         (get_vms_time): New function.
1335         (ia64_vms_note): New function.
1336         * config/tc-ia64.h (ia64_elf_section_letter): Now returns a bfd_vma.
1337         (ia64_elf_section_flags): Arg attr now a bfd_vma.
1338         (tc_init_after_args): Define for VMS.
1339         * config/tc-alpha.c (alpha_elf_section_letter): Return a bfd_vma.
1340         (alpha_elf_section_flags): Change type of arg attr to bfd_vma.
1341         * config/tc-alpha.h: Likewise.
1342         * config/tc-i386.c (x86_64_section_letter): Return a bfd_vma.
1343         (x86_64_section_word): Return a bfd_vma.
1344         * config/tc-i386.h: Likewise.
1345         * config/tc-ip2k.c (ip2k_elf_section_flags): Change type of arg
1346         attr to bfd_vma.
1347         * config/tc-ip2k.h: Likewise.
1348         * config/tc-mep.c (mep_elf_section_letter): Return a bfd_vma.
1349         (mep_elf_section_flags): Change type of arg attr to bfd_vma.
1350         * config/tc-mep.h: Likewise.
1351         * config/tc-ppc.c  (ppc_section_letter): Return a bfd_vma.
1352         (ppc_section_word): Return a bfd_vma.
1353         (ppc_section_flags): Change type of arg attr to bfd_vma.
1354         * config/tc-ppc.h: Likewise.
1355         * config/tc-frv.h: Provide a prototype for frv_md_number_to_chars.
1356         * config/te-vms.h (DWARF2_DIR_SHOULD_END_WITH_SEPARATOR,
1357         DWAR2_FILE_TIME_NAME, DWARF2_FILE_SIZE_NAME, DWARF2_FILEN_NAME):
1358         New file with new macros
1359         * dwarf2dbg.c (get_filenum, out_file_list): Default and call new
1360         macros.
1362 2009-01-15  Nick Clifton  <nickc@redhat.com>
1364         PR 9722
1365         * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
1366         instructions before generating a Thumb2 nop.
1368 2009-01-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1370         * config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
1372 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
1374         * config/tc-spu.c (md_pseudo_table): Add "brinfo".
1375         (brinfo): New var.
1376         (md_assemble): Poke brinfo into branch instructions.
1377         (spu_brinfo): New function.
1378         (md_apply_fix): Don't assume insn fields start off at zero, mask
1379         them to remove possible brinfo.
1381 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1383         * doc/c-i386.texi: Reformat.
1385 2009-01-10  H.J. Lu  <hongjiu.lu@intel.com>
1387         * config/tc-i386.c (cpu_arch): Add corei7, .clflush and
1388         .syscall.
1389         (i386_align_code): Handle PROCESSOR_COREI7.
1390         (md_show_usage): Add corei7, clflush and syscall.
1391         (i386_target_format): Replace cpup4 with cpuclflush.
1393         * config/tc-i386.h (processor_type): Add PROCESSOR_COREI7.
1395         * doc/c-i386.texi: Document corei7, clflush and syscall.
1397 2009-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1399         * config/tc-i386.c (cpu_arch): Add .rdtscp.
1400         (md_show_usage): Display rdtscp.
1402         * doc/c-i386.texi: Document rdtscp.
1404 2009-01-09  Peter Bergner  <bergner@vnet.ibm.com>
1406         * config/tc-ppc.c (ppc_setup_opcodes): Remove PPC_OPCODE_NOPOWER4 test.
1407         Test the new "deprecated" opcode field.
1409 2009-01-07  Sterling Augustine  <sterling@tensilica.com>
1411         * config/tc-xtensa.c (produce_flix): New.
1412         (option_flix, optoin_no_generate_flix, option_no_flix) Define.
1413         (md_longopts): Add support for them.
1414         (md_parse_option): Likewise.
1415         (md_show_usage): Add help message.
1416         (finish_vinsn): Don't allow multi-slot flix when produce_flix
1417         option is set to FLIX_NONE.
1418         * config/xtensa-relax.c (transition_applies): Only relax to
1419         flix branches when produce_flix equals FLIX_ALL.
1420         * config/xtensa-relax.h (flix_level, FLIX_ALL, FLIX_NO_GENERATE
1421         FLIX_NONE): New.
1422         (produce_flix): Declare.
1424 2009-01-06  Chao-ying Fu  <fu@mips.com>
1426         * config/tc-mips.c (mips_ip): Set lastregno to 0xffffffff.
1427         Use strncmp to match jalr and jalr.hb.
1428         Fix a typo.
1430 2009-01-05  H.J. Lu  <hongjiu.lu@intel.com>
1432         AVX Programming Reference (December, 2008)
1433         * config/tc-i386.c (build_modrm_byte): Remove 5 operand instruction
1434         support.  Don't swap REG and NDS for FMA.
1436 2009-01-02  Matthias Klose  <doko@ubuntu.com>
1438         * itbl-ops.c (itbl_disassemble): Don't rely on undefined sprintf
1439         behaviour.
1441 For older changes see ChangeLog-2008
1443 Local Variables:
1444 mode: change-log
1445 left-margin: 8
1446 fill-column: 74
1447 version-control: never
1448 End: