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