* config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
[platform/upstream/binutils.git] / gas / ChangeLog
1 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
2
3         * config/atof-vax.c (atof_vax_sizeof): Change return type to unsigned.
4         (md_atof): Make number_of_chars unsigned.  Revert last change.
5         * config/tc-or32.c (md_apply_fix): Delete bogus assertions.
6         * config/tc-sh.c (sh_optimize_expr): Only define for OBJ_ELF.
7         * config/tc-sh.h (md_optimize_expr): Likewise.
8         * config/tc-sh64.c (shmedia_md_pcrel_from_section): Delete bogus
9         assertion.
10         * config/tc-xtensa.c (convert_frag_immed_finish_loop): Likewise.
11
12 2007-04-21  Nick Clifton  <nickc@redhat.com>
13
14         * config/atof-vax.c (md_atof): Fix comparison inside know().
15
16         * config/tc-ia64.c (emit_one_bundle): Fix typo.
17
18 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
19
20         * expr.c (expr): Assert on rankarg, not rank which can be unsigned.
21         * read.c (read_a_source_file): Remove buffer_limit[-1] assertion.
22         Don't skip over NUL char.
23         (pseudo_set): Set X_op for registers to O_register.
24         * symbols.c (symbol_clone): Remove assertion that sym is defined.
25         (resolve_symbol_value): Resolve O_register symbols.
26         * config/tc-i386.c (parse_real_register): Don't use i386_float_regtab.
27         Instead find st(0) by hash lookup.
28         * config/tc-ppc.c (ppc_macro): Warning fix.
29
30         * as.h (ENABLE_CHECKING): Default define to 0.
31         (know): Assert if ENABLE_CHECKING.
32         (struct relax_type): Remove superfluous declaration.
33         * configure.in (--enable-checking): New.
34         * configure: Regenerate.
35         * config.in: Regenerate.
36         * config/tc-ppc.c (ppc_setup_opcodes): Do checks when ENABLE_CHECKING.
37         Check for duplicate powerpc_operands entries.
38
39 2007-04-20  Nathan Sidwell  <nathan@codesourcery.com>
40
41         * config/tc-m68k.c (mcf5253_ctrl): New.
42         (mcf52223_ctrl): New.
43         (m68k_cpus): Add 5253, 52221, 52223.
44
45         * config/m68k-parse.h (RAMBAR_ALT): New.
46         * config/tc-m68k.c (mcf5206_ctrl, mcf5307_ctrl): New.
47         (mcf_ctrl, mcf5208_ctrl, mcf5210a_ctrl, mcf5213_ctrl, mcf52235_ctrl,
48         mcf5225_ctrl, mcf5235_ctrl, mcf5271_ctrl, mcf5275_ctrl,
49         mcf5282_ctrl, mcf5329_ctrl, mcf5373_ctrl, mcfv4e_ctrl,
50         mcf5475_ctrl, mcf5485_ctrl): Add RAMBAR synonym for
51         RAMBAR1.
52         (mcf5272_ctrl): Add RAMBAR0, replace add RAMBAR with RAMBAR_ALT.
53         (m68k_cpus): Adjust 5206, 5206e & 5307 entries.
54         (m68k_ip) <Case J>: Detect when RAMBAR_ALT should be used.  Add it
55         to control register mapping.
56
57 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
58
59         * messages.c (as_internal_value_out_of_range): Fix typo in
60         error message.  Return after printing domain error.
61         * config/tc-ppc.c (ppc_insert_operand): Preserve low zero bits
62         in max when shifting right.
63
64 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
65
66         * messages.c (as_internal_value_out_of_range): Extend to report
67         errors for values with invalid low bits set.
68         * config/tc-ppc.c (ppc_setup_opcodes): Check powerpc_operands bitm
69         fields.  Check that operands and opcode fields are disjoint.
70         (ppc_insert_operand): Check operands using mask rather than bit
71         count.   Check low bits too.  Handle PPC_OPERAND_PLUS1.  Adjust
72         insertion code.
73         (md_apply_fix): Adjust for struct powerpc_operand change.
74
75 2007-04-19  Paul Brook  <paul@codesourcery.com>
76
77         * config/tc-arm.c (md_assemble): Only allow 16-bit instructions on
78         Thumb-1.  Add sanity check for bogus relaxations.
79
80 2007-04-19  Paul Brook  <paul@codesourcery.com>
81
82         * config/tc-arm.c (insns): Allow rsb and rsbs on Thumb-1.
83
84 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
85
86         * Makefile.am: Run "make dep-am".
87         * Makefile.in: Regenerate.
88
89 2007-04-19  Nathan Froyd <froydnj@codesourcery.com>
90
91         * doc/c-ppc.texi (PowerPC-Opts): Document -me500, -me500x2, -mspe.
92
93 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
94
95         * doc/c-i386.texi; Document .ssse3, .sse4.1, .sse4.2 and .sse4.
96
97 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
98
99         * config/tc-i386.c (cpu_arch): Add .sse4.2 and .sse4.
100         (match_template): Handle operand size for crc32 in SSE4.2.
101         (process_suffix): Handle operand type for crc32 in SSE4.2.
102         (output_insn): Support SSE4.2.
103
104 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
105
106         * config/tc-i386.c (cpu_arch): Add .sse4.1.
107         (process_operands): Adjust implicit operand for blendvpd,
108         blendvps and pblendvb in SSE4.1.
109         (output_insn): Support SSE4.1.
110
111 2007-04-18  Paul Brook  <paul@codesourcery.com>
112
113         * config/tc-arm.c (do_t_rsb): Use 16-bit encoding when possible.
114
115 2007-04-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
116
117         * config/tc-sh.c (sh_handle_align):  Call as_bad_where instead
118         of as_warn_where for misaligned data.
119
120 2007-04-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
121
122         * config/tc-sh.c (align_test_frag_offset_fixed_p): Handle
123         rs_fill frags.
124
125 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
126
127         * Makefile.am: Add ACLOCAL_AMFLAGS.
128         * Makefile.in: Regenerate.
129
130 2007-04-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
131
132         * config/tc-sh.c (align_test_frag_offset_fixed_p): New.
133         (sh_optimize_expr): Likewise.
134         * config/tc-sh.h (md_optimize_expr): Define.
135         (sh_optimize_expr): Prototype.
136
137 2007-04-06  Matt Thomas  <matt@netbsd.org>
138
139         * config/tc-vax.c (vax_cons): Added to support %pcrel{8,16,32}(exp)
140         to emit pcrel relocations by DWARF2 in non-code sections.  Borrowed
141         heavily from tc-sparc.c.  (vax_cons_fix_new): Likewise.
142
143 2007-04-04  Kazu Hirata  <kazu@codesourcery.com>
144
145         * config/tc-m68k.c (HAVE_LONG_BRANCH): Add fido_a.
146
147 2007-04-04  Paul Brook  <paul@codesourcery.com>
148
149         * config/tc-arm.c (do_neon_ext): Enforce immediate range.
150         (insns): Use I15 for vext.
151
152 2007-04-04  Paul Brook  <paul@codesourcery.com>
153
154         * configure.tgt: Loosen checks for arm uclinux eabi targets.
155
156 2007-04-02  Sterling Augustine  <sterling@tensilica.com>
157
158         * config/tc-xtensa.c (xtensa_flush_pending_output): Check
159         outputting_stabs_line_debug.
160
161 2007-03-26  Anatoly Sokolov <aesok@post.ru>
162
163         * config/tc-avr.c (mcu_types): Add support for at90pwm1, at90usb82,
164         at90usb162, atmega325p, atmega329p, atmega3250p and atmega3290p
165         devices.
166         * doc/c-avr.texi: Document new devices.
167
168 2007-04-02  Richard Sandiford  <richard@codesourcery.com>
169
170         * doc/as.texinfo: Add -mvxworks-pic to the list of MIPS options.
171         * doc/c-mips.texi (-KPIC, -mvxworks-pic): Document.
172         * config/tc-mips.c (md_show_usage): Mention -mvxworks-pic.
173
174 2007-03-30  Sterling Augustine  <sterling@tensilica.com>
175             Bob Wilson  <bob.wilson@acm.org>
176
177         * config/tc-xtensa.c (xtensa_move_labels): Remove loops_ok argument.
178         Do not check is_loop_target flag.
179         (xtensa_frob_label): Adjust calls to xtensa_move_labels.
180         (xg_assemble_vliw_tokens): Likewise.  Also avoid calling
181         xtensa_move_labels for alignment of loop opcodes.
182         
183 2007-03-30  H.J. Lu  <hongjiu.lu@intel.com>
184
185         * config/tc-i386.c (process_suffix): Reindent a bit.
186
187 2007-03-30  Paul Brook  <paul@codesourcery.com>
188
189         * config/tc-arm.c (encode_thumb2_ldmstm): New function.
190         (do_t_ldmstm): Generate 16-bit push/pop.  Use encode_thumb2_ldmstm.
191         (do_t_push_pop):  Use encode_thumb2_ldmstm.
192
193 2007-03-29  DJ Delorie  <dj@redhat.com>
194
195         * config/tc-m32c.c (rl_for, relaxable): Protect argument.
196         (md_relax_table): Add entries for ADJNZ macros.
197         (M32C_Macros): Add ADJNZ macros.
198         (subtype_mappings): Add entries for ADJNZ macros.
199         (insn_to_subtype): Check for adjnz and sbjnz insns.
200         (md_estimate_size_before_relax): Pass insn to insn_to_subtype.
201         (md_convert_frag): Convert adjnz and sbjnz.
202
203 2007-03-29  Nick Clifton  <nickc@redhat.com>
204
205         * itbl-ops.c (itbl_entry): Remove unnecessary and excessively long
206         initialization.
207         * itbl-ops.h (enum e_processor): Initialise the e_nprocs field
208         using ITBL_NUMBER_OF_PROCESSORS.
209         * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
210
211 2007-03-28  H.J. Lu  <hongjiu.lu@intel.com>
212
213         * config/tc-i386.c (build_modrm_byte): For instructions with 2
214         register operands, encode destination in i.rm.regmem if its
215         RegMem bit is set.
216
217 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
218             Phil Edwards  <phil@codesourcery.com>
219
220         * doc/as.texinfo: Put the contents after the title page rather
221         than at the end of the document.
222
223 2007-03-27  Alan Modra  <amodra@bigpond.net.au>
224
225         * NEWS: Mention ".reloc".
226
227 2007-03-26  Sterling Augustine  <sterling@tensilica.com>
228         
229         * config/tc-xtensa.c (xg_translate_idioms): Allow assembly idioms
230         in FLIX instructions.
231         
232 2007-03-26  Julian Brown  <julian@codesourcery.com>
233
234         * config/tc-arm.c (arm_it): Add immisfloat field.
235         (parse_qfloat_immediate): Disallow integer syntax for floating-point
236         immediates. Fix hex immediates, handle 0.0 and -0.0 specially.
237         (parse_neon_mov): Set immisfloat bit for operand if it parsed as a
238         float.
239         (neon_cmode_for_move_imm): Reject non-float immediates for float
240         operands.
241         (neon_move_immediate): Pass immisfloat bit to neon_cmode_for_move_imm.
242
243 2007-03-26  Julian Brown  <julian@codesourcery.com>
244
245         * doc/c-arm.texi: Add documentation for .dn/.qn directives.
246
247 2007-03-26  Alan Modra  <amodra@bigpond.net.au>
248
249         * doc/as.texinfo (Reloc): Document.
250         * read.c (potable): Add "reloc".
251         (s_reloc): New function.
252         * write.c (reloc_list): New global var.
253         (resolve_reloc_expr_symbols): New function.
254         (write_object_file): Call it.
255         (write_relocs): Process reloc_list.
256         * write.h (struct reloc_list): New.
257         (reloc_list): Declare.
258
259 2007-03-24  Paul Brook  <paul@codesourcery.com>
260
261         * config/tc-arm.c (do_t_ldmstm): Error on Thumb-2 addressing modes.
262
263 2007-03-24  Paul Brook  <paul@codesourcery.com>
264         Mark Shinwell  <shinwell@codesourcery.com>
265
266         * config/tc-arm.c (operand_parse_code): Add OP_oRRw.
267         (parse_operands): Don't expect comma if first operand missing.
268         Handle OP_oRRw.
269         (do_srs): Encode register number, checking it is r13.  Update comment.
270         (insns): Update SRS entries to take a register.
271
272 2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
273
274         * config/tc-i386.c (md_begin): Allow '.' in mnemonic.
275
276 2007-03-23  Mark Shinwell  <shinwell@codesourcery.com>
277
278         * config/tc-arm.c (md_apply_fix): Turn CBZ instructions that
279         attempt to jump to the next instruction into NOPs.
280
281 2007-03-23  Alan Modra  <amodra@bigpond.net.au>
282
283         * config/tc-spu.c: Don't include opcode/spu.h.
284         (md_assemble): Set tc_fix_data.insn_tag and arg_format.
285         (md_apply_fix): Adjust.
286         * config/tc-spu.h: Include opcode/spu.h.
287         (struct tc_fix_info): New.
288         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Adjust.
289         (TC_FORCE_RELOCATION): Define.
290
291 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
292
293         * doc/as.texinfo: Include VERSION_PACKAGE when reporting version.
294
295 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
296
297         * config/tc-i386.c (process_suffix): Check 0x90 instead of
298         xchg for xchg %rax,%rax.
299
300 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
301
302         * config/tc-i386.c: Replace REX_MODE64, REX_EXTX, REX_EXTY
303         and REX_EXTZ with REX_W, REX_R, REX_X and REX_B respectively.
304
305 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
306
307         PR binutils/4218
308         * config/tc-i386.c (match_template): Properly handle 64bit mode
309         "xchg %eax, %eax".
310
311 2007-03-21  Anton Ertl  <anton@mips.complang.tuw>
312
313         PR gas/4124
314         * config/tc-alpha.c (emit_ustX): Fix ustq code generation.
315
316 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
317
318         * Makefile.am: Run dep-am.
319         * Makefile.in: Regenerated.
320
321         * config/tc-i386.c: Don't include "opcodes/i386-opc.h".
322
323         * config/tc-i386.h: Include "opcodes/i386-opc.h".
324         (NOP_OPCODE): Removed.
325         (template): Likewise.
326
327 2007-03-21  Andreas Schwab  <schwab@suse.de>
328
329         * config/tc-i386.h (NOP_OPCODE): Restore.
330
331 2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
332
333         * config/tc-arm.c (do_mul): Don't warn about overlapping
334         Rd and Rm operands when assembling for v6 or above.
335         Correctly capitalize register names in the messages.
336         (do_mlas): Likewise.  Delete spurious blank line.
337
338 2007-03-16  Kazu Hirata  <kazu@codesourcery.com>
339
340         * config/tc-m68k.c (m68k_cpus): Add an entry for fidoa.
341
342 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
343
344         * config/tc-i386.c (md_begin): Use i386_regtab_size to scan 
345         i386_regtab.
346         (parse_register): Use i386_regtab_size instead of ARRAY_SIZE
347         on i386_regtab.
348
349 2007-03-15  Alexandre Oliva  <aoliva@redhat.com>
350
351         PR gas/4184
352         * app.c (do_scrub_chars): PUT after setting states.
353
354 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
355
356         * Makefile.am: Run "make dep-am".
357         * Makefile.in: Regenerated.
358
359         * config/tc-i386.c: Include "opcodes/i386-opc.h" instead of
360         "opcode/i386.h".
361         (md_begin): Check reg_name != NULL for the last entry in
362         i386_regtab.
363
364         * config/tc-i386.h: Move many entries to opcode/i386.h and
365         opcodes/i386-opc.h.
366
367         * configure.in (need_opcodes): Set true for i386.
368         * configure: Regenerated.
369
370 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
371
372         * Makefile.am (REPORT_BUGS_TO): Removed.
373         (INCLUDES): Remove -DREPORT_BUGS_TO.
374         * Makefile.in: Regenerated.
375
376         * configure.in (--with-bugurl): Removed.
377         * configure: Regenerated.
378
379         * doc/Makefile.am (as_TEXINFOS): Remove gasver.texi.
380         (AM_MAKEINFOFLAGS): Add -I ../../bfd/doc.
381         (TEXI2DVI): Likewise.
382         (gasver.texi): Removed.
383         (MOSTLYCLEANFILES): Remove gasver.texi.
384         (as.1): Don't depend on gasver.texi.
385         * doc/Makefile.in: Regenerated.
386
387         * doc/as.texi: Include bfdver.texi instead of gasver.texi.
388
389 2007-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
390
391         * config/tc-arm.c (arm_copy_symbol_attributes): New.
392         * config/tc-arm.h (arm_copy_symbol_attributes): Declare.
393         (TC_COPY_SYMBOL_ATTRIBUTES): Define.
394         * gas/symbols.c (copy_symbol_attributes): Use
395         TC_COPY_SYMBOL_ATTRIBUTES.
396
397 2007-03-14  Paul Brook  <paul@codesourcery.com>
398
399         * config/tc-arm.c (T16_32_TAB): Fix dec_sp encoding.
400
401 2007-03-14  Alan Modra  <amodra@bigpond.net.au>
402
403         PR 4029
404         * write.c (relax_segment): Insert extra alignment padding
405         to break infinite relax loop when given impossible
406         gcc_except_table assembly.
407
408 2007-03-12  H.J. Lu  <hongjiu.lu@intel.com>
409
410         * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
411         on i.tm.base_opcode.
412         (match_template): Likewise.
413         (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
414
415         * config/tc-i386.h (Opcode_D): New.
416         (Opcode_FloatR): Likewise.
417         (Opcode_FloatD): Likewise.
418         (D): Redefined.
419         (W): Likewise.
420         (FloatMF): Likewise.
421         (FloatR): Likewise.
422         (FloatD): Likewise.
423
424 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
425
426         * app.c (do_scrub_chars): Recognize comments after # line "file".
427         * read.c (get_linefile_number): New.
428         (s_app_line): Accept ill-formed .linefile lines as comments.
429
430 2007-03-09  Alan Modra  <amodra@bigpond.net.au>
431
432         * config/tc-i386.h (WORKING_DOT_WORD): Define.
433
434 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
435
436         * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
437         * as.h (new_logical_line_flags): New.
438         * input-scrub.c (new_logical_line): Turned into wrapper for...
439         (new_logical_line_flags): this.  Handle flags.
440         * read.c (potable): Add linefile.  Adjust appline argument.
441         (s_app_file): Fake .appfiles no more.
442         (s_app_line): For .linefile, accept file name and flags.
443
444 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
445
446         * symbols.c (symbol_relc_make_sym): Comment typo fixes.
447
448 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
449
450         * Makefile.am: Run "make dep-am".
451         * Makefile.in: Regenerate.
452         * po/POTFILES.in: Regenerate.
453
454 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
455
456         * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
457         bug-reporting URL.
458         * doc/Makefile.am (gasver.texi): Define BUGURL.
459         * doc/as.texinfo: Use BUGURL.
460         * Makefile.in, configure, doc/Makefile.in: Regenerate.
461
462 2007-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
463
464         * config/tc-s390.c (md_parse_option): z9-ec option added.
465
466 2007-03-02  Paul Brook  <paul@codesourcery.com>
467
468         * config/tc-arm.c (relax_immediate): Always return positive values.
469         (relaxed_symbol_addr): New function.
470         (relax_adr, relax_branch): Use it.
471         (arm_relax_frag): Pass strect argument.  Adjust infinite loop check.
472
473 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
474
475         * as.c (parse_args): Update copyright date.
476
477 2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
478
479         * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
480
481 2007-02-28  Nick Clifton  <nickc@redhat.com>
482
483         PR gas/3797
484         * config/tc-d10v.c (do_assemble): Do not generate error messages,
485         just return -1 whenever a problem is encountered.
486         (md_assemble): If do_assemble returns -1 generate a non-fatal
487         error message and return.
488
489         PR gas/2623
490         * config/tc-msp430.c (line_separator_char): Change to '{'.
491
492 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
493
494         * config/tc-m68hc11.c (fixup24): Correct fixup size.
495         (build_jump_insn): Likewise.
496         (build_insn): Likewise.
497         (s_m68hc11_relax): Likewise.
498
499 2007-02-27  Alan Modra  <amodra@bigpond.net.au>
500
501         * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
502
503 2007-02-25  Mark Shinwell  <shinwell@codesourcery.com>
504
505         * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
506
507 2007-02-23  Alan Modra  <amodra@bigpond.net.au>
508
509         * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
510         (md_assemble): Likewise.
511
512 2007-02-22  Alan Modra  <amodra@bigpond.net.au>
513
514         * write.c (size_seg): Always clear SEC_RELOC here.
515         (install_reloc): New function, extracted from..
516         (write_relocs): ..here.  Combine RELOC_EXPANSION_POSSIBLE code
517         with !RELOC_EXPANSION_POSSIBLE code.  Don't add fr_offset when
518         testing frag size.  Set SEC_RELOC here.
519
520 2007-02-21  Alan Modra  <amodra@bigpond.net.au>
521
522         PR 4082
523         * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
524
525 2007-02-20  Thiemo Seufer  <ths@mips.com>
526
527         * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
528
529 2007-02-20  Thiemo Seufer  <ths@mips.com>
530
531         * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
532
533 2007-02-20  Thiemo Seufer  <ths@mips.com>
534             Chao-Ying Fu  <fu@mips.com>
535
536         * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
537         ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
538         (macro_build): Add case '2'.
539         (macro): Expand M_BALIGN to nop, packrl.ph or balign.
540         (validate_mips_insn): Add support for balign instruction.
541         (mips_ip): Handle DSP R2 instructions. Support balign instruction.
542         (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
543         md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
544         command line options.
545         (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
546         (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
547         * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
548         .set dspr2, .set nodspr2.
549
550 2007-02-20  Nathan Sidwell  <nathan@codesourcery.com>
551
552         * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
553         (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
554
555 2007-02-18  Alan Modra  <amodra@bigpond.net.au>
556
557         * write.c (TC_FX_SIZE_SLACK): Define.
558         (write_relocs): Reinstate check for fixup within frag.
559         * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
560         * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
561         * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
562         * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
563         * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
564
565 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
566             Nathan Sidwell  <nathan@codesourcery.com>
567             Vladimir Prus  <vladimir@codesourcery.com
568             Joseph Myers  <joseph@codesourcery.com>
569
570         * configure.in (--with-bugurl): New option.
571         * configure: Regenerate.
572         * dep-in.sed: Remove bin-bugs.h.
573         * Makefile.am (REPORT_BUGS_TO): Define.
574         (INCLUDES): Define REPORT_BUGS_TO.
575         (DEP_INCLUDES): Likewise.
576         ($(OBJS)): No longer depend on bin-bugs.h.
577         * Makefile.in: Regenerate.
578         * doc/Makefile.in: Regenerate.
579         * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
580         * as.h: Remove include of bin-bugs.h.
581
582 2007-02-17  Alan Modra  <amodra@bigpond.net.au>
583
584         * write.c: White space fixes.
585         (fixup_segment): Move symbol_mri_common_p adjustments..
586         (write_relocs): ..and symbol_equated_reloc_p adjustments..
587         (adjust_reloc_syms): ..to here.
588
589 2007-02-16  Alan Modra  <amodra@bigpond.net.au>
590
591         * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
592         xmalloc, memset.  Don't bother assigning NULL to known zero mem.
593         (subseg_set_rest): Remove unnecessary cast.
594         * write.c: Include libbfd.h.  Replace PTR with void * throughout.
595         Remove unnecessary forward declarations and casts.
596         (set_symtab): Delete extern bfd_alloc.
597         (fixup_segment): Move.
598
599 2007-02-15  Nathan Sidwell  <nathan@codesourcery.com>
600
601         * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
602         * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
603         (mcf5475_ctrl, mcf5485_ctrl): New.
604         (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
605         (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
606         (init_table): Add asid, mmubar, adjust rombar0.
607
608 2007-02-14  Alan Modra  <amodra@bigpond.net.au>
609
610         * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
611         * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
612         (process_operands): Move old Seg2ShortForm and Seg3ShortForm
613         code, and test for these insns using a combination of
614         opcode_modifier and operand_types.
615
616 2007-02-07  Paul Brook  <paul@codesourcery.com>
617
618         * configure.tgt: Add arm*-*-uclinux-*eabi.
619
620 2007-02-05  Dave Brolley  <brolley@redhat.com>
621             Richard Sandiford  <rsandifo@redhat.com>
622             DJ Delorie  <dj@redhat.com>
623             Stan Cox  <scox@redhat.com>
624             Jim Blandy  <jimb@redhat.com>
625             Nick Clifton  <nickc@redhat.com>
626             Jim Wilson  <wilson@redhat.com>
627             Frank Ch. Eigler  <fche@redhat.com>
628             Graydon Hoare  <graydon@redhat.com>
629             Ben Elliston  <bje@redhat.com>
630             John Healy  <jhealy@redhat.com>
631             Richard Henderson  <rth@redhat.com>
632
633         * Makefile.am (CPU_TYPES): Add mep.
634         (TARGET_CPU_CFILES): Add tc-mep.c.
635         (TARGET_CPU_HFILES): Add tc-mep.h.
636         (DEPTC_mep_elf): New variable.
637         (DEPTC_mep_coff): Likewise.
638         (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
639         * configure.in: Support mep.
640         * configure.tgt: Likewise.
641         * config/tc-mep.c: New file.
642         * config/obj-elf.c: New file.
643         * config/tc-mep.c: New file.
644         * config/tc-mep.h: New file.
645         * testsuite/gas/mep: New testsuite with content.
646         * Makefile.in: Regenerate.
647         * configure: Regenerate.
648
649 2007-02-05  Dave Brolley  <brolley@redhat.com>
650
651         * cgen.c (gas_cgen_install_complex_reloc): Removed.
652         (complex_reloc_installation_howto): Removed.
653
654 2007-02-05  Dave Brolley  <brolley@redhat.com>
655             Graydon Hoare  <graydon@redhat.com>
656             DJ Delorie  <dj@redhat.com>
657             Catherine Moore  <clm@redhat.com>
658             Michael Chastain  <chastain@redhat.com>
659             Frank Ch. Eigler  <fche@redhat.com>
660
661         * symbols.c (use_complex_relocs_for): New, to decide
662         when to use complex relocs. Add signed RELC support.
663         (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
664         encode expression symbols as mangled complex relocation symbols (when
665         compiled with -DOBJ_COMPLEX_RELOC).
666         (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
667         * cgen.c (gas_cgen_md_apply_fix3):  Only set signed_p if RELC. Call
668         encode_addend with new args. Modify to get start, length from
669         ifield whenever it is set. Also change condition on which
670         self-describing relocs are encoded. Add hook into
671         gas_cgen_encode_addend.
672         (queue_fixup_recursively): Add signed RELC support. Change from masked
673         expr to trunc flag. Restore assignment of sub-field value to
674         temporary in fixups array. Reflect changed meaning of last arg to
675         queue_fixup_recursively.
676         (fixup): Add cgen_maybe_multi_ifield member.
677         (make_right_shifted_expr): New function.
678         (queue_fixup): Change to recursive function that fragments
679         fixups if operand has a multi-ifield.
680         (gas_cgen_parse_operand): Add RELC code to wrap expressions in
681         symbols, call weak_operand_overflow_check, and fragment call
682         queue_fixup with operand fields.
683         (gas_cgen_finish_insn) Modify to manage ifield pointer.
684         (weak_operand_overflow_check): New function to try to select
685         insns correctly.
686         (gas_cgen_encode_addend): New function for relc.
687         (gas_cgen_install_complex_reloc): Likewise.
688         (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
689         * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
690         cgen_maybe_multi_ifield field to fx_cgen substructure.
691         * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
692         * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
693         
694 2007-02-03  DJ Delorie  <dj@delorie.com>
695
696         * config/tc-m32c.c (m32c_cons_fix_new): New.  Added to support 3
697         byte relocs.
698         * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
699         (m32c_cons_fix_new): Prototype.
700
701 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
702         
703         * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
704         (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
705         
706 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
707
708         * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
709         (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
710         (map_suffix_reloc_to_operator): New.
711         (map_operator_to_reloc): New.
712         (expression_maybe_register): Fix incorrect test of return value from
713         xtensa_elf_suffix.  Rearrange to use map_suffix_reloc_to_operator.
714         (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
715
716 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
717
718         * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
719         (tinsn_get_tok): Delete prototype.
720         * config/tc-xtensa.c (tinsn_get_tok): Delete.
721         
722 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
723
724         * config/xtensa-relax.h (struct build_instr): Delete id field.
725         * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
726         and LABEL tokens.
727         (append_literal_op, append_label_op): Remove litnum/labnum arguments;
728         set op_data fields to zero.
729         (parse_id_constant): Delete.
730         (build_transition): Remove code to handle numbered literals and labels.
731
732 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
733
734         * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
735         (build_transition_table): Likewise.
736
737 2007-02-01  Bob Wilson  <bob.wilson@acm.org>
738
739         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
740         fx_tcbit.
741         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
742
743 2007-02-02  Alan Modra  <amodra@bigpond.net.au>
744
745         * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
746         (struct fix <fx_plt>): Rename to tcbit2.
747         * write.c (fix_new_internal): Adjust.
748         (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
749         * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
750         * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
751         * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
752         * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
753         * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
754         * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
755         * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
756         * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
757         * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
758         * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
759         Instead, compare fx_r_type.
760         * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
761         fx_tcbit in place of fx_plt.
762         * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
763         * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
764         to fx_plt.
765
766 2007-01-30  Nick Clifton  <nickc@redhat.com>
767
768         * as.c (main): Mark symbols created via the --defsym command line
769         option as volatile so that they can be overridden later on by a
770         .set directive.  This maintains compatibility with the behaviour
771         of earlier versions of the assembler.
772         * doc/as.texinfo (--defsym): Document that the defined symbol's
773         value can be overridden via a .set directive.
774
775 2007-01-28  H.J. Lu  <hongjiu.lu@intel.com>
776
777         * config/tc-i386.c (swap_imm_operands): Renamed to ...
778         (swap_2_operands): This.  Take 2 ints.
779         (md_assemble): Updated.
780         (swap_operands): Call swap_2_operands to swap 2 operands.
781
782 2007-01-24  DJ Delorie  <dj@redhat.com>
783
784         * config/tc-m32c.c (md_pseudo_table): Add .3byte.
785
786 2007-01-22  Nick Clifton  <nickc@redhat.com>
787
788         PR gas/3871
789         * tc-score.c: Remove unnecessary uses of _().
790         Make the err_msg[] a file level local array in order to save
791         storage space.
792         Remove unnecessary sprintf()s.
793
794 2007-01-18  Mei Ligang  <ligang@sunnorth.com.cn>
795
796         PR gas/3871
797         * config/tc-score.c : Using _() for const string.
798         Do not assign inst.error with a local string pointer.
799         (md_section_align): Pad section.
800         
801 2007-01-13  H.J. Lu  <hongjiu.lu@intel.com>
802
803         * config/tc-i386.c (build_modrm_byte): Check number of operands
804         when procssing memory/register operand.
805
806 2007-01-12  Nick Clifton  <nickc@redhat.com>
807
808         PR gas/3856
809         * macro.c (expand_irp): Do not ignore spaces inside quoted
810         strings.
811
812 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
813
814         * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
815         * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
816         * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
817         (TC_FORCE_RELOCATION): Define.
818         (TC_FORCE_RELOCATION_LOCAL): Define.
819         * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
820
821 2007-01-12  Alan Modra  <amodra@bigpond.net.au>
822
823         * input-file.c (input_file_open): Check fgets return.
824
825 2007-01-11  Paul Brook  <paul@codesourcery.com>
826
827         * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
828
829 2007-01-11  Nick Clifton  <nickc@redhat.com>
830
831         PR gas/3707
832         * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
833         variable.
834
835         * config/tc-mcore.c (md_number_to_chars): Use
836         number_to_chars_{big|little}endian.
837
838 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
839
840         * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
841         architecture by itself.
842         (m68k_ip): Don't issue a warning for tbl instructions on fido.
843         (m68k_elf_final_processing): Treat Fido as an architecture by
844         itself.
845
846 2007-01-08  Kai Tietz   <kai.tietz@onevision.com>
847
848         * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
849
850 2007-01-05  H.J. Lu  <hongjiu.lu@intel.com>
851
852         * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
853         depending on allow_naked_reg.
854
855 2007-01-04  Paul Brook  <paul@codesourcery.com>
856
857         * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
858
859 2007-01-04  H.J. Lu  <hongjiu.lu@intel.com>
860
861         PR gas/3830
862         * config/tc-i386.c (register_prefix): New.
863         (set_intel_syntax): Set set_intel_syntax to "" if register
864         prefix isn't needed.
865         (check_byte_reg): Use register_prefix for error message.
866         (check_long_reg): Likewise.
867         (check_qword_reg): Likewise.
868         (check_word_reg): Likewise.
869
870 2006-01-04  Julian Brown  <julian@codesourcery.com>
871
872         * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
873         (do_neon_qshl_imm): Likewise.
874         (do_neon_rshl): New function. Handle rounding variants of
875         v{q}shl-by-register.
876         (insns): Use do_neon_rshl for vrshl, vqrshl.
877
878 2007-01-04  Paul Brook  <paul@codesourcery.com>
879
880         * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
881         and vacle.
882
883 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
884
885         * config/tc-i386.c (swap_operands): Remove branches.
886
887 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
888
889         * config/tc-i386.c: Update copyright year.
890         * config/tc-i386.h: Likewise.
891
892 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
893
894         * config/tc-i386.c (smallest_imm_type): Return unsigned int
895         instead of int.
896
897 2007-01-03  H.J. Lu  <hongjiu.lu@intel.com>
898
899         * config/tc-i386.c: Convert to ISO C90 formatting
900         * config/tc-i386.h: Likewise.
901
902 2007-01-03  David Daney  <ddaney@avtrex.com>
903
904         * config/tc-mips.c (md_show_usage):  Clean up -mno-shared
905         documentation.
906
907 For older changes see ChangeLog-2006
908 \f
909 Local Variables:
910 mode: change-log
911 left-margin: 8
912 fill-column: 74
913 version-control: never
914 End: