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