2007-03-12 H.J. Lu <hongjiu.lu@intel.com>
[binutils-gdb.git] / gas / ChangeLog
1 2007-03-12 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/tc-i386.c (md_assemble): Use Opcode_XXX instead of XXX
4 on i.tm.base_opcode.
5 (match_template): Likewise.
6 (process_operands): Use ~0x3 mask to match MOV_AX_DISP32.
7
8 * config/tc-i386.h (Opcode_D): New.
9 (Opcode_FloatR): Likewise.
10 (Opcode_FloatD): Likewise.
11 (D): Redefined.
12 (W): Likewise.
13 (FloatMF): Likewise.
14 (FloatR): Likewise.
15 (FloatD): Likewise.
16
17 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
18
19 * app.c (do_scrub_chars): Recognize comments after # line "file".
20 * read.c (get_linefile_number): New.
21 (s_app_line): Accept ill-formed .linefile lines as comments.
22
23 2007-03-09 Alan Modra <amodra@bigpond.net.au>
24
25 * config/tc-i386.h (WORKING_DOT_WORD): Define.
26
27 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
28
29 * app.c (do_scrub_chars): Turn #<line>"file"flags into .linefile.
30 * as.h (new_logical_line_flags): New.
31 * input-scrub.c (new_logical_line): Turned into wrapper for...
32 (new_logical_line_flags): this. Handle flags.
33 * read.c (potable): Add linefile. Adjust appline argument.
34 (s_app_file): Fake .appfiles no more.
35 (s_app_line): For .linefile, accept file name and flags.
36
37 2007-03-08 Alan Modra <amodra@bigpond.net.au>
38
39 * symbols.c (symbol_relc_make_sym): Comment typo fixes.
40
41 2007-03-08 Alan Modra <amodra@bigpond.net.au>
42
43 * Makefile.am: Run "make dep-am".
44 * Makefile.in: Regenerate.
45 * po/POTFILES.in: Regenerate.
46
47 2007-03-07 Joseph Myers <joseph@codesourcery.com>
48
49 * configure.in (REPORT_BUGS_TEXI): Define to Texinfo version of
50 bug-reporting URL.
51 * doc/Makefile.am (gasver.texi): Define BUGURL.
52 * doc/as.texinfo: Use BUGURL.
53 * Makefile.in, configure, doc/Makefile.in: Regenerate.
54
55 2007-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
56
57 * config/tc-s390.c (md_parse_option): z9-ec option added.
58
59 2007-03-02 Paul Brook <paul@codesourcery.com>
60
61 * config/tc-arm.c (relax_immediate): Always return positive values.
62 (relaxed_symbol_addr): New function.
63 (relax_adr, relax_branch): Use it.
64 (arm_relax_frag): Pass strect argument. Adjust infinite loop check.
65
66 2007-03-01 Joseph Myers <joseph@codesourcery.com>
67
68 * as.c (parse_args): Update copyright date.
69
70 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
71
72 * configure.tgt (sh-*-uclinux, sh[12]-*-uclinux): Specify as elf.
73
74 2007-02-28 Nick Clifton <nickc@redhat.com>
75
76 PR gas/3797
77 * config/tc-d10v.c (do_assemble): Do not generate error messages,
78 just return -1 whenever a problem is encountered.
79 (md_assemble): If do_assemble returns -1 generate a non-fatal
80 error message and return.
81
82 PR gas/2623
83 * config/tc-msp430.c (line_separator_char): Change to '{'.
84
85 2007-02-27 Alan Modra <amodra@bigpond.net.au>
86
87 * config/tc-m68hc11.c (fixup24): Correct fixup size.
88 (build_jump_insn): Likewise.
89 (build_insn): Likewise.
90 (s_m68hc11_relax): Likewise.
91
92 2007-02-27 Alan Modra <amodra@bigpond.net.au>
93
94 * config/obj-elf.c (elf_frob_file): frag_wane any new frags.
95
96 2007-02-25 Mark Shinwell <shinwell@codesourcery.com>
97
98 * config/tc-arm.c (do_vfp_nsyn_pop): Use fldmias/fldmiad.
99
100 2007-02-23 Alan Modra <amodra@bigpond.net.au>
101
102 * config/tc-mn10300.c (md_convert_frag): Correct fixup size.
103 (md_assemble): Likewise.
104
105 2007-02-22 Alan Modra <amodra@bigpond.net.au>
106
107 * write.c (size_seg): Always clear SEC_RELOC here.
108 (install_reloc): New function, extracted from..
109 (write_relocs): ..here. Combine RELOC_EXPANSION_POSSIBLE code
110 with !RELOC_EXPANSION_POSSIBLE code. Don't add fr_offset when
111 testing frag size. Set SEC_RELOC here.
112
113 2007-02-21 Alan Modra <amodra@bigpond.net.au>
114
115 PR 4082
116 * config/tc-avr.h (TC_FX_SIZE_SLACK): Define.
117
118 2007-02-20 Thiemo Seufer <ths@mips.com>
119
120 * doc/c-mips.texi: Document 74kc, 74kf, 74kx.
121
122 2007-02-20 Thiemo Seufer <ths@mips.com>
123
124 * config/tc-mips.c (mips_cpu_info_table): Add 74K configurations.
125
126 2007-02-20 Thiemo Seufer <ths@mips.com>
127 Chao-Ying Fu <fu@mips.com>
128
129 * config/tc-mips.c (mips_set_options, mips_opts, file_ase_dspr2,
130 ISA_SUPPORTS_DSPR2_ASE, MIPS_CPU_ASE_DSPR2): Add DSP R2 ASE support.
131 (macro_build): Add case '2'.
132 (macro): Expand M_BALIGN to nop, packrl.ph or balign.
133 (validate_mips_insn): Add support for balign instruction.
134 (mips_ip): Handle DSP R2 instructions. Support balign instruction.
135 (OPTION_DSPR2, OPTION_NO_DSPR2, OPTION_COMPAT_ARCH_BASE,
136 md_parse_option, mips_after_parse_args): Add -mdspr2 and -mno-dspr2
137 command line options.
138 (s_mipsset): Add support for .set dspr2 and .set nodspr2 directives.
139 (md_show_usage): Add -mdspr2 and -mno-dspr2 help output.
140 * doc/c-mips.texi, doc/as.texinfo: Document -mdspr2, -mno-dspr2,
141 .set dspr2, .set nodspr2.
142
143 2007-02-20 Nathan Sidwell <nathan@codesourcery.com>
144
145 * config/tc-m68k.c (mcf5210a_ctrl, mcf52235_ctrl, mcf5225_ctrl): New.
146 (m68k_cpus): Add 5210a..5211a, 52230..52235 5224..5225.
147
148 2007-02-18 Alan Modra <amodra@bigpond.net.au>
149
150 * write.c (TC_FX_SIZE_SLACK): Define.
151 (write_relocs): Reinstate check for fixup within frag.
152 * config/tc-bfin.h (TC_FX_SIZE_SLACK): Define.
153 * config/tc-h8300.h (TC_FX_SIZE_SLACK): Define.
154 * config/tc-mmix.h (TC_FX_SIZE_SLACK): Define.
155 * config/tc-sh.h (TC_FX_SIZE_SLACK): Define.
156 * config/tc-xstormy16.h (TC_FX_SIZE_SLACK): Define.
157
158 2007-02-17 Mark Mitchell <mark@codesourcery.com>
159 Nathan Sidwell <nathan@codesourcery.com>
160 Vladimir Prus <vladimir@codesourcery.com
161 Joseph Myers <joseph@codesourcery.com>
162
163 * configure.in (--with-bugurl): New option.
164 * configure: Regenerate.
165 * dep-in.sed: Remove bin-bugs.h.
166 * Makefile.am (REPORT_BUGS_TO): Define.
167 (INCLUDES): Define REPORT_BUGS_TO.
168 (DEP_INCLUDES): Likewise.
169 ($(OBJS)): No longer depend on bin-bugs.h.
170 * Makefile.in: Regenerate.
171 * doc/Makefile.in: Regenerate.
172 * as.c (show_usage): Don't print empty REPORT_BUGS_TO.
173 * as.h: Remove include of bin-bugs.h.
174
175 2007-02-17 Alan Modra <amodra@bigpond.net.au>
176
177 * write.c: White space fixes.
178 (fixup_segment): Move symbol_mri_common_p adjustments..
179 (write_relocs): ..and symbol_equated_reloc_p adjustments..
180 (adjust_reloc_syms): ..to here.
181
182 2007-02-16 Alan Modra <amodra@bigpond.net.au>
183
184 * subsegs.c (subseg_change, subseg_get): Use xcalloc rather than
185 xmalloc, memset. Don't bother assigning NULL to known zero mem.
186 (subseg_set_rest): Remove unnecessary cast.
187 * write.c: Include libbfd.h. Replace PTR with void * throughout.
188 Remove unnecessary forward declarations and casts.
189 (set_symtab): Delete extern bfd_alloc.
190 (fixup_segment): Move.
191
192 2007-02-15 Nathan Sidwell <nathan@codesourcery.com>
193
194 * config/m68k-parse.h (m68k_register): Add ROMBAR0, ASID.
195 * config/tc-m68k.c (mcfv4e_ctrl): Add ColdFire specific names.
196 (mcf5475_ctrl, mcf5485_ctrl): New.
197 (m68k_cpus): Use mcf5485_ctrl and mcf5485_ctrl for those families.
198 (m68k_ip): Add ASID, MMUBAR, ROMBAR0 handling.
199 (init_table): Add asid, mmubar, adjust rombar0.
200
201 2007-02-14 Alan Modra <amodra@bigpond.net.au>
202
203 * config/tc-i386.h (Seg2ShortForm, Seg3ShortForm): Delete.
204 * config/tc-i386.c: Wrap overly long lines, whitespace fixes.
205 (process_operands): Move old Seg2ShortForm and Seg3ShortForm
206 code, and test for these insns using a combination of
207 opcode_modifier and operand_types.
208
209 2007-02-07 Paul Brook <paul@codesourcery.com>
210
211 * configure.tgt: Add arm*-*-uclinux-*eabi.
212
213 2007-02-05 Dave Brolley <brolley@redhat.com>
214 Richard Sandiford <rsandifo@redhat.com>
215 DJ Delorie <dj@redhat.com>
216 Stan Cox <scox@redhat.com>
217 Jim Blandy <jimb@redhat.com>
218 Nick Clifton <nickc@redhat.com>
219 Jim Wilson <wilson@redhat.com>
220 Frank Ch. Eigler <fche@redhat.com>
221 Graydon Hoare <graydon@redhat.com>
222 Ben Elliston <bje@redhat.com>
223 John Healy <jhealy@redhat.com>
224 Richard Henderson <rth@redhat.com>
225
226 * Makefile.am (CPU_TYPES): Add mep.
227 (TARGET_CPU_CFILES): Add tc-mep.c.
228 (TARGET_CPU_HFILES): Add tc-mep.h.
229 (DEPTC_mep_elf): New variable.
230 (DEPTC_mep_coff): Likewise.
231 (DEPOBJ_mep_coff, DEPOBJ_mep_elf, DEP_mep_coff, DEP_mep_elf): Likewise.
232 * configure.in: Support mep.
233 * configure.tgt: Likewise.
234 * config/tc-mep.c: New file.
235 * config/obj-elf.c: New file.
236 * config/tc-mep.c: New file.
237 * config/tc-mep.h: New file.
238 * testsuite/gas/mep: New testsuite with content.
239 * Makefile.in: Regenerate.
240 * configure: Regenerate.
241
242 2007-02-05 Dave Brolley <brolley@redhat.com>
243
244 * cgen.c (gas_cgen_install_complex_reloc): Removed.
245 (complex_reloc_installation_howto): Removed.
246
247 2007-02-05 Dave Brolley <brolley@redhat.com>
248 Graydon Hoare <graydon@redhat.com>
249 DJ Delorie <dj@redhat.com>
250 Catherine Moore <clm@redhat.com>
251 Michael Chastain <chastain@redhat.com>
252 Frank Ch. Eigler <fche@redhat.com>
253
254 * symbols.c (use_complex_relocs_for): New, to decide
255 when to use complex relocs. Add signed RELC support.
256 (resolve_symbol_value): Call use_complex_relocs_for. Unconditionally
257 encode expression symbols as mangled complex relocation symbols (when
258 compiled with -DOBJ_COMPLEX_RELOC).
259 (symbol_relc_make_sym,value,expr): New traversal/conversion routines.
260 * cgen.c (gas_cgen_md_apply_fix3): Only set signed_p if RELC. Call
261 encode_addend with new args. Modify to get start, length from
262 ifield whenever it is set. Also change condition on which
263 self-describing relocs are encoded. Add hook into
264 gas_cgen_encode_addend.
265 (queue_fixup_recursively): Add signed RELC support. Change from masked
266 expr to trunc flag. Restore assignment of sub-field value to
267 temporary in fixups array. Reflect changed meaning of last arg to
268 queue_fixup_recursively.
269 (fixup): Add cgen_maybe_multi_ifield member.
270 (make_right_shifted_expr): New function.
271 (queue_fixup): Change to recursive function that fragments
272 fixups if operand has a multi-ifield.
273 (gas_cgen_parse_operand): Add RELC code to wrap expressions in
274 symbols, call weak_operand_overflow_check, and fragment call
275 queue_fixup with operand fields.
276 (gas_cgen_finish_insn) Modify to manage ifield pointer.
277 (weak_operand_overflow_check): New function to try to select
278 insns correctly.
279 (gas_cgen_encode_addend): New function for relc.
280 (gas_cgen_install_complex_reloc): Likewise.
281 (gas_cgen_tc_gen_reloc): Add hook into gas_cgen_install_complex_reloc.
282 * write.h (struct fix): Add msb_field_p to fx_cgen sub-struct. Add
283 cgen_maybe_multi_ifield field to fx_cgen substructure.
284 * cgen.h (GAS_CGEN_MAX_FIXUPS): Bump from 3 up to 32.
285 * symbols.h (symbol_relc_make_sym,value,expr): New prototypes.
286
287 2007-02-03 DJ Delorie <dj@delorie.com>
288
289 * config/tc-m32c.c (m32c_cons_fix_new): New. Added to support 3
290 byte relocs.
291 * config/tc-m32c.h (TC_CONS_FIX_NEW): Define.
292 (m32c_cons_fix_new): Prototype.
293
294 2007-02-02 Bob Wilson <bob.wilson@acm.org>
295
296 * config/tc-xtensa.c (xg_build_to_insn): Use tinsn_init.
297 (xg_expand_assembly_insn, istack_push_space, istack_pop): Likewise.
298
299 2007-02-02 Bob Wilson <bob.wilson@acm.org>
300
301 * config/tc-xtensa.c (SUFFIX_MAP, suffix_relocs): New.
302 (xtensa_elf_suffix): Use suffix_relocs instead of local mapping table.
303 (map_suffix_reloc_to_operator): New.
304 (map_operator_to_reloc): New.
305 (expression_maybe_register): Fix incorrect test of return value from
306 xtensa_elf_suffix. Rearrange to use map_suffix_reloc_to_operator.
307 (xg_assemble_literal, convert_frag_immed): Use map_operator_to_reloc.
308
309 2007-02-02 Bob Wilson <bob.wilson@acm.org>
310
311 * config/xtensa-istack.h (struct tinsn_struct): Delete fixup field.
312 (tinsn_get_tok): Delete prototype.
313 * config/tc-xtensa.c (tinsn_get_tok): Delete.
314
315 2007-02-02 Bob Wilson <bob.wilson@acm.org>
316
317 * config/xtensa-relax.h (struct build_instr): Delete id field.
318 * config/xtensa-relax.c (widen_spec_list): Remove zeros from LITERAL
319 and LABEL tokens.
320 (append_literal_op, append_label_op): Remove litnum/labnum arguments;
321 set op_data fields to zero.
322 (parse_id_constant): Delete.
323 (build_transition): Remove code to handle numbered literals and labels.
324
325 2007-02-02 Bob Wilson <bob.wilson@acm.org>
326
327 * config/xtensa-relax.c (build_transition): Remove code after as_fatal.
328 (build_transition_table): Likewise.
329
330 2007-02-01 Bob Wilson <bob.wilson@acm.org>
331
332 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Delete use of
333 fx_tcbit.
334 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Remove.
335
336 2007-02-02 Alan Modra <amodra@bigpond.net.au>
337
338 * write.h (struct fix <fx_pcrel_adjust, fx_size>): Move.
339 (struct fix <fx_plt>): Rename to tcbit2.
340 * write.c (fix_new_internal): Adjust.
341 (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
342 * config/tc-arm.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
343 * config/tc-cris.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
344 * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
345 * config/tc-i960.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
346 * config/tc-sh.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
347 * config/tc-sh64.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
348 * config/tc-sparc.h (TC_FORCE_RELOCATION_LOCAL): Likewise.
349 * config/tc-msp430.c (msp430_force_relocation_local): Likewise.
350 * config/tc-ia64.c (emit_one_bundle): Don't set fx_plt.
351 * config/tc-ia64.h (TC_FORCE_RELOCATION_LOCAL): Don't test fx_plt.
352 Instead, compare fx_r_type.
353 * config/tc-xtensa.c (xg_add_opcode_fix, md_apply_fix): Use
354 fx_tcbit in place of fx_plt.
355 * config/tc-xtensa.h (TC_FORCE_RELOCATION_LOCAL): Define.
356 * doc/internals.texi (TC_FORCE_RELOCATION_LOCAL): Remove reference
357 to fx_plt.
358
359 2007-01-30 Nick Clifton <nickc@redhat.com>
360
361 * as.c (main): Mark symbols created via the --defsym command line
362 option as volatile so that they can be overridden later on by a
363 .set directive. This maintains compatibility with the behaviour
364 of earlier versions of the assembler.
365 * doc/as.texinfo (--defsym): Document that the defined symbol's
366 value can be overridden via a .set directive.
367
368 2007-01-28 H.J. Lu <hongjiu.lu@intel.com>
369
370 * config/tc-i386.c (swap_imm_operands): Renamed to ...
371 (swap_2_operands): This. Take 2 ints.
372 (md_assemble): Updated.
373 (swap_operands): Call swap_2_operands to swap 2 operands.
374
375 2007-01-24 DJ Delorie <dj@redhat.com>
376
377 * config/tc-m32c.c (md_pseudo_table): Add .3byte.
378
379 2007-01-22 Nick Clifton <nickc@redhat.com>
380
381 PR gas/3871
382 * tc-score.c: Remove unnecessary uses of _().
383 Make the err_msg[] a file level local array in order to save
384 storage space.
385 Remove unnecessary sprintf()s.
386
387 2007-01-18 Mei Ligang <ligang@sunnorth.com.cn>
388
389 PR gas/3871
390 * config/tc-score.c : Using _() for const string.
391 Do not assign inst.error with a local string pointer.
392 (md_section_align): Pad section.
393
394 2007-01-13 H.J. Lu <hongjiu.lu@intel.com>
395
396 * config/tc-i386.c (build_modrm_byte): Check number of operands
397 when procssing memory/register operand.
398
399 2007-01-12 Nick Clifton <nickc@redhat.com>
400
401 PR gas/3856
402 * macro.c (expand_irp): Do not ignore spaces inside quoted
403 strings.
404
405 2007-01-12 Alan Modra <amodra@bigpond.net.au>
406
407 * config/tc-spu.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
408 * config/tc-m32r.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
409 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Delete.
410 (TC_FORCE_RELOCATION): Define.
411 (TC_FORCE_RELOCATION_LOCAL): Define.
412 * config/tc-mn10300.c (mn10300_fix_adjustable): Adjust.
413
414 2007-01-12 Alan Modra <amodra@bigpond.net.au>
415
416 * input-file.c (input_file_open): Check fgets return.
417
418 2007-01-11 Paul Brook <paul@codesourcery.com>
419
420 * config/tc-arm.c (do_t_add_sub): Use Rd and Rs.
421
422 2007-01-11 Nick Clifton <nickc@redhat.com>
423
424 PR gas/3707
425 * config/tc-arm.c (md_begin): Cope with an NULL mcpu_fpu_opt
426 variable.
427
428 * config/tc-mcore.c (md_number_to_chars): Use
429 number_to_chars_{big|little}endian.
430
431 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
432
433 * config/tc-m68k.c (m68k_archs, m68k_cpus): Treat Fido as an
434 architecture by itself.
435 (m68k_ip): Don't issue a warning for tbl instructions on fido.
436 (m68k_elf_final_processing): Treat Fido as an architecture by
437 itself.
438
439 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
440
441 * configure.tgt: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*
442
443 2007-01-05 H.J. Lu <hongjiu.lu@intel.com>
444
445 * config/tc-i386.c (set_intel_syntax): Update set_intel_syntax
446 depending on allow_naked_reg.
447
448 2007-01-04 Paul Brook <paul@codesourcery.com>
449
450 * config/tc-arm.c (do_cpsi): Set mmod bit for 2 argument form.
451
452 2007-01-04 H.J. Lu <hongjiu.lu@intel.com>
453
454 PR gas/3830
455 * config/tc-i386.c (register_prefix): New.
456 (set_intel_syntax): Set set_intel_syntax to "" if register
457 prefix isn't needed.
458 (check_byte_reg): Use register_prefix for error message.
459 (check_long_reg): Likewise.
460 (check_qword_reg): Likewise.
461 (check_word_reg): Likewise.
462
463 2006-01-04 Julian Brown <julian@codesourcery.com>
464
465 * config/tc-arm.c (do_neon_shl_imm): Swap rN, rM.
466 (do_neon_qshl_imm): Likewise.
467 (do_neon_rshl): New function. Handle rounding variants of
468 v{q}shl-by-register.
469 (insns): Use do_neon_rshl for vrshl, vqrshl.
470
471 2007-01-04 Paul Brook <paul@codesourcery.com>
472
473 * config/tc-arm.c (NEON_ENC_TAB): Fix encoding of vclt, vcle, vaclt
474 and vacle.
475
476 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
477
478 * config/tc-i386.c (swap_operands): Remove branches.
479
480 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
481
482 * config/tc-i386.c: Update copyright year.
483 * config/tc-i386.h: Likewise.
484
485 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
486
487 * config/tc-i386.c (smallest_imm_type): Return unsigned int
488 instead of int.
489
490 2007-01-03 H.J. Lu <hongjiu.lu@intel.com>
491
492 * config/tc-i386.c: Convert to ISO C90 formatting
493 * config/tc-i386.h: Likewise.
494
495 2007-01-03 David Daney <ddaney@avtrex.com>
496
497 * config/tc-mips.c (md_show_usage): Clean up -mno-shared
498 documentation.
499
500 For older changes see ChangeLog-2006
501 \f
502 Local Variables:
503 mode: change-log
504 left-margin: 8
505 fill-column: 74
506 version-control: never
507 End: