OSDN Git Service

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