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