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