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