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