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