2006-08-18 Paul Brook <paul@codesourcery.com>
[binutils.git] / ChangeLog.csl
blob6ccbea32910b41ce2f940943593f58ac3789681a
1 2006-08-18  Paul Brook  <paul@codesourcery.com>
3         Backport from mainline.
4         bfd/
5         * elf32-arm.c (elf32_arm_link_hash_entry): Add export_glue.
6         (elf32_arm_link_hash_newfunc): Initialize export_glue.
7         (record_arm_to_thumb_glue): Return stub symbol.
8         (elf32_arm_create_thumb_stub): New function.
9         (elf32_arm_to_thumb_stub): Use it.
10         (elf32_arm_to_thumb_export_stub): New function.
11         (elf32_arm_begin_write_processing): New function.
12         (allocate_dynrelocs): Allocate Arm stubs.
13         (elf_backend_begin_write_processing): Define.
14         (elf32_arm_symbian_begin_write_processing): Remove ATTRIBUTE_UNUSED.
15         Call elf32_arm_begin_write_processing.
17         ld/
18         * emultempl/armelf.em (arm_elf_before_allocation): Call
19         gld${EMULATION_NAME}_before_allocation after setting interworking bfd.
21         ld/testsuite/
22         * ld-arm/arm-elf.exp (armelftests): Add armthumb-lib.so.  Add
23         -use-blx to mixed-lib.so
24         * ld-arm/armthumb-lib.d: New file.
25         * ld-arm/armthumb-lib.sym: New file.
27 2006-08-18  Julian Brown  <julian@codesourcery.com>
29         libiberty/
30         * floatformat.c (get_field): Fix segfault with little-endian word
31         order on 64-bit hosts.
32         (put_field): Likewise.
33         (min): Move definition.
35 2006-08-18  Julian Brown  <julian@codesourcery.com>
37         opcodes/
38         * arm-dis.c (print_insn_neon): Disassemble 32-bit immediates as
39         signed on 64-bit hosts.
41 2006-08-16  Julian Brown  <julian@codesourcery.com>
43         gas/
44         * config/tc-arm.c (md_assemble): Improve diagnostic when attempting
45         to use ARM instructions on non-ARM-supporting cores.
46         (autoselect_thumb_from_cpu_variant): New function. Switch on Thumb
47         mode automatically based on cpu variant.
48         (md_begin): Call above function.
50         gas/testsuite/
51         * gas/arm/noarm.s: Add test for disabled ARM insns.
52         * gas/arm/noarm.d: Drive test for above.
53         * gas/arm/noarm.l: Expected error output.
55 2006-08-16  Julian Brown  <julian@codesourcery.com>
57         gas/
58         * config/tc-arm.c (opcode_lookup): Allow Neon type suffixes to be
59         recognized in non-unified syntax mode.
61 2006-08-15  Mark Shinwell  <shinwell@codesourcery.com>
63         gas/
64         * config/tc-arm.c (s_arm_unwind_save_vfp_armv6): New.  Parse
65         a directive saving VFP registers for ARMv6 or later.
66         (s_arm_unwind_save): Add parameter arch_v6 and call
67         s_arm_unwind_save_vfp or s_arm_unwind_save_vfp_armv6 as
68         appropriate.
69         (md_pseudo_table): Add entry for new "vsave" directive.
70         * doc/c-arm.texi: Correct error in example for "save"
71         directive (fstmdf -> fstmdx).  Also document "vsave" directive.
73 2006-08-03  Joseph Myers  <joseph@codesourcery.com>
75         Backport from mainline.
77         gas/
78         * config/tc-arm.c (parse_operands): Handle invalid register name
79         for OP_RIWR_RIWC. 
81         gas/testsuite/
82         * gas/arm/iwmmxt-bad.s: Test invalid register names for wldrw and
83         wstrw.
84         * gas/arm/iwmmxt-bad.l: Update.
86         gas/
87         * config/tc-arm.c (enum operand_parse_code): Add OP_RIWC_RIWG.
88         (parse_operands): Handle it.
89         (insns): Use it for tmcr and tmrc.
91         gas/testsuite/
92         * gas/arm/iwmmxt.s: Test tmcr and tmrc with wcgr registers.
93         * gas/arm/iwmmxt.d: Update.
95 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
97         bfd/
98         * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
99         Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
100         and EF_MIPS_UCODE.
102 2006-07-26  Vladimir Prus  <vladimir@codesourcery.com>
103         
104         bfd/
105         * Makefile.am: (VERSUFFIX_s): New. Pass it to compiler
106         via -D.
107         * Makefile.in: Regenerated.
108         * configure: Regenerated.
109         * configure.in: Add --with-versuffix option.
110         * version.h: Add BFD_VERSION_SUFFIX, use it 
111         in BFD_VERSION_STRING.
112         
113         binutils/
114         * Makefile.am: (REPORT_BUGS_TO_s): New. Pass it to compiler
115         via -D.
116         * Makefile.in: Regenerated.
117         * configure: Regenerated.
118         * configure.in: Add --with-bugurl option.
120         gas/
121         * Makefile.am: (REPORT_BUGS_TO_s): New. Pass it to compiler
122         via -D.
123         * Makefile.in: Regenerated.
124         * configure: Regenerated.
125         * configure.in: Add --with-bugurl option.
127         gprof/
128         * Makefile.am: (VERSUFFIX_s, REPORT_BUGS_TO_s): New. Pass 
129         them to compiler via -D.
130         * Makefile.in: Regenerated.
131         * configure: Regenerated.
132         * configure.in: Add --with-versuffix and --with-bugurl option.
133         * gprof.c: Print version suffix.
135         ld/
136         * Makefile.am: (REPORT_BUGS_TO_s): New. Pass it to compiler
137         via -D.
138         * Makefile.in: Regenerated.
139         * configure: Regenerated.
140         * configure.in: Add --with-bugurl option.
142 2006-07-26  Richard Sandiford  <richard@codesourcery.com>
144         opcodes/
145         * m68k-opc.c (m68k_opcodes): Fix operand specifier in the Coldfire
146         "fdaddl" entry.
148         gas/testsuite/
149         * gas/m68k/mcf-fpu.s: Add tests for all addressing modes.
150         * gas/m68k/mcf-fpu.d: Update accordingly.
152 2006-07-20  Julian Brown  <julian@codesourcery.com>
154         Backport from mainline.
156         opcodes/
157         * arm-dis.c (coprocessor): Alter fmsrr disassembly syntax.
159         gas/testsuite/
160         * gas/arm/vfp-neon-syntax.d: Tweak expected fmsrr syntax.
161         * gas/arm/vfp-neon-syntax_t2.d: Likewise.
162         * gas/arm/vfp2.d: Likewise.
163         * gas/arm/vfp2_t2.d: Likewise.
165 2006-07-19  Paul Brook  <paul@codesourcery.com>
167         Backport from mainline.
168         gas/
169         * config/tc-arm.c (insns): Fix rbit Arm opcode.
170         gas/testsuite/
171         * gas/arm/archv6t2.d: Adjust expected output for rbit.
172         opcodes/
173         * armd-dis.c (arm_opcodes): Fix rbit opcode.
175 2006-07-18  Paul Brook  <paul@codesourcery.com>
177         Backport from mainline.
178         bfd/
179         * bfd-in2.h: Regenerate.
180         * libbfd.h: Regenerate.
181         * reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM.
183         gas/
184         * tc-arm.c (do_t_add_sub): Use addw/subw when source is PC.
185         (md_convert_frag): Use correct reloc for add_pc.  Use
186         BFD_RELOC_ARM_T32_ADD_IMM for normal add/sum.
187         (md_apply_fix): Handle BFD_RELOC_ARM_T32_ADD_IMM.
188         (arm_force_relocation): Handle BFD_RELOC_ARM_T32_ADD_IMM.
190         gas/testsuite/
191         * gas/arm/thumb2_add.d: New test.
192         * gas/arm/thumb2_add.s: New test.
194 2006-07-14  Nathan Sidwell  <nathan@codesourcery.com>
196         bfd/
197         * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
199         gas/
200         * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
202         ld/
203         * Makefile.am (ALL_EMULATIONS): Add eshelf_uclinux.o
204         (eshelf_uclinux.c): New target.
205         * Makefile.in: Rebuilt.
206         * configure.tgt (sh-*-uclinux* | sh[12]-*-uclinux*): New stanza.
207         * emulparams/shelf_uclinux.sh: New.
209 2006-07-12  Richard Sandiford  <richard@codesourcery.com>
211         Backport from mainline:
213         bfd/
214         2006-07-12  Matthew R. Dempsky  <mrd@alkemio.org>
216         * cpu-m68k.c (bfd_m68k_compatible): Handle CPU32.
218         ld/testsuite/
219         2006-07-12  Richard Sandiford  <richard@codesourcery.com>
221         * ld-m68k/merge-ok-1c.d: New test.
222         * ld-m68k/m68k.exp: Run it.
224 2006-06-22  Richard Sandiford  <richard@codesourcery.com>
226         binutils/
227         * objcopy.c (localize_hidden): New variable.
228         (OPTION_LOCALIZE_HIDDEN): New command_line_switch value.
229         (copy_options): Add --localize-hidden.
230         (copy_usage): Mention --localize-hidden.
231         (is_hidden_symbol): New function.
232         (filter_symbols): Handle localize_hidden.
233         (copy_object): Call filter_symbols if localize_hidden.
234         (copy_main): Handle OPTION_LOCALIZE_HIDDEN.
235         * doc/binutils.texi (--localize-hidden): Document new option.
237         binutils/testsuite/
238         * binutils-all/localize-hidden-1.s,
239         * binutils-all/localize-hidden-1.d,
240         * binutils-all/localize-hidden-2.s,
241         * binutils-all/localize-hidden-2.d: New tests.
242         * binutils-all/objcopy.exp: Run them.
244 2006-06-22  Richard Sandiford  <richard@codesourcery.com>
246         Backport from mainline:
248         binutils/testsuite/
249         2006-04-26  H.J. Lu  <hongjiu.lu@intel.com>
251         * lib/utils-lib.exp (run_dump_test): New.
252         (slurp_options): Likewise.
253         (regexp_diff): Likewise.
254         (file_contents): Likewise.
255         (verbose_eval): Likewise.
257 2006-06-21  Mark Shinwell  <shinwell@codesourcery.com>
259         ld/
260         * ldlang.c (lang_insert_orphan): Correctly handle the case where
261         the section is to end up after the section currently at the end
262         of the list in output_bfd.
264 2006-06-19  Vladimir Prus  <vladimir@codesourcery.com>
266         bfd/
267         * elf32-arm.c (elf32_arm_swap_symbol_out): Don't set low
268         bit for undefined symbols.
270         ld/testsuite
271         * ld-arm/arm-elf.exp: New test.
272         * ld-arm/use-thumb-lib.s: New file.
273         * ld-arm/use-thumb-lib.sym: New file.
275 2006-06-15  Mark Shinwell  <shinwell@codesourcery.com>
277         * include/elf/arm.h: Correct names of R_ARM_LDC_G{0,1,2}
278         to R_ARM_LDC_SB_G{0,1,2} respectively.
280         bfd/
281         * bfd-in2.h: Regenerate.
282         * elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0,
283         R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2,
284         R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0,
285         R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0,
286         R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC,
287         R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1,
288         R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1,
289         R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1,
290         R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1,
291         R_ARM_LDC_SB_G2): New relocation types.
292         (R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and
293         adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1
294         and friends.
295         (elf32_arm_howto_table_3): Delete; contents merged into
296         elf32_arm_howto_table_2.
297         (elf32_arm_howto_from_type): Adjust correspondingly.
298         (elf32_arm_reloc_map): Extend with the above relocations.
299         (calculate_group_reloc_mask): New function.
300         (identify_add_or_sub): New function.
301         (elf32_arm_final_link_relocate): Support for the above
302         relocations.
303         * reloc.c: Add enumeration entries for BFD_RELOC_ARM_...
304         codes to correspond to the above relocations.
306         gas/
307         * config/tc-arm.c (enum parse_operand_result): New.
308         (struct group_reloc_table_entry): New.
309         (enum group_reloc_type): New.
310         (group_reloc_table): New array.
311         (find_group_reloc_table_entry): New function.
312         (parse_shifter_operand_group_reloc): New function.
313         (parse_address_main): New function, incorporating code
314         from the old parse_address function.  To be used via...
315         (parse_address): wrapper for parse_address_main; and
316         (parse_address_group_reloc): new function, likewise.
317         (enum operand_parse_code): New codes OP_SHG, OP_ADDRGLDR,
318         OP_ADDRGLDRS, OP_ADDRGLDC.
319         (parse_operands): Support for these new operand codes.
320         New macro po_misc_or_fail_no_backtrack.
321         (encode_arm_cp_address): Preserve group relocations.
322         (insns): Modify to use the above operand codes where group
323         relocations are permitted.
324         (md_apply_fix): Handle the group relocations
325         ALU_PC_G0_NC through LDC_SB_G2.
326         (tc_gen_reloc): Likewise.
327         (arm_force_relocation): Leave group relocations for the linker.
328         (arm_fix_adjustable): Likewise.
330         gas/testsuite/
331         * gas/arm/group-reloc-alu.d: New test.
332         * gas/arm/group-reloc-alu-encoding-bad.d: New test.
333         * gas/arm/group-reloc-alu-encoding-bad.l: New test.
334         * gas/arm/group-reloc-alu-encoding-bad.s: New test.
335         * gas/arm/group-reloc-alu-parsing-bad.d: New test.
336         * gas/arm/group-reloc-alu-parsing-bad.l: New test.
337         * gas/arm/group-reloc-alu-parsing-bad.s: New test.
338         * gas/arm/group-reloc-alu.s: New test.
339         * gas/arm/group-reloc-ldc.d: New test.
340         * gas/arm/group-reloc-ldc-encoding-bad.d: New test.
341         * gas/arm/group-reloc-ldc-encoding-bad.l: New test.
342         * gas/arm/group-reloc-ldc-encoding-bad.s: New test.
343         * gas/arm/group-reloc-ldc-parsing-bad.d: New test.
344         * gas/arm/group-reloc-ldc-parsing-bad.l: New test.
345         * gas/arm/group-reloc-ldc-parsing-bad.s: New test.
346         * gas/arm/group-reloc-ldc.s: New test.
347         * gas/arm/group-reloc-ldr.d: New test.
348         * gas/arm/group-reloc-ldr-encoding-bad.d: New test.
349         * gas/arm/group-reloc-ldr-encoding-bad.l: New test.
350         * gas/arm/group-reloc-ldr-encoding-bad.s: New test.
351         * gas/arm/group-reloc-ldr-parsing-bad.d: New test.
352         * gas/arm/group-reloc-ldr-parsing-bad.l: New test.
353         * gas/arm/group-reloc-ldr-parsing-bad.s: New test.
354         * gas/arm/group-reloc-ldr.s: New test.
355         * gas/arm/group-reloc-ldrs.d: New test.
356         * gas/arm/group-reloc-ldrs-encoding-bad.d: New test.
357         * gas/arm/group-reloc-ldrs-encoding-bad.l: New test.
358         * gas/arm/group-reloc-ldrs-encoding-bad.s: New test.
359         * gas/arm/group-reloc-ldrs-parsing-bad.d: New test.
360         * gas/arm/group-reloc-ldrs-parsing-bad.l: New test.
361         * gas/arm/group-reloc-ldrs-parsing-bad.s: New test.
362         * gas/arm/group-reloc-ldrs.s: New test.
364         ld/testsuite/
365         * ld-arm/group-relocs-alu-bad.d: New test.
366         * ld-arm/group-relocs-alu-bad.s: New test.
367         * ld-arm/group-relocs.d: New test.
368         * ld-arm/group-relocs-ldc-bad.d: New test.
369         * ld-arm/group-relocs-ldc-bad.s: New test.
370         * ld-arm/group-relocs-ldr-bad.d: New test.
371         * ld-arm/group-relocs-ldr-bad.s: New test.
372         * ld-arm/group-relocs-ldrs-bad.d: New test.
373         * ld-arm/group-relocs-ldrs-bad.s: New test.
374         * ld-arm/group-relocs.s: New test.
375         * ld-arm/arm-elf.exp: Wire in new tests.
377 2006-06-15  Julian Brown  <julian@codesourcery.com>
379         gas/
380         * config/tc-arm.c (do_vfp_nsyn_ldr_str): Remove, fold into...
381         (do_neon_ldr_str): Always defer to VFP encoding routines, which handle
382         relocs properly.
384 2006-05-25  Alan Modra  <amodra@bigpond.net.au>
386         * bfd/elf.c (sym_is_global): Return a bfd_boolean.
387         (ignore_section_sym): New function.
388         (elf_map_symbols): Use ignore_section_sym to discard some syms.
389         (_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to
390         bfd before using elf_section_syms.
392 2006-05-25  Nathan Sidwell  <nathan@codesourcery.com>
394         * gas/config/tc-m68k.c (mcf52235_ctrl, mcf5225_ctrl): New.
395         (m68k_cpus): Add 52230, 52233, 52234, 52235, 5224, 5225.
397 2006-05-24  Paul Brook  <paul@codesourcery.com>
399         Backport from mainline.
400         * bfd/elf-bfd.h (elf_backend_data): Add
401         elf_backend_output_arch_local_syms
402         * bfd/elf32-arm.c (output_arch_syminfo): Define.
403         (elf32_arm_ouput_plt_map_sym, elf32_arm_output_plt_map,
404         elf32_arm_output_arch_local_syms): New functions.
405         (elf_backend_output_arch_local_syms): Define.
406         * bfd/elflink.c (bfd_elf_final_link): Call
407         elf_backend_output_arch_local_syms.
408         * bfd/elfxx-target.h (elf_backend_output_arch_local_syms): Provide
409         default definition.
410         (elfNN_bed): Add elf_backend_output_arch_local_syms.
411         * ld/testsuite/ld-arm/arm-app-abs32.d: Update expected output.
412         * ld/testsuite/ld-arm/arm-app.d: Ditto.
413         * ld/testsuite/ld-arm/arm-lib-plt32.d: Ditto.
414         * ld/testsuite/ld-arm/arm-lib.d: Ditto.
415         * ld/testsuite/ld-arm/mixed-app-v5.d: Ditto.
416         * ld/testsuite/ld-arm/mixed-app.d: Ditto.
417         * ld/testsuite/ld-arm/mixed-lib.d: Ditto.
419 2006-05-24  Paul Brook  <paul@codesourcery.com>
421         Backport from mainline.
422         * bfd/elf32-arm.c (put_arm_insn, put_thumb_insn): New functions.
423         (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub,
424         elf32_arm_finish_dynamic_symbol): Use them.
426 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
428         opcodes/
429         * m68k-dis.c (m68k_scan_mask): Add missing return.
431 2006-05-20  Nathan Sidwell  <nathan@codesourcery.com>
433         * binutils/testsuite/binutils-all/objcopy.exp: Skip for uclinux
434         targets.
436 2006-05-15  Paul Brook  <paul@codesourcery.com>
438         Backport from mainline.
439         * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ...
440         (bfd_is_arm_special_symbol_name): ... to this.  Add type argument.
441         Check symbol name is of specified type.
442         * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol,
443         arm_elf_find_function, elf32_arm_output_symbol_hook): Use
444         bfd_is_arm_special_symbol_name.
445         * bfd/bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP,
446         BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER,
447         BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define.
448         (bfd_is_arm_mapping_symbol_name): Remove prototype.
449         (bfd_is_arm_special_symbol_name): Add prototype.
450         * bfd/bfd-in2.h: Regenerate.
451         * gas/config/tc-arm.c (arm_adjust_symtab): Use
452         bfd_is_arm_special_symbol_name.
453         * ld/testsuite/ld-arm/arm-be8.d: New test.
454         * ld/testsuite/ld-arm/arm-be8.s: New test.
455         * ld/testsuite/ld-arm/arm-elf.exp: Add arm-be8.
457 2006-05-12  Carlos O'Donell  <carlos@codesourcery.com>
459         * binutils/doc/binutils.texi: Rename "Index" to "Binutils Index"
461 2006-05-11  Carlos O'Donell  <carlos@codesourcery.com>
463         * bfd/doc/bfd.texinfo: Rename "Index" to "BFD Index"
464         * ld/ld.texinfo: Rename "Index" to "LD Index"
465         * gas/doc/as.texinfo: Rename "Index" to "AS Index"
466         Rename "ABORT" to "ABORT (COFF)"
468 2006-05-06  Joseph S. Myers  <joseph@codesourcery.com>
470         Backport:
471         2006-03-30  Jakub Jelinek  <jakub@redhat.com>
472         * ldmisc.c (vfinfo): Revert 2005-10-05 changes.  If
473         bfd_find_nearest_line succeeded for %C or %D, but filename
474         is NULL, print section+offset at the end.
476 2006-05-05  Julian Brown  <julian@codesourcery.com>
478         * gas/config/tc-arm.c (stdarg.h): include.
479         (arm_it): Add uncond_value field. Add isvec and issingle to operand
480         array.
481         (arm_reg_type): Add REG_TYPE_VFSD (single or double VFP reg) and
482         REG_TYPE_NSDQ (single, double or quad vector reg).
483         (reg_expected_msgs): Update.
484         (BAD_FPU): Add macro for unsupported FPU instruction error.
485         (parse_neon_type): Support 'd' as an alias for .f64.
486         (parse_typed_reg_or_scalar): Support REG_TYPE_VFSD, REG_TYPE_NSDQ
487         sets of registers.
488         (parse_vfp_reg_list): Don't update first arg on error.
489         (parse_neon_mov): Support extra syntax for VFP moves.
490         (operand_parse_code): Add OP_RVSD, OP_RNSDQ, OP_VRSDLST, OP_RVSD_IO,
491         OP_RNSDQ_RNSC, OP_RVC_PSR, OP_APSR_RR, OP_oRNSDQ.
492         (parse_operands): Support isvec, issingle operands fields, new parse
493         codes above.
494         (do_vfp_nsyn_mrs, do_vfp_nsyn_msr): New functions. Support VFP mrs,
495         msr variants.
496         (do_mrs, do_msr, do_t_mrs, do_t_msr): Add support for above.
497         (NEON_ENC_TAB): Add vnmul, vnmla, vnmls, vcmp, vcmpz, vcmpe, vcmpez.
498         (NEON_ENC_SINGLE, NEON_ENC_DOUBLE): Define macros.
499         (NEON_SHAPE_DEF): New macro. Define table of possible instruction
500         shapes.
501         (neon_shape): Redefine in terms of above.
502         (neon_shape_class): New enumeration, table of shape classes.
503         (neon_shape_el): New enumeration. One element of a shape.
504         (neon_shape_el_size): Register widths of above, where appropriate.
505         (neon_shape_info): New struct. Info for shape table.
506         (neon_shape_tab): New array.
507         (neon_type_mask): Add N_F64, N_VFP. Update N_MAX_NONSPECIAL.
508         (neon_check_shape): Rewrite as...
509         (neon_select_shape): New function to classify instruction shapes,
510         driven by new table neon_shape_tab array.
511         (neon_quad): New function. Return 1 if shape should set Q flag in
512         instructions (or equivalent), 0 otherwise.
513         (type_chk_of_el_type): Support F64.
514         (el_type_of_type_chk): Likewise.
515         (neon_check_type): Add support for VFP type checking (VFP data
516         elements fill their containing registers).
517         (do_vfp_cond_or_thumb): Fill in condition field in ARM mode, or 0xE
518         in thumb mode for VFP instructions.
519         (do_vfp_nsyn_opcode): New function. Look up the opcode in argument,
520         and encode the current instruction as if it were that opcode.
521         (try_vfp_nsyn): New. If this looks like a VFP instruction with ARGS
522         arguments, call function in PFN.
523         (do_vfp_nsyn_add_sub, do_vfp_nsyn_mla_mls, do_vfp_nsyn_mul)
524         (do_vfp_nsyn_abs_neg, do_vfp_nsyn_ldm_stm, do_vfp_nsyn_ldr_str)
525         (do_vfp_nsyn_sqrt, do_vfp_nsyn_div, do_vfp_nsyn_nmul)
526         (do_vfp_nsyn_cmp, nsyn_insert_sp, do_vfp_nsyn_push)
527         (do_vfp_nsyn_pop, do_vfp_nsyn_cvt, do_vfp_nsyn_cvtz): New functions.
528         Redirect Neon-syntax VFP instructions to VFP instruction handlers.
529         (do_neon_dyadic_i_su, do_neon_dyadic_i64_su, do_neon_shl_imm)
530         (do_neon_qshl_imm, do_neon_logic, do_neon_bitfield)
531         (neon_dyadic_misc, neon_compare, do_neon_tst, do_neon_qdmulh)
532         (do_neon_fcmp_absolute, do_neon_step, do_neon_sli, do_neon_sri)
533         (do_neon_qshlu_imm, neon_move_immediate, do_neon_mvn, do_neon_ext)
534         (do_neon_rev, do_neon_dup, do_neon_rshift_round_imm, do_neon_trn)
535         (do_neon_zip_uzp, do_neon_sat_abs_neg, do_neon_pair_long)
536         (do_neon_recip_est, do_neon_cls, do_neon_clz, do_neon_cnt)
537         (do_neon_swp): Use neon_select_shape not neon_check_shape. Use
538         neon_quad.
539         (vfp_or_neon_is_neon): New function. Call if a mnemonic shared
540         between VFP and Neon turns out to belong to Neon. Perform
541         architecture check and fill in condition field if appropriate.
542         (do_neon_addsub_if_i, do_neon_mac_maybe_scalar, do_neon_abs_neg)
543         (do_neon_cvt): Add support for VFP variants of instructions.
544         (neon_cvt_flavour): Extend to cover VFP conversions.
545         (do_neon_mov): Rewrite to use neon_select_shape. Add support for VFP
546         vmov variants.
547         (do_neon_ldr_str): Handle single-precision VFP load/store.
548         (do_neon_ld_st_interleave, do_neon_ld_st_lane, do_neon_ld_dup): Use
549         NS_NULL not NS_IGNORE.
550         (opcode_tag): Add OT_csuffixF for operands which either take a
551         conditional suffix, or have 0xF in the condition field.
552         (md_assemble): Add support for OT_csuffixF.
553         (NCE): Replace macro with...
554         (NCE_tag, NCE, NCEF): New macros.
555         (nCE): Replace macro with...
556         (nCE_tag, nCE, nCEF): New macros.
557         (insns): Add support for VFP insns or VFP versions of insns msr, mrs,
558         vsqrt, vdiv, vnmul, vnmla, vnmls, vcmp, vcmpe, vpush, vpop, vcvtz,
559         vmul, vmla, vmls, vadd, vsub, vabs, vneg, vldm, vldmia, vldbdb, vstm,
560         vstmia, vstmdb, vldr, vstr, vcvt, vmov. Group shared VFP/Neon insns
561         together.
563         * gas/testsuite/gas/arm/itblock.s: New file. Helper macro for making
564         all-true IT blocks.
565         * gas/testsuite/gas/arm/neon-cond-bad-inc.s: New test. Make sure
566         unconditional Neon instructions are rejected...
567         * gas/testsuite/gas/arm/neon-cond-bad.s: In ARM mode, and...
568         * gas/testsuite/gas/arm/neon-cond-bad_t2.s: Accepted in Thumb mode
569         (with IT).
570         * gas/testsuite/gas/arm/neon-cond-bad.l: Expected error output in ARM
571         mode.
572         * gas/testsuite/gas/arm/neon-cond-bad.d: Control ARM mode test.
573         * gas/testsuite/gas/arm/neon-cond-bad_t2.d: Expected output in Thumb
574         mode.
575         * gas/testsuite/gas/arm/vfp-neon-syntax-inc.s: Test VFP Neon-style
576         syntax.
577         * gas/testsuite/gas/arm/vfp-neon-syntax.s: ...in ARM mode.
578         * gas/testsuite/gas/arm/vfp-neon-syntax_t2.s: ...and Thumb mode.
579         * gas/testsuite/gas/arm/vfp-neon-syntax.d: Expected output in ARM mode.
580         * gas/testsuite/gas/arm/vfp-neon-syntax_t2.d: Expected output in Thumb
581         mode.
583 2006-05-05  Mark Shinwell  <shinwell@codesourcery.com>
585         * configure: Regenerate.
586         * configure.in: Enable gprof for cross builds.
588 2006-05-03  Julian Brown  <julian@codesourcery.com>
590         * gas/doc/c-arm.texi: Add documentation for .dn/.qn directives.
592 2006-05-03  Paul Brook  <paul@codesourcery.com>
594         * bfd/elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs.
595         (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs.
596         (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
597         * bfd/reloc.c: Ditto.
598         * bfd/bfd-in2.h: Regenerate.
599         * bfd/libbfd.h: Regenerate.
600         * bfd/libcoff.h: Regenerate.
601         * gas/config/tc-arm.c (parse_half): New function.
602         (operand_parse_code): Remove OP_Iffff.  Add OP_HALF.
603         (parse_operands): Ditto.
604         (do_mov16): Reject invalid relocations.
605         (do_t_mov16): Ditto.  Use Thumb reloc numbers.
606         (insns): Replace Iffff with HALF.
607         (md_apply_fix): Add MOVW and MOVT relocs.
608         (tc_gen_reloc): Ditto.
609         * gas/doc/c-arm.texi: Document relocation operators
610         * ld/testsuite/ld-arm/arm-elf.exp: Add arm-movwt.
611         * ld/testsuite/ld-arm/arm-movwt.d: New test.
612         * ld/testsuite/ld-arm/arm-movwt.s: New test.
613         * ld/testsuite/ld-arm/arm.ld: Add .far.
615 2006-05-02  Joseph Myers  <joseph@codesourcery.com>
617         * gas/config/tc-arm.c (do_iwmmxt_wldstbh): Don't multiply offset
618         by 4 here.
619         (md_apply_fix3): Multiply offset by 4 here for
620         BFD_RELOC_ARM_CP_OFF_IMM_S2 and BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
621         * gas/testsuite/gas/arm/iwmmxt.s: Increase offsets for wstrb and
622         wstrh.
623         * gas/testsuite/gas/arm/iwmmxt.d: Update expected results.
624         * gas/testsuite/gas/arm/iwmmxt-bad2.s: Test wstrb, wstrh, wldrb
625         and wldrh.
626         * gas/testsuite/gas/arm/iwmmxt-bad2.l: Update expected error
627         messages.
629 2006-05-01  Paul Brook  <paul@codesourcery.com>
631         * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton
632         bit for R_ARM_REL32.
633         * gas/config/tc-arm.c (arm_optimize_expr): New function.
634         * gas/config/tc-arm.h (md_optimize_expr): Define
635         (arm_optimize_expr): Add prototype.
636         (TC_FORCE_RELOCATION_SUB_SAME): Define.
637         * ld/testsuite/ld-arm/arm-elf.exp: Add thumb-rel32.
638         * ld/testsuite/ld-arm/thumb-rel32.d: New test.
639         * ld/testsuite/ld-arm/thumb-rel32.s: New test.
641 2006-04-29  Paul Brook  <paul@codesourcery.com>
643         * opcodes/arm-dis.c (coprocessor_opcodes): Add %c to unconditional
644         arm instructions.
645         (neon_opcodes): Add conditional execution specifiers.
646         (thumb_opcodes): Ditto.
647         (thumb32_opcodes): Ditto.
648         (arm_conditional): Change 0xe to "al" and add "" to end.
649         (ifthen_state, ifthen_next_state, ifthen_address): New.
650         (IFTHEN_COND): Define.
651         (print_insn_coprocessor, print_insn_neon): Print thumb conditions.
652         (print_insn_arm): Change %c to use new values of arm_conditional.
653         (print_insn_thumb16): Print thumb conditions.  Add %I.
654         (print_insn_thumb32): Print thumb conditions.
655         (find_ifthen_state): New function.
656         (print_insn): Track IT block state.
657         * gas/testsuite/gas/arm/thumb2_bcond.d: Update expected output.
658         * gas/testsuite/gas/arm/thumb32.d: Ditto.
659         * gas/testsuite/gas/arm/vfp1_t2.d: Ditto.
660         * gas/testsuite/gas/arm/vfp1xD_t2.d: Ditto.
661         * binutils/testsuite/binutils-all/arm/objdump.exp: New file.
662         * binutils/testsuite/binutils-all/arm/thumb2-cond.s: New test.
664 2006-04-28  Mark Mitchell  <mark@codesourcery.com>
666         * doc/as.texinfo: Mention that some .type syntaxes are not
667         supported on all architectures.
669 2006-04-27  Richard Sandiford  <richard@codesourcery.com>
671         include/opcodes/
672         * m68k.h (mcf_mask): Define.
674         opcodes/
675         * m68k-opc.c (m68k_opcodes): Fix the masks of the Coldfire fmovemd
676         and fmovem entries.  Put register list entries before immediate
677         mask entries.  Use "l" rather than "L" in the fmovem entries.
678         * m68k-dis.c (match_insn_m68k): Remove the PRIV argument and work it
679         out from INFO.
680         (m68k_scan_mask): New function, split out from...
681         (print_insn_m68k): ...here.  If no architecture has been set,
682         first try printing an m680x0 instruction, then try a Coldfire one.
684 2006-04-27  Richard Sandiford  <richard@codesourcery.com>
686         bfd/
687         * elf32-m68k.c (elf_m68k_pcrel_insn): New structure.
688         (elf_m68k_plt_info): Likewise.
689         (elf_m68k_plt_info): New table.
690         (CFV4E_PLT_ENTRY_SIZE): Rename to...
691         (ISAB_PLT_ENTRY_SIZE): ...this.
692         (CFV4E_FLAG): Delete.
693         (elf_cfv4e_plt0_entry): Rename to...
694         (elf_isab_plt0_entry): ...this.  Adjust comments.  Use (-6,%pc,%d0)
695         for the second instruction too.
696         (elf_cfv4e_plt_entry): Rename to...
697         (elf_isab_plt_entry): ...this.  Adjust comments and use (-6,%pc,%d0).
698         (elf_isab_plt_info): New table.
699         (CPU32_FLAG): Delete.
700         (PLT_CPU32_ENTRY_SIZE): Rename to...
701         (CPU32_PLT_ENTRY_SIZE): ...this.
702         (elf_cpu32_plt0_entry): Update bounds accordingly.
703         (elf_cpu32_plt_entry): Likewise.
704         (elf_cpu32_plt_info): New table.
705         (elf_m68k_link_hash_table): Add a plt_info field.
706         (elf_m68k_link_hash_table_create): Initialize it.
707         (elf_m68k_get_plt_info): New function.
708         (elf_m68k_always_size_sections): Likewise.
709         (elf_m68k_adjust_dynamic_symbol): Use the plt_info hash table field.
710         (elf_m68k_install_pcrel_field): New function.
711         (elf_m68k_finish_dynamic_symbol): Factor code using plt_info and
712         elf_m68k_install_pcrel_field.
713         (elf_m68k_finish_dynamic_sections): Likewise.
714         (elf_m68k_plt_sym_val): Use elf_m68k_get_plt_info.
715         (elf_backend_always_size_sections): Define.
717 2006-04-26  Julian Brown  <julian@codesourcery.com>
719         * gas/config/tc-arm.c (parse_vfp_reg_list): Improve register bounds
720         checking.
721         (do_neon_mov): Enable several VMOV variants for VFP. Add suitable
722         architecture version checks.
723         (insns): Allow overlapping instructions to be used in VFP mode.
725         * gas/testsuite/gas/arm/vfp-neon-overlap.s: New test. Overlapping
726         VFP/Neon instructions.
727         * gas/testsuite/gas/arm/vfp-neon-overlap.d: Expected output of above.
728         * gas/testsuite/gas/arm/vfp1xD.d: Test for fldmx/fstmx.
729         * gas/testsuite/gas/arm/vfp1xD_t2.d: Likewise.
730         * gas/testsuite/gas/arm/vfpv3-32drs.d: Likewise.
732         * opcodes/arm-dis.c (coprocessor_opcodes): Don't interpret fldmx/fstmx
733         as vldm/vstm.
735 2006-04-26  Julian Brown  <julian@codesourcery.com>
737         * gas/config/tc-arm.c (neon_is_quarter_float): Move, and rename to...
738         (is_quarter_float): Rename from above. Simplify slightly.
739         (parse_qfloat_immediate): Parse a "quarter precision" floating-point
740         number.
741         (parse_neon_mov): Parse floating-point constants.
742         (neon_qfloat_bits): Fix encoding.
743         (neon_cmode_for_move_imm): Tweak to use floating-point encoding in
744         preference to integer encoding when using the F32 type.
746         * gas/testsuite/gas/arm/neon-const.s: New testcase. Neon floating-point
747         constants.
748         * gas/testsuite/gas/arm/neon-const.d: Expected output of above.
749         * gas/testsuite/gas/arm/neon-cov.d: Expect floating-point disassembly
750         for VMOV.F32.
752         * opcodes/arm-dis.c (print_insn_neon): Disassemble floating-point
753         constant VMOV.
755 2006-04-24  Julian Brown  <julian@codesourcery.com>
757         * libiberty/floatformat.c (floatformat_to_double): Fix (biased)
758         exponent=0 case.
760 2006-04-12  Carlos O'Donell  <carlos@codesourcery.com>
762         * Makefile.tpl: Add install-html to install target deps.
763         * Makefile.in: Regenerate.
765 2006-04-07  Julian Brown  <julian@codesourcery.com>
767         * gas/config/tc-arm.c (neon_el_type): Make NT_invtype be the zero (so
768         zero-initialising structures containing it will lead to invalid
769         types).
770         (arm_it): Add vectype to each operand.
771         (NTA_HASTYPE, NTA_HASINDEX): Constants used in neon_typed_alias
772         defined field.
773         (neon_typed_alias): New structure. Extra information for typed
774         register aliases.
775         (reg_entry): Add neon type info field.
776         (arm_reg_parse): Remove RTYPE argument (revert to previous arguments).
777         Break out alternative syntax for coprocessor registers, etc. into...
778         (arm_reg_alt_syntax): New function. Alternate syntax handling broken
779         out from arm_reg_parse.
780         (parse_neon_type): Move. Return SUCCESS/FAIL.
781         (first_error): New function. Call to ensure first error which occurs
782         is reported.
783         (parse_neon_operand_type): Parse exactly one type.
784         (NEON_ALL_LANES, NEON_INTERLEAVE_LANES): Move.
785         (parse_typed_reg_or_scalar): New function. Handle core of both
786         arm_typed_reg_parse and parse_scalar.
787         (arm_typed_reg_parse): Parse a register with an optional type.
788         (NEON_SCALAR_REG, NEON_SCALAR_INDEX): Extract parts of parse_scalar
789         result.
790         (parse_scalar): Parse a Neon scalar with optional type.
791         (parse_reg_list): Use first_error.
792         (parse_vfp_reg_list): Use arm_typed_reg_parse instead of arm_reg_parse.
793         (neon_alias_types_same): New function. Return true if two (alias) types
794         are the same.
795         (parse_neon_el_struct_list): Use parse_typed_reg_or_scalar. Return type
796         of elements.
797         (insert_reg_alias): Return new reg_entry not void.
798         (insert_neon_reg_alias): New function. Insert type/index information as
799         well as register for alias.
800         (create_neon_reg_alias): New function. Parse .dn/.qn directives and
801         make typed register aliases accordingly.
802         (s_dn, s_qn): New functions. Handle incorrectly used .dn/.qn at start
803         of line.
804         (s_unreq): Delete type information if present.
805         (s_arm_unwind_save_mmxwr): Remove arg 3 from arm_reg_parse calls.
806         (s_arm_unwind_save_mmxwcg): Likewise.
807         (s_arm_unwind_movsp): Likewise.
808         (s_arm_unwind_setfp): Likewise.
809         (parse_shift): Likewise.
810         (parse_shifter_operand): Likewise.
811         (parse_address): Likewise.
812         (parse_tb): Likewise.
813         (tc_arm_regname_to_dw2regnum): Likewise.
814         (md_pseudo_table): Add dn, qn.
815         (parse_neon_mov): Handle typed operands.
816         (parse_operands): Likewise.
817         (neon_type_mask): Add N_SIZ.
818         (N_ALLMODS): New macro.
819         (neon_check_shape): Fix typo in NS_DDD_QQQ case. Use first_error.
820         (el_type_of_type_chk): Add some safeguards.
821         (modify_types_allowed): Fix logic bug.
822         (neon_check_type): Handle operands with types.
823         (neon_three_same): Remove redundant optional arg handling.
824         (do_neon_dyadic_i64_su, do_neon_shl_imm, do_neon_qshl_imm)
825         (do_neon_logic, do_neon_qdmulh, do_neon_fcmp_absolute)
826         (do_neon_step): Adjust accordingly.
827         (neon_cmode_for_logic_imm): Use first_error.
828         (do_neon_bitfield): Call neon_check_type.
829         (neon_dyadic): Rename to...
830         (neon_dyadic_misc): ...this. New name for neon_dyadic. Add bitfield to
831         allow modification of type of the destination.
832         (do_neon_dyadic_if_su, do_neon_dyadic_if_i, do_neon_dyadic_if_i_d)
833         (do_neon_addsub_if_i, do_neon_mul): Adjust accordingly.
834         (do_neon_compare): Make destination be an untyped bitfield.
835         (neon_scalar_for_mul): Use NEON_SCALAR_REG, NEON_SCALAR_INDEX.
836         (neon_mul_mac): Return early in case of errors.
837         (neon_move_immediate): Use first_error.
838         (neon_mac_reg_scalar_long): Fix type to include scalar.
839         (do_neon_dup): Likewise.
840         (do_neon_mov): Likewise (in several places).
841         (do_neon_tbl_tbx): Fix type.
842         (do_neon_ld_st_interleave, neon_alignment_bit, do_neon_ld_st_lane)
843         (do_neon_ld_dup): Exit early in case of errors and/or use first_error.
844         (opcode_lookup): Update for parse_neon_type returning SUCCESS/FAIL.
845         Handle .dn/.qn directives.
846         (REGDEF): Add zero for reg_entry neon field.
848         * gas/testsuite/gas/arm/neon-psyn.s: Basic test of programmers syntax.
849         * gas/testsuite/gas/arm/neon-psyn.d: Expected output of above.
851 2006-04-03  Carlos O'Donell  <carlos@codesourcery.com>
853         * Makefile.tpl: Add install-html target.
854         * Makefile.def: Add install-html target.
855         * Makefile.in: Regenerate.
856         * configure.in: Add --with-datarootdir, --with-docdir,
857         and --with-htmldir options.
858         * configure: Regenerate.
859         * opcodes/Makefile.am: Add install-html target.
860         * opcodes/Makefile.in: Regenerate.
861         * libiberty/Makefile.in: Add install-html, install-html-am, and
862         install-html-recursive targets. Define mkdir_p and 
863         NORMAL_INSTALL. 
864         * libiberty/configure.ac: AC_SUBST datarootdir, docdir, htmldir.
865         * libiberty/configure: Regenerate.
866         * libiberty/testsuite/Makefile.in: Add install-html and html targets.
867         * ld/Makefile.am: Add install-html, install-html-am, and
868         install-html-recursive targets.
869         * ld/Makefile.in: Regenerate.
870         * ld/configure.in: AC_SUBST datarootdir, docdir, htmldir.
871         * ld/configure: Regenerate.
872         * ld/po/Make-in: Add install-html target.
873         * intl/Makefile.in: Add html info and dvi and install-html to .PHONY
874         Add install-html target.
875         * gprof/po/Make-in: Add install-html target.
876         * gprof/Makefile.am: Add install-html, install-html-am and 
877         install-html-recursive targets. 
878         * gprof/Makefile.in: Regenerate.
879         * gprof/configure.in: AC_SUBST datarootdir, docdir, htmldir.
880         * gprof/configure: Regenerate.
881         * gas/po/Make-in: Add install-html target.
882         * gas/Makefile.am: Add install-html and install-html-recursive targets.
883         * gas/Makefile.in: Regenerate.
884         * gas/configure.in: AC_SUBST datarootdir, docdir, htmldir.
885         * gas/configure: Regenerate.
886         * gas/doc/Makefile.am: Add install-html and install-html-am targets.
887         * gas/doc/Makefile.in: Regenerate.
888         * binutils/po/Make-in: Add install-html target.
889         * binutils/Makefile.am: Add install-html and install-html-recursive targets.
890         * binutils/Makefile.in: Regenerate.
891         * binutils/configure.in: AC_SUBST datarootdir, docdir and htmldir.
892         * binutils/configure: Regenerate.
893         * binutils/doc/Makefile.am: Add install-html and install-html-am targets.
894         * binutils/doc/Makefile.in: Regenerate.
895         * bfd/po/Make-in: Add install-html target.
896         * bfd/Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
897         htmldir. Add install-html and install-html-recursive targets.
898         * bfd/Makefile.in: Regenerate.
899         * bfd/configure.in: AC_SUBST for datarootdir, docdir and htmldir.
900         * bfd/configure: Regenerate.
901         * bfd/doc/Makefile.am: Add install-html and install-html-am targets. 
902         Define datarootdir, docdir and htmldir.
903         * bfd/doc/Makefile.in: Regenerate.
904         * etc/Makefile.in: Add install-html target. Add htmldir,
905         docdir and datarootdir.
906         * etc/configure.texi: Document install-html target.
907         * etc/configure.in: AC_SUBST datarootdir, docdir, htmldir.
908         * etc/configure: Regenerate.
910 2005-04-03  Julian Brown  <julian@codesourcery.com>
911             Nathan Sidwell  <nathan@codesourcery.com>
913         * binutils/readelf.c (arm_attr_tag_VFP_arch): Add VFPv3.
914     
915         * gas/config/tc-arm.c (limits.h): Include.
916         (fpu_arch_vfp_v3, fpu_vfp_ext_v3, fpu_neon_ext_v1)
917         (fpu_vfp_v3_or_neon_ext): Declare constants.
918         (neon_el_type): New enumeration of types for Neon vector elements.
919         (neon_type_el): New struct. Define type and size of a vector element.
920         (NEON_MAX_TYPE_ELS): Define constant. The maximum number of types per
921         instruction.
922         (neon_type): Define struct. The type of an instruction.
923         (arm_it): Add 'vectype' for the current instruction.
924         (isscalar, immisalign, regisimm, isquad): New predicates for operands.
925         (vfp_sp_reg_pos): Rename to...
926         (vfp_reg_pos): ...this, and add VFP_REG_Dd, VFP_REG_Dm, VFP_REG_Dn
927         tags.
928         (arm_reg_type): Add REG_TYPE_NQ (Neon Q register) and REG_TYPE_NDQ
929         (Neon D or Q register).
930         (reg_expected_msgs): Sync with above. Allow VFD to mean VFP or Neon
931         D register.
932         (GE_OPT_PREFIX_BIG): Define constant, for use in...
933         (my_get_expression): Allow above constant as argument to accept
934         64-bit constants with optional prefix.
935         (arm_reg_parse): Add extra argument to return the specific type of
936         register in when either a D or Q register (REG_TYPE_NDQ) is requested.
937         Can be NULL.
938         (parse_scalar): New function. Parse Neon scalar (vector reg and index).
939         (parse_reg_list): Update for new arm_reg_parse args.
940         (parse_vfp_reg_list): Allow parsing of Neon D/Q register lists.
941         (parse_neon_el_struct_list): New function. Parse element/structure
942         register lists for VLD<n>/VST<n> instructions.
943         (s_arm_unwind_save_vfp): Update for new parse_vfp_reg_list args.
944         (s_arm_unwind_save_mmxwr): Likewise.
945         (s_arm_unwind_save_mmxwcg): Likewise.
946         (s_arm_unwind_movsp): Likewise.
947         (s_arm_unwind_setfp): Likewise.
948         (parse_big_immediate): New function. Parse an immediate, which may
949         be 64 bits wide. Put results in inst.operands[i].
950         (parse_shift): Update for new arm_reg_parse args.
951         (parse_address): Likewise. Add parsing of alignment specifiers.
952         (parse_neon_mov): Parse the operands of a VMOV instruction.
953         (operand_parse_code): Add OP_RND, OP_RNQ, OP_RNDQ, OP_RNSC,
954         OP_NRDLST, OP_NSTRLST, OP_NILO, OP_RNDQ_I0, OP_RR_RNSC,
955         OP_RNDQ_RNSC, OP_RND_RNSC, OP_VMOV, OP_RNDQ_IMVNb, OP_RNDQ_I63b,
956         OP_I0, OP_I16z, OP_I32z, OP_I64, OP_I64z, OP_oI32b, OP_oRND,
957         OP_oRNQ, OP_oRNDQ.
958         (parse_operands): Handle new codes above.
959         (encode_arm_vfp_sp_reg): Rename to...
960         (encode_arm_vfp_reg): ...this. Handle D regs (0-31) too. Complain if
961         selected VFP version only supports D0-D15.
962         (do_vfp_sp_monadic, do_vfp_sp_dyadic, do_vfp_sp_compare_z)
963         (do_vfp_dp_sp_cvt, do_vfp_reg_from_sp, do_vfp_reg2_from_sp2)
964         (do_vfp_sp_from_reg, do_vfp_sp2_from_reg2, do_vfp_sp_ldst)
965         (do_vfp_dp_ldst, vfp_sp_ldstm, vfp_dp_ldstm): Update for new
966         encode_arm_vfp_reg name, and allow 32 D regs.
967         (do_vfp_dp_rd_rm, do_vfp_dp_rn_rd, do_vfp_dp_rd_rn)
968         (do_vfp_dp_rd_rn_rm, do_vfp_rm_rd_rn): New functions to encode VFP
969         insns allowing 32 D regs.
970         (do_vfp_sp_const, do_vfp_dp_const, vfp_conv, do_vfp_sp_conv_16)
971         (do_vfp_dp_conv_16, do_vfp_sp_conv_32, do_vfp_dp_conv_32): Handle
972         constant-load and conversion insns introduced with VFPv3.
973         (neon_tab_entry): New struct.
974         (NEON_ENC_TAB): Bit patterns for overloaded Neon instructions, and
975         those which are the targets of pseudo-instructions.
976         (neon_opc): Enumerate opcodes, use as indices into...
977         (neon_enc_tab): ...this. Hold data from NEON_ENC_TAB.
978         (NEON_ENC_INTEGER, NEON_ENC_ARMREG, NEON_ENC_POLY, NEON_ENC_FLOAT)
979         (NEON_ENC_SCALAR, NEON_ENC_IMMED, NEON_ENC_INTERLV, NEON_ENC_LANE)
980         (NEON_ENC_DUP): Define meaningful helper macros to look up values in
981         neon_enc_tab.
982         (neon_shape): Enumerate shapes (permitted register widths, etc.) for
983         Neon instructions.
984         (neon_type_mask): New. Compact type representation for type
985         checking.
986         (N_SU_ALL, N_SU_32, N_SU_16_64, N_SUF_32, N_I_ALL, N_IF_32): Common
987         permitted type combinations.
988         (N_IGNORE_TYPE): New macro.
989         (neon_check_shape): New function. Check an instruction shape for
990         multiple alternatives. Return the specific shape for the current
991         instruction.
992         (neon_modify_type_size): New function. Modify a vector type and
993         size, depending on the bit mask in argument 1.
994         (neon_type_promote): New function. Convert a given "key" type (of an
995         operand) into the correct type for a different operand, based on a bit
996         mask.
997         (type_chk_of_el_type): New function. Convert a type and size into the
998         compact representation used for type checking.
999         (el_type_of_type_ckh): New function. Reverse of above (only when a
1000         single bit is set in the bit mask).
1001         (modify_types_allowed): New function. Alter a mask of allowed types
1002         based on a bit mask of modifications.
1003         (neon_check_type): New function. Check the type of the current
1004         instruction against the variable argument list. The "key" type of the
1005         instruction is returned.
1006         (neon_dp_fixup): New function. Fill in and modify instruction bits for
1007         a Neon data-processing instruction depending on whether we're in ARM
1008         mode or Thumb-2 mode.
1009         (neon_logbits): New function.
1010         (neon_three_same, neon_two_same, do_neon_dyadic_i_su)
1011         (do_neon_dyadic_i64_su, neon_imm_shift, do_neon_shl_imm)
1012         (do_neon_qshl_imm, neon_cmode_for_logic_imm)
1013         (neon_bits_same_in_bytes, neon_squash_bits, neon_is_quarter_float)
1014         (neon_qfloat_bits, neon_cmode_for_move_imm, neon_write_immbits)
1015         (neon_invert_size, do_neon_logic, do_neon_bitfield, neon_dyadic)
1016         (do_neon_dyadic_if_su, do_neon_dyadic_if_su_d, do_neon_dyadic_if_i)
1017         (do_neon_dyadic_if_i_d, do_neon_addsub_if_i, neon_exchange_operands)
1018         (neon_compare, do_neon_cmp, do_neon_cmp_inv, do_neon_ceq)
1019         (neon_scalar_for_mul, neon_mul_mac, do_neon_mac_maybe_scalar)
1020         (do_neon_tst, do_neon_mul, do_neon_qdmulh, do_neon_fcmp_absolute)
1021         (do_neon_fcmp_absolute_inv, do_neon_step, do_neon_abs_neg)
1022         (do_neon_sli, do_neon_sri, do_neon_qshlu_imm, do_neon_qmovn)
1023         (do_neon_qmovun, do_neon_rshift_sat_narrow)
1024         (do_neon_rshift_sat_narrow_u, do_neon_movn, do_neon_rshift_narrow)
1025         (do_neon_shll, neon_cvt_flavour, do_neon_cvt, neon_move_immediate)
1026         (do_neon_mvn, neon_mixed_length, do_neon_dyadic_long, do_neon_abal)
1027         (neon_mac_reg_scalar_long, do_neon_mac_maybe_scalar_long)
1028         (do_neon_dyadic_wide, do_neon_vmull, do_neon_ext, do_neon_rev)
1029         (do_neon_dup, do_neon_mov, do_neon_rshift_round_imm, do_neon_movl)
1030         (do_neon_trn, do_neon_zip_uzp, do_neon_sat_abs_neg)
1031         (do_neon_pair_long, do_neon_recip_est, do_neon_cls, do_neon_clz)
1032         (do_neon_cnt, do_neon_swp, do_neon_tbl_tbx, do_neon_ldm_stm)
1033         (do_neon_ldr_str, do_neon_ld_st_interleave, neon_alignment_bit)
1034         (do_neon_ld_st_lane, do_neon_ld_dup, do_neon_ldx_stx): New
1035         functions. Neon bit encoding and encoding helpers.
1036         (parse_neon_type): New function. Parse Neon type specifier.
1037         (opcode_lookup): Allow parsing of Neon type specifiers.
1038         (REGNUM2, REGSETH, REGSET2): New macros.
1039         (reg_names): Add new VFPv3 and Neon registers.
1040         (NUF, nUF, NCE, nCE): New macros for opcode table.
1041         (insns): More VFP registers allowed in fcpyd, fmdhr, fmdlr, fmrdh,
1042         fmrdl, fabsd, fnegd, fsqrtd, faddd, fsubd, fmuld, fdivd, fmacd,
1043         fmscd, fnmuld, fnmacd, fnmscd, fcmpd, fcmpzd, fcmped, fcmpezd,
1044         fmdrr, fmrrd. Add Neon instructions vaba, vhadd, vrhadd, vhsub,
1045         vqadd, vqsub, vrshl, vqrshl, vshl, vqshl{u}, vand, vbic, vorr, vorn,
1046         veor, vbsl, vbit, vbif, vabd, vmax, vmin, vcge, vcgt, vclt, vcle,
1047         vceq, vpmax, vpmin, vmla, vmls, vpadd, vadd, vsub, vtst, vmul,
1048         vqdmulh, vqrdmulh, vacge, vacgt, vaclt, vacle, vrecps, vrsqrts,
1049         vabs, vneg, v{r}shr,  v{r}sra, vsli, vsri, vqshrn, vq{r}shr{u}n,
1050         v{r}shrn, vshll, vcvt, vmov, vmvn, vabal, vabdl, vaddl, vsubl,
1051         vmlal, vmlsl, vaddw, vsubw, v{r}addhn, v{r}subhn, vqdmlal, vqdmlsl,
1052         vqdmull, vmull, vext, vrev64, vrev32, vrev16, vdup, vmovl, v{q}movn,
1053         vzip, vuzp, vqabs, vqneg, vpadal, vpaddl, vrecpe, vrsqrte, vcls,
1054         vclz, vcnt, vswp, vtrn, vtbl, vtbx, vldm, vstm, vldr, vstr,
1055         vld[1234], vst[1234], fconst[sd], f[us][lh]to[sd], fto[us][lh][sd].
1056         (tc_arm_regname_to_dw2regnum): Update for arm_reg_parse args.
1057         (arm_cpu_option_table): Add Neon and VFPv3 to Cortex-A8.
1058         (arm_option_cpu_value): Add vfp3 and neon.
1059         (aeabi_set_public_attributes): Support VFPv3 and NEON attributes.
1060         Fix VFPv1 attribute.
1062         * gas/testsuite/gas/arm/copro.s: Avoid ldcl which encodes as a bad Neon
1063         instruction.
1064         * gas/testsuite/gas/arm/copro.d: Update accordingly.
1065         * gas/testsuite/gas/arm/neon-cond.s: New test. Conditional Neon opcodes
1066         in ARM mode.
1067         * gas/testsuite/gas/arm/neon-cond.d: Expected results of above.
1068         * gas/testsuite/gas/arm/neon-cov.s: New test. Coverage of Neon
1069         instructions.
1070         * gas/testsuite/gas/arm/neon-cov.d: Expected results of above.
1071         * gas/testsuite/gas/arm/neon-ldst-es.s: New test. Element and structure
1072         loads and stores.
1073         * gas/testsuite/gas/arm/neon-ldst-es.d: Expected results of above.
1074         * gas/testsuite/gas/arm/neon-ldst-rm.s: New test. Single and multiple
1075         register loads and stores.
1076         * gas/testsuite/gas/arm/neon-ldst-rm.d: Expected results of above.
1077         * gas/testsuite/gas/arm/neon-omit.s: New test. Omission of optional
1078         operands.
1079         * gas/testsuite/gas/arm/neon-omit.d: Expected results of above.
1080         * gas/testsuite/gas/arm/vfp1.d: Expect Neon syntax for some VFP
1081         instructions.
1082         * gas/testsuite/gas/arm/vfp1_t2.d: Likewise.
1083         * gas/testsuite/gas/arm/vfp1xD.d: Likewise.
1084         * gas/testsuite/gas/arm/vfp1xD_t2.d: Likewise.
1085         * gas/testsuite/gas/arm/vfp2.d: Likewise.
1086         * gas/testsuite/gas/arm/vfp2_t2.d: Likewise.
1087         * gas/testsuite/gas/arm/vfp3-32drs.s: New test. Extended D register
1088         range for VFP instructions.
1089         * gas/testsuite/gas/arm/vfp3-32drs.d: Expected results of above.
1090         * gas/testsuite/gas/arm/vfp3-const-conv.s: New test. VFPv3
1091         constant-load and conversion instructions.
1092         * gas/testsuite/gas/arm/vfp3-const-conv.d: Expected results of above.
1094         * include/opcode/arm.h (FPU_VFP_EXT_V3): Define constant.
1095         (FPU_NEON_EXT_V1): Likewise.
1096         (FPU_VFP_HARD): Update.
1097         (FPU_VFP_V3): Define macro.
1098         (FPU_ARCH_VFP_V3, FPU_ARCH_VFP_V3_PLUS_NEON_V1): Define macros.
1100         * opcodes/arm-dis.c (coprocessor_opcodes): Add %A, %B, %k,
1101         convert %<code>[zy] into %[zy]<code>.  Expand meaning of
1102         %<bitfield>['`?].
1103         Add unified load/store instruction names.
1104         (neon_opcode_table): New.
1105         (arm_opcodes): Expand meaning of %<bitfield>['`?].
1106         (arm_decode_bitfield): New.
1107         (print_insn_coprocessor): Add pc argument. Add %A & %B specifiers.
1108         Use arm_decode_bitfield and adjust numeric specifiers.
1109         Adjust %z & %y.
1110         (print_insn_neon): New.
1111         (print_insn_arm): Adjust print_insn_coprocessor call. Call
1112         print_insn_neon. Use arm_decode_bitfield and adjust numeric specifiers.
1113         (print_insn_thumb32): Likewise.
1115 2005-04-01  Paul Brook  <paul@codesourcery.com>
1117         * config/tc-arm.c (arm_fix_adjustable): Return 0 for function symbols.
1119 2006-03-30  Mark Mitchell <mark@codesourcery.com>
1121         * libiberty/configure.ac: Add cygpath for mingw hosts.
1122         * libiberty.configure: Rebuilt.
1123         * libiberty/Makefile.in: Add cygpath.
1124         * libiberty/cygpath.c: New.
1126 2006-03-30  Jim Blandy  <jimb@codesourcery.com>
1128         * include/libiberty.h (pex_write_input): New declaration.
1130         * libiberty/pex-common.c (pex_write_input): New function.
1131         * libiberty/pexecute.txh (pex_write_input): Document it.
1132         * libiberty/pex-common.h (struct pex_funcs): New function ptr fdopenw.
1133         * libiberty/pex-unix.c (pex_unix_fdopenw): New function.
1134         (funcs): List it as our fdopenw function.
1135         * libiberty/pex-win32.c (pex_win32_fdopenw): New function.
1136         (funcs): List it as our fdopenw function.
1137         * libiberty/pex-djgpp.c (funcs): Leave fdopenw null.
1138         * libiberty/pex-msdos (funcs): Same.
1139         * libiberty/functions.texi: Regenerated.
1141         * libiberty/pex-common.h (struct pex_obj): Doc fixes.
1143         * libiberty/functions.texi: Regenerate.
1145 2006-03-27  Mark Mitchell  <mark@codesourcery.com>
1147         * libiberty/pex-win32.c (pex_win32_exec_child): Close stdout/stderr
1148         in parent.
1150 2006-03-26  Nathan Sidwell  <nathan@codesourcery.com>
1152         * gas/config/tc-m68k.c (m68k_init_arch): Move checking of
1153         cfloat/m68881 to correct architecture before using it.
1155 2006-03-21  Paul Brook  <paul@codesourcery.com>
1157         * gas/config/tc-arm.c (md_apply_fix): Fix typo in offset mask.
1159 2006-03-21  Nathan Sidwell  <nathan@codesourcery.com>
1161         * gas/config/tc-m68k.c (find_cf_chip): Merge into ...
1162         (m68k_ip): ... here.  Use for all chips.  Protect against buffer
1163         overrun and avoid excessive copying.
1165         * gcc/config/tc-m68k.c (m68000_control_regs, m68010_control_regs,
1166         m68020_control_regs, m68040_control_regs, m68060_control_regs,
1167         mcf_control_regs, mcf5208_control_regs, mcf5213_control_regs,
1168         mcf5329_control_regs, mcf5249_control_regs, mcf528x_control_regs,
1169         mcfv4e_control_regs, m68010_control_regs): Rename and reorder to ...
1170         (m68000_ctrl, m68010_ctrl, m68020_ctrl, m68040_ctrl, m68060_ctrl,
1171         mcf_ctrl, mcf5208_ctrl, mcf5213_ctrl, mcf5235_ctrl, mcf5249_ctrl, 
1172         mcf5216_ctrl, mcf5250_ctrl, mcf5271_ctrl, mcf5272_ctrl,
1173         mcf5282_ctrl, mcfv4e_ctrl): ... these.
1174         (mcf5275_ctrl, mcf5329_ctrl, mcf5373_ctrl): New.
1175         (struct m68k_cpu): Change chip field to control_regs.
1176         (current_chip): Remove.
1177         (control_regs): New.
1178         (m68k_archs, m68k_extensions): Adjust.
1179         (m68k_cpus): Reorder to be in cpu number order.  Adjust.
1180         (CPU_ALLOW_MC, CPU_ALLOW_NEGATION): Remove.
1181         (find_cf_chip): Reimplement for new organization of cpu table.
1182         (select_control_regs): Remove.
1183         (mri_chip): Adjust.
1184         (struct save_opts): Save control regs, not chip.
1185         (s_save, s_restore): Adjust.
1186         (m68k_lookup_cpu): Give deprecated warning when necessary.
1187         (m68k_init_arch): Adjust.
1188         (md_show_usage): Adjust for new cpu table organization.
1189         * include/opcode/m68k.h (cpu_m68k, cpu_cf, cpu_m68000, cpu_m68008,
1190         cpu_m68010, cpu_m68020, cpu_m68ec030, cpu_m68040, cpu_m68060,
1191         cpu_m68851, cpu_m68881, cpu_m68882, cpu_cpu32, cpu_cf5200, cpu_cf5206e,
1192         cpu_cf5208, cpu_cf521x, cpu_cf5213, cpu_cf5249, cpu_cf528x,
1193         cpu_cf5307, cpu_cf5329, cpu_cf5407, cpu_cf547x, cpu_cf548x): Remove.
1195 2006-03-20  Mark Mitchell  <mark@codesourcery.com>
1197         * libiberty/pex-win32.c (<errno.h>): Include.
1198         (fix_argv): Remove.
1199         (argv_to_cmdline): New function.
1200         (std_suffixes): New variable.
1201         (no_suffixes): Likewise.
1202         (find_executable): New function.
1203         (win32_spawn): Likewise.
1204         (spawn_script): Use win32_spawn instead of _spawnv[p].
1205         (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
1206         (pex_win32_wait): Likewise.
1208 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
1210         * bfd/cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
1211         incompatible.  Likewise MAC and EMAC code.
1212         * bfd/elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
1213         bfd_get_compatible to set the new bfd architecture.  Rely on it
1214         to detect incompatibilities.
1215         * gas/config/tc-m68k.c (m68k_cpus): Change cpu_cf5208 entries to use
1216         mcfemac instead of mcfmac.
1217         * ld/testsuite/ld-m68k/merge-error-1a.s,
1218         * ld/testsuite/ld-m68k/merge-error-1b.s,
1219         * ld/testsuite/ld-m68k/merge-error-1a.d,
1220         * ld/testsuite/ld-m68k/merge-error-1b.d,
1221         * ld/testsuite/ld-m68k/merge-error-1c.d,
1222         * ld/testsuite/ld-m68k/merge-error-1d.d,
1223         * ld/testsuite/ld-m68k/merge-error-1e.d,
1224         * ld/testsuite/ld-m68k/merge-ok-1a.d,
1225         * ld/testsuite/ld-m68k/merge-ok-1b.d: New tests.
1226         * ld/testsuite/ld-m68k/m68k.exp: Run them.
1228 2006-03-20  Paul Brook  <paul@codesourcery.com>
1230         * gas/config/tc-arm.c (insns): Correct opcodes for ldrbt and strbt.
1231         * gas/testsuite/gas/arm/thumb32.d: Correct expected output.
1233 2006-03-20  Paul Brook  <paul@codesourcery.com>
1235         * gas/config/tc-arm.c (parse_operands): Set default error message.
1237 2006-03-20  Paul Brook  <paul@codesourcery.com>
1239         * gas/config/tc-arm.c (parse_tb): Set inst.error before returning FAIL.
1241 2006-03-20  Paul Brook  <paul@codesourcery.com>
1243         * gas/config/tc-arm.c (md_apply_fix): Set H bit on blx instruction.
1245         * gas/testsuite/gas/arm/blx-local.d: New test.
1246         * gas/testsuite/gas/arm/blx-local.d: New test.
1248 2006-03-20  Paul Brook  <paul@codesourcery.com>
1250         * gas/config/tc-arm.c (THUMB2_LOAD_BIT): Define.
1251         (move_or_literal_pool): Handle Thumb-2 instructions.
1252         (do_t_ldst): Call move_or_literal_pool for =N addressing modes.
1254         * gas/testsuite/gas/arm/thumb2_pool.d: New test.
1255         * gas/testsuite/gas/arm/thumb2_pool.s: New test.