gas/
[binutils.git] / gas / ChangeLog
blob9f65957411a584904d511ba62fc145c58f02fcef
1 2011-03-18  Alan Modra  <amodra@gmail.com>
3         * input-scrub.c (line_numberT): Delete.
4         (input_scrub_close): Reset line counters.
5         * messages.c (as_show_where): Don't print invalid line number.
6         (as_warn_internal, as_bad_internal): Likewise.
8 2011-03-18  Alan Modra  <amodra@gmail.com>
10         * read.c (read_a_source_file): Remove md_after_pass_hook.
11         Move "quit" label before set of dot_symbol.
12         * config/tc-d10v.h (md_after_pass_hook): Don't define.
13         * config/tc-d30v.h (md_after_pass_hook): Likewise.
14         * config/tc-m32r.h (md_after_pass_hook): Likewise.
15         (md_cleanup): Define to call m32r_fill_insn.
17 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19         * config/tc-s390.c (md_parse_option): Add -march=all option which
20         switches to the highest available CPU.
22 2011-03-17  Alan Modra  <amodra@gmail.com>
24         PR 12569
25         * expr.c (operand): Correct passing of "mode" to expr.
26         * read.c (do_org): Allow expr_section.
27         (get_known_segmented_expression): Don't assert anything about the
28         segment.
30 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
32         * as.c (show_usage): Add --size-check=.
33         (parse_args): Add and handle OPTION_SIZE_CHECK.
35         * as.h (flag_size_check): New.
37         * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
38         bad .size directive only for --size-check=error.
40         * doc/as.texinfo: Document --size-check=.
42 2011-03-14  Mike Frysinger  <vapier@gentoo.org>
44         * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
45         bf542/bf544/bf547/bf548/bf549.
47 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
49         * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
50         determine whether a relocation is needed.
51         (md_apply_fix, arm_apply_sym_value): Likewise.
53 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
55         * config/tc-arm.c (arm_adjust_symtab): Set the branch type
56         for Thumb symbols.
58 2011-03-11  Nick Clifton  <nickc@redhat.com>
60         * remap.c (remap_debug_filename): Always allocate a buffer for the
61         returned pointer.
62         * stabs.c (stabs_generate_asm_file): Free the pointer returned by
63         remap_debug_filename.
65 2011-03-10  Michael Snyder  <msnyder@vmware.com>
67         Revert the following change:
68         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
69         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
71 2011-03-10  Alan Modra  <amodra@gmail.com>
73         * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
74         TARGET_SYMBOL_FIELDS): Don't define.
75         * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
77 2011-03-09  Michael Snyder  <msnyder@vmware.com>
79         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
80         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
81         (emit_fixed_inc_line_addr): Assign instead of conditional in
82         assert.
84 2011-03-05  H.J. Lu  <hongjiu.lu@intel.com>
86         * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
87         non-constant .size expression.
89 2011-03-02  Nick Clifton  <nickc@redhat.com>
91         * ecoff.c: Incldue filenames.h
93 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
95         * depend.c (register_dependency): Use filename_(n)cmp.
96         * dwarf2dbg.c (get_filenum): Likewise.
97         * ecoff.c (add_file): Likewise.
98         (ecoff_generate_asm_lineno): Likewise.
99         * input-scrub.c (new_logical_line_flags): Likewise.
100         * listing.c (file_info): Likewise.
101         (listing_newline): Likewise.
102         * remap.c (remap_debug_filename): Likewise.
103         * stabs.c (generate_asm_file): Likewise.
104         (stabs_generate_asm_lineno): Likewise.
106 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
108         * config/tc-mips.c (append_insn): Disable branch relaxation for
109         DSP instructions.
111 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
113         * config/tc-mips.c (macro): Handle M_PREF_AB.
115 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
117         * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
118         register to use.
119         (RELAX_BRANCH_UNCOND): Adjust accordingly.
120         (RELAX_BRANCH_LIKELY): Likewise.
121         (RELAX_BRANCH_LINK): Likewise.
122         (RELAX_BRANCH_TOOFAR): Likewise.
123         (RELAX_BRANCH_AT): New macro.
124         (append_insn): Encode the temporary register to use in standard
125         MIPS branch relaxation.
126         (relaxed_branch_length): Update according to changes to
127         RELAX_BRANCH_ENCODE.
128         (md_convert_frag): Use the encoded register as the temporary.
130 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
132         * config/tc-mips.c (mips_fix_adjustable): On REL targets also
133         reject PC-relative relocations.
135 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
137         * config/tc-mips.c (md_convert_frag): Correct message
138         capitalization.
140 2011-02-28  Alan Modra  <amodra@gmail.com>
142         * symbols.c (report_op_error): Remove unnecessary forward declaration.
143         Add "op" parameter.  Report operator and operand segments in error
144         message, not operand symbols.
145         (resolve_symbol_value): Always set segment for equated symbols, not
146         just when finalizing.  Adjust report_op_error calls.
148 2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
150         * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
151         if 64bit relocations aren't allowed.
153 2011-02-25  Alan Modra  <amodra@gmail.com>
155         PR gas/12519
156         * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
158 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
160         * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
161         initialization of offset_reloc.
163 2011-02-15  Richard Henderson  <rth@redhat.com>
165         * dw2gencfi.c (dot_cfi_dummy): New.
166         (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
167         * read.c (pobegin): Unconditionally call cfi_pop_insert.
169 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
171         * configure: Regenerate.
173 2011-02-13  Mike Frysinger  <vapier@gentoo.org>
175         * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
176         * config/bfin-parse.y (BYTEOP2M): Delete token.
177         (asm_1): Remove BYTEOP2M insn matching.
179 2011-02-12  Mike Frysinger  <vapier@gentoo.org>
181         * config/bfin-defs.h: Include opcode/bfin.h.
182         (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
184 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
186         * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
187         (Modify Registers): Fix subtracted typo.
188         (.byte2): Extend and swap descriptions with .byte4.
189         (.byte4): Extend and swap descriptions with .byte2.
190         (.db, .dw, .dd): Document behavior.
192 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
194         * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
196 2011-02-11  Alan Modra  <amodra@gmail.com>
198         * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
200 2011-02-10  Alan Modra  <amodra@gmail.com>
202         * doc/as.texinfo (Overview): Add missing markup around Blackfin
203         and PowerPC options.
205 2011-02-10  Alan Modra  <amodra@gmail.com>
207         * config/tc-ppc.c (md_show_usage): Remove -l and -b.  Add -K PIC.
208         * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
209         (Overview <Target PowerPC options>): Add a number of missing options.
210         * doc/c-ppc.texi: Likewise.  Add markup for use in manpage generation.
212 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
214         PR gas/6957
215         * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
216         for i686.
218 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
220         * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
221         for ISA extensions.
222         (md_parse_option): Likewise.
224 2011-02-04  Bernd Schmidt  <bernds@codesourcery.com>
226         * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
227         * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
228         (TIC6X Options): Don't mention "-matomic".
229         * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
230         (md_longopts): Remove corresponding entries.
231         (md_parse_option): Don't handle them.
232         (md_show_usage): Don't document them.
233         (tic6x_atomic): Delete variable.
234         (tic6x_update_features): Always copy tic6x_arch_enable to
235         tic6x_features.
236         (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
237         (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
238         (md_pseudo_table): Remove ".atomic" and ".noatomic".
240 2011-01-31  Nick Clifton  <nickc@redhat.com>
242         * write.c (write_contents): Include output file name and bfd error
243         value when reporting the inability to write to the output file.
244         * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
245         frag that has a non-zero fill value.
247 2011-01-27  DJ Delorie  <dj@redhat.com>
249         * config/tc-rx.c (md_convert_frag): If we can't compute the target
250         address, zero out the values stored in the object file to make
251         objdump's output consistent.
253 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
255         * config/tc-i386.c (md_begin): Set for x64 windows COFF target
256         x86_dwarf2_return_column to 32.
258 2011-01-20  Nick Clifton  <nickc@redhat.com>
260         PR gas/12384
261         * config/tc-h8300.c (constant_fits_width_p): Use correct type for
262         comparison.
264 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
266         * write.c (compress_debug): Return if section size is smaller
267         than 32 bytes.
269 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
271         PR gas/12409
272         * write.c (compress_debug): Return if section size is 0.
274 2011-01-18  Mingfeng Wu  <mingfeng@faraday-tech.com>
276         * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
277         cores: fa606te, fa616te, fmp626.  Modify the VFP of fa626te.
278         * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
279         fmp626} options.
281 2011-01-18  Nick Clifton  <nickc@redhat.com>
283         PR gas/12390
284         * doc/all.texi: Add NS32K
285         * doc/as.texinfo: Remove target specific details of which
286         characters act as comment initiators and statement separators into
287         individual target specific files.
288         * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
289         the hash character at the start of a line.
290         * doc/c-arm.texi (ARM-Chars): Likewise.
291         * doc/c-avr.texi (AVR-Chars): Likewise.
292         * doc/c-d10v.texi (D10V-Chars): Likewise.
293         * doc/c-d30v.texi (D30V-Chars): Likewise.
294         * doc/c-mmix.texi (MMIX-Chars): Likewise.
295         * doc/c-s390.texi (s390 characters): Likewise.
296         * doc/c-sh.texi (SH-Chars): Likewise.
297         * doc/c-sh64.texi (SH64-Chars): Likewise.
298         * doc/c-sparc.texi (SPARC-Chars): Likewise.
299         * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
300         * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
301         * doc/c-z80.texi (Z80-Chars): Likewise.
302         * doc/c-z8k.texi (Z8000-Chars): Likewise.
303         * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
304         * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
305         * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
306         line separator characters.
307         * doc/c-cr16.texi (CR16 Syntax): Likewise.
308         * doc/c-i386.texi (i386-Chars): Likewise.
309         * doc/c-i860.texi (i860-Chars): Likewise.
310         * doc/c-i960.texi (i960-Chars): Likewise.
311         * doc/c-ip2k.texi (IP2K-Chars): Likewise.
312         * doc/c-lm32.texi (LM32-Chars): likewise.
313         * doc/c-m32c.texi (M32C-Chars): Likewise.
314         * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
315         * doc/c-m68k.texi (M68K-Chars): Likewise.
316         * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
317         * doc/c-msp430.texi (MSP430-Chars): Likewise.
318         * doc/c-mt.texi (MT-Chars): Likewise.
319         * doc/c-ns32k.texi (NS32K-Chars): Likewise.
320         * doc/c-pj.texi (PJ-Chars): Likewise.
321         * doc/c-ppc.texi (PowerPC-Chars): Likewise.
322         * doc/c-rx.texi (RX-Chars): Likewise.
323         * doc/c-score.texi (SCORE-Chars): Likewise.
324         * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
325         * doc/c-v850.texi (V850-Chars): Likewise.
326         * doc/c-vax.texi (VAX-Chars): Likewise.
327         * doc/c-xc16x.texi (xc16x-Chars): Likewise.
329 2011-01-17  Quentin Neill  <quentin.neill@amd.com>
331         * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
333         * doc/c-i386.texi (i386-TBM): New section.
335 2011-01-16  H.J. Lu  <hongjiu.lu@intel.com>
337         * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
338         (disallow_64bit_reloc): This.
339         (md_assemble): Don't check movabs for x32 mode here.
340         (i386_target_format): Updated.
341         (tc_gen_reloc): Check if 64bit relocations are allowed.
343 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
345         * config/tc-i386.c (disallow_64bit_disp): New.
346         (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
347         X86_64_ABI/X86_64_X32_ABI.
348         (md_assemble): Don't allow movabs with relocation in x32 mode.
349         (i386_target_format): Updated.
351 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
353         * config/tc-i386.c (OPTION_N32): Renamed to ...
354         (OPTION_X32): This.
355         (md_longopts): Replace n32 with x32.
356         (md_parse_option): Updated.
357         (md_show_usage): Likewise.
359         * doc/c-i386.texi: Replace --n32 with --x32.
361 2011-01-11  Mingjie Xing  <mingjie.xing@gmail.com>
363         * config/tc-mips.c (mips_ip): Update error messages.  Take an
364         unadjusted offset for "+c" argument.
366 2011-01-10  Nick Clifton  <nickc@redhat.com>
368         * config/tc-i386.c (x86_elf_abi): Only define for targets that use
369         it.
371 2011-01-10  Nick Clifton  <nickc@redhat.com>
373         * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
374         part of the file.
376 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
377             Glauber de Oliveira Costa  <glommer@gmail.com>
379         * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
380         .tlsdescseq directive.
381         * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
382         following a symbol.
383         (s_arm_tls_descseq): New directive.
384         (md_pseudo_table): Add it.
385         (encode_branch): Allow TLS_CALL relocs too.
386         (do_t_blx, do_t_branch23): Use encode_branch.
387         (reloc_names): Add tlsdesc and tlscall.
388         (md_apply_fix): Process tls desc relocations.
389         (tc_gen_reloc): Likewise.
390         (arm_fix_adjustable): Likewise.
392 2011-01-07  Quentin Neill  <quentin.neill@amd.com>
394         * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
396         * doc/c-i386.texi (i386-BMI): New section.
398 2011-01-06  Paul Koning  <ni1d@arrl.net>
400         * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
401         references to absolute addresses.
403 2011-01-05  DJ Delorie  <dj@redhat.com>
405         * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
406         instead of an RH_NEG32 one.
408 2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
410         * doc/c-i386.texi: Clarify --n32.
412 2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>
414         * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
415         integer registers in VEX.vvvv.  Check register-only source
416         operand when two source operands are swapped.  Properly update
417         destination when two source operands are swapped.
419 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
421         * gas.c (parse_args): Update copyright to 2011.
423 For older changes see ChangeLog-2010
425 Local Variables:
426 mode: change-log
427 left-margin: 8
428 fill-column: 74
429 version-control: never
430 End: