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