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