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