gas: blackfin: reject invalid register destinations for vector add/sub
[binutils.git] / gas / ChangeLog
blob61478ffe405329258f3d8b1cfd0f09bc2500ac50
1 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
3         * config/bfin-parse.y (dual 32bit add/sub): Return yyerror when dest
4         reg $1 is the same as dest reg $7.
5         (quad 16bit add/sub): Return yyerror when dest reg $1 is the same as
6         dest reg $7.
8 2011-03-24  Mike Frysinger  <vapier@gentoo.org>
10         * config/bfin-parse.y (check_macfuncs): Clarify error message when
11         P is mismatched.  Check destination regno are off by one when P is
12         set, or are equal when P is not set.
14 2011-03-23  Mike Frysinger  <vapier@gentoo.org>
16         * config/bfin-parse.y (SEARCH): Return yyerror when dest reg $2 is
17         the same as dest reg $4.
18         (BITMUX): Return yyerror when dest reg $3 is the same as dest reg $5.
20 2011-03-23  Eric B. Weddington  <eric.weddington@atmel.com>
22         * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u,
23         atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu.
24         * doc/c-avr.texi: Document new device names.
26 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
28         * config/tc-avr.c (struct avr_opcodes_s): Add opcode field.
29         (AVR_INSN): Change definition to match.
30         (avr_opcodes): Likewise, change to match.
31         (mcu_types): Add XMEGA architecture names and new XMEGA device names.
32         (md_show_usage): Add XMEGA architecture names.
33         (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices.
34         Add support for SPM Z+ instruction.
35         * doc/c-avr.texi: Add documentation for XMEGA architectures and
36         devices.
38 2011-03-21  Eric B. Weddington  <eric.weddington@atmel.com>
40         * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
42 2011-03-18  Alan Modra  <amodra@gmail.com>
44         * config/obj-elf.c (elf_frob_symbol): Report S_SET_SIZE symbol
45         on .size expression errors rather than symbols in the size expression.
47 2011-03-18  Alan Modra  <amodra@gmail.com>
49         * input-scrub.c (line_numberT): Delete.
50         (input_scrub_close): Reset line counters.
51         * messages.c (as_show_where): Don't print invalid line number.
52         (as_warn_internal, as_bad_internal): Likewise.
54 2011-03-18  Alan Modra  <amodra@gmail.com>
56         * read.c (read_a_source_file): Remove md_after_pass_hook.
57         Move "quit" label before set of dot_symbol.
58         * config/tc-d10v.h (md_after_pass_hook): Don't define.
59         * config/tc-d30v.h (md_after_pass_hook): Likewise.
60         * config/tc-m32r.h (md_after_pass_hook): Likewise.
61         (md_cleanup): Define to call m32r_fill_insn.
63 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65         * config/tc-s390.c (md_parse_option): Add -march=all option which
66         switches to the highest available CPU.
68 2011-03-17  Alan Modra  <amodra@gmail.com>
70         PR 12569
71         * expr.c (operand): Correct passing of "mode" to expr.
72         * read.c (do_org): Allow expr_section.
73         (get_known_segmented_expression): Don't assert anything about the
74         segment.
76 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
78         * as.c (show_usage): Add --size-check=.
79         (parse_args): Add and handle OPTION_SIZE_CHECK.
81         * as.h (flag_size_check): New.
83         * config/obj-elf.c (elf_frob_symbol): Use as_bad to report
84         bad .size directive only for --size-check=error.
86         * doc/as.texinfo: Document --size-check=.
88 2011-03-14  Mike Frysinger  <vapier@gentoo.org>
90         * config/tc-bfin.c (bfin_cpus[]): Add 0.4 for
91         bf542/bf544/bf547/bf548/bf549.
93 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
95         * config/tc-arm.c (md_pcrel_from_section): Use S_FORCE_RELOC to
96         determine whether a relocation is needed.
97         (md_apply_fix, arm_apply_sym_value): Likewise.
99 2011-03-14  Richard Sandiford  <richard.sandiford@linaro.org>
101         * config/tc-arm.c (arm_adjust_symtab): Set the branch type
102         for Thumb symbols.
104 2011-03-11  Nick Clifton  <nickc@redhat.com>
106         * remap.c (remap_debug_filename): Always allocate a buffer for the
107         returned pointer.
108         * stabs.c (stabs_generate_asm_file): Free the pointer returned by
109         remap_debug_filename.
111 2011-03-10  Michael Snyder  <msnyder@vmware.com>
113         Revert the following change:
114         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
115         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
117 2011-03-10  Alan Modra  <amodra@gmail.com>
119         * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS,
120         TARGET_SYMBOL_FIELDS): Don't define.
121         * gas/config/tc-arc.c (arc_common): Use correct symbol "local" field.
123 2011-03-09  Michael Snyder  <msnyder@vmware.com>
125         * dwarf2dbg.c (out_file_list): Free malloced 'dir'.
126         (out_debug_info): Free malloced 'dirname' and 'comp_dir'.
127         (emit_fixed_inc_line_addr): Assign instead of conditional in
128         assert.
130 2011-03-05  H.J. Lu  <hongjiu.lu@intel.com>
132         * config/obj-elf.c (elf_frob_symbol): Mention symbol name in
133         non-constant .size expression.
135 2011-03-02  Nick Clifton  <nickc@redhat.com>
137         * ecoff.c: Incldue filenames.h
139 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
141         * depend.c (register_dependency): Use filename_(n)cmp.
142         * dwarf2dbg.c (get_filenum): Likewise.
143         * ecoff.c (add_file): Likewise.
144         (ecoff_generate_asm_lineno): Likewise.
145         * input-scrub.c (new_logical_line_flags): Likewise.
146         * listing.c (file_info): Likewise.
147         (listing_newline): Likewise.
148         * remap.c (remap_debug_filename): Likewise.
149         * stabs.c (generate_asm_file): Likewise.
150         (stabs_generate_asm_lineno): Likewise.
152 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
154         * config/tc-mips.c (append_insn): Disable branch relaxation for
155         DSP instructions.
157 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
159         * config/tc-mips.c (macro): Handle M_PREF_AB.
161 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
163         * config/tc-mips.c (RELAX_BRANCH_ENCODE): Encode the temporary
164         register to use.
165         (RELAX_BRANCH_UNCOND): Adjust accordingly.
166         (RELAX_BRANCH_LIKELY): Likewise.
167         (RELAX_BRANCH_LINK): Likewise.
168         (RELAX_BRANCH_TOOFAR): Likewise.
169         (RELAX_BRANCH_AT): New macro.
170         (append_insn): Encode the temporary register to use in standard
171         MIPS branch relaxation.
172         (relaxed_branch_length): Update according to changes to
173         RELAX_BRANCH_ENCODE.
174         (md_convert_frag): Use the encoded register as the temporary.
176 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
178         * config/tc-mips.c (mips_fix_adjustable): On REL targets also
179         reject PC-relative relocations.
181 2011-02-28  Maciej W. Rozycki  <macro@codesourcery.com>
183         * config/tc-mips.c (md_convert_frag): Correct message
184         capitalization.
186 2011-02-28  Alan Modra  <amodra@gmail.com>
188         * symbols.c (report_op_error): Remove unnecessary forward declaration.
189         Add "op" parameter.  Report operator and operand segments in error
190         message, not operand symbols.
191         (resolve_symbol_value): Always set segment for equated symbols, not
192         just when finalizing.  Adjust report_op_error calls.
194 2011-02-25  H.J. Lu  <hongjiu.lu@intel.com>
196         * config/tc-i386.c (reloc): Don't sign-check 4-byte relocations
197         if 64bit relocations aren't allowed.
199 2011-02-25  Alan Modra  <amodra@gmail.com>
201         PR gas/12519
202         * config/obj-elf.c (elf_frob_symbol): Properly handle size expression.
204 2011-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
206         * config/tc-mips.c (mips_ip) <'o'>: Remove duplicate
207         initialization of offset_reloc.
209 2011-02-15  Richard Henderson  <rth@redhat.com>
211         * dw2gencfi.c (dot_cfi_dummy): New.
212         (cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
213         * read.c (pobegin): Unconditionally call cfi_pop_insert.
215 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
217         * configure: Regenerate.
219 2011-02-13  Mike Frysinger  <vapier@gentoo.org>
221         * config/bfin-lex.l (BYTEOP2M): Remove tokenization.
222         * config/bfin-parse.y (BYTEOP2M): Delete token.
223         (asm_1): Remove BYTEOP2M insn matching.
225 2011-02-12  Mike Frysinger  <vapier@gentoo.org>
227         * config/bfin-defs.h: Include opcode/bfin.h.
228         (M_S2RND, M_T, M_W32, M_FU, M_TFU, M_IS, M_ISS2, M_IH, M_IU): Delete.
230 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
232         * doc/c-bfin.texi (Instruction Delimiting): Fix occur typo.
233         (Modify Registers): Fix subtracted typo.
234         (.byte2): Extend and swap descriptions with .byte4.
235         (.byte4): Extend and swap descriptions with .byte2.
236         (.db, .dw, .dd): Document behavior.
238 2011-02-11  Mike Frysinger  <vapier@gentoo.org>
240         * config/bfin-parse.y (TESTSET): Reject REG_SP and REG_FP.
242 2011-02-11  Alan Modra  <amodra@gmail.com>
244         * doc/c-ppc.texi (PowerPC-Opts <-nops>): Clarify.
246 2011-02-10  Alan Modra  <amodra@gmail.com>
248         * doc/as.texinfo (Overview): Add missing markup around Blackfin
249         and PowerPC options.
251 2011-02-10  Alan Modra  <amodra@gmail.com>
253         * config/tc-ppc.c (md_show_usage): Remove -l and -b.  Add -K PIC.
254         * doc/as.texinfo: Refer to and include c-ppc.texi for PowerPC options.
255         (Overview <Target PowerPC options>): Add a number of missing options.
256         * doc/c-ppc.texi: Likewise.  Add markup for use in manpage generation.
258 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
260         PR gas/6957
261         * config/tc-i386.c (i386_align_code): Use f32_patt when tuning
262         for i686.
264 2011-02-08  H.J. Lu  <hongjiu.lu@intel.com>
266         * config/tc-i386.c (set_cpu_arch): Also update cpu_arch_isa_flags
267         for ISA extensions.
268         (md_parse_option): Likewise.
270 2011-02-04  Bernd Schmidt  <bernds@codesourcery.com>
272         * doc/as.texinfo (Target TIC6X options): Don't mention "-matomic".
273         * doc/c-tic6x.texi (TIC6X Directives): Don't mention ".atomic".
274         (TIC6X Options): Don't mention "-matomic".
275         * config/tc-tic6x.c (OPTION_MATOMIC, OPTION_MNO_ATOMIC): Delete.
276         (md_longopts): Remove corresponding entries.
277         (md_parse_option): Don't handle them.
278         (md_show_usage): Don't document them.
279         (tic6x_atomic): Delete variable.
280         (tic6x_update_features): Always copy tic6x_arch_enable to
281         tic6x_features.
282         (tic6x_arch_enable): Remove references to TIC6X_INSN_ATOMIC.
283         (s_tic6x_atomic, s_tic6x_noatomic): Remove functions.
284         (md_pseudo_table): Remove ".atomic" and ".noatomic".
286 2011-01-31  Nick Clifton  <nickc@redhat.com>
288         * write.c (write_contents): Include output file name and bfd error
289         value when reporting the inability to write to the output file.
290         * config/tc-rx.c (rx_handle_align): Do not insert NOPs into align
291         frag that has a non-zero fill value.
293 2011-01-27  DJ Delorie  <dj@redhat.com>
295         * config/tc-rx.c (md_convert_frag): If we can't compute the target
296         address, zero out the values stored in the object file to make
297         objdump's output consistent.
299 2011-01-26  Kai Tietz  <kai.tietz@onevision.com>
301         * config/tc-i386.c (md_begin): Set for x64 windows COFF target
302         x86_dwarf2_return_column to 32.
304 2011-01-20  Nick Clifton  <nickc@redhat.com>
306         PR gas/12384
307         * config/tc-h8300.c (constant_fits_width_p): Use correct type for
308         comparison.
310 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
312         * write.c (compress_debug): Return if section size is smaller
313         than 32 bytes.
315 2011-01-18  H.J. Lu  <hongjiu.lu@intel.com>
317         PR gas/12409
318         * write.c (compress_debug): Return if section size is 0.
320 2011-01-18  Mingfeng Wu  <mingfeng@faraday-tech.com>
322         * config/tc-arm.c (arm_cpus): Add Faraday ARMv5TE compatible
323         cores: fa606te, fa616te, fmp626.  Modify the VFP of fa626te.
324         * doc/c-arm.texi (ARM Options): Add -mcpu={fa606te, fa616te,
325         fmp626} options.
327 2011-01-18  Nick Clifton  <nickc@redhat.com>
329         PR gas/12390
330         * doc/all.texi: Add NS32K
331         * doc/as.texinfo: Remove target specific details of which
332         characters act as comment initiators and statement separators into
333         individual target specific files.
334         * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of
335         the hash character at the start of a line.
336         * doc/c-arm.texi (ARM-Chars): Likewise.
337         * doc/c-avr.texi (AVR-Chars): Likewise.
338         * doc/c-d10v.texi (D10V-Chars): Likewise.
339         * doc/c-d30v.texi (D30V-Chars): Likewise.
340         * doc/c-mmix.texi (MMIX-Chars): Likewise.
341         * doc/c-s390.texi (s390 characters): Likewise.
342         * doc/c-sh.texi (SH-Chars): Likewise.
343         * doc/c-sh64.texi (SH64-Chars): Likewise.
344         * doc/c-sparc.texi (SPARC-Chars): Likewise.
345         * doc/c-tic6x.texi (TIC6X Syntax): Likewise.
346         * doc/c-xtensa.texi (Xtensa Syntax): Likewise.
347         * doc/c-z80.texi (Z80-Chars): Likewise.
348         * doc/c-z8k.texi (Z8000-Chars): Likewise.
349         * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character.
350         * doc/c-arc.texi (ARC-Chars): Fill in this subsection.
351         * doc/c-bfin.texi (Blackfin Syntax): Document line comment and
352         line separator characters.
353         * doc/c-cr16.texi (CR16 Syntax): Likewise.
354         * doc/c-i386.texi (i386-Chars): Likewise.
355         * doc/c-i860.texi (i860-Chars): Likewise.
356         * doc/c-i960.texi (i960-Chars): Likewise.
357         * doc/c-ip2k.texi (IP2K-Chars): Likewise.
358         * doc/c-lm32.texi (LM32-Chars): likewise.
359         * doc/c-m32c.texi (M32C-Chars): Likewise.
360         * doc/c-m68hc11.texi (M68HC11-syntax): Likewise.
361         * doc/c-m68k.texi (M68K-Chars): Likewise.
362         * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise.
363         * doc/c-msp430.texi (MSP430-Chars): Likewise.
364         * doc/c-mt.texi (MT-Chars): Likewise.
365         * doc/c-ns32k.texi (NS32K-Chars): Likewise.
366         * doc/c-pj.texi (PJ-Chars): Likewise.
367         * doc/c-ppc.texi (PowerPC-Chars): Likewise.
368         * doc/c-rx.texi (RX-Chars): Likewise.
369         * doc/c-score.texi (SCORE-Chars): Likewise.
370         * doc/c-tic54x.texi (TIC54X-Chars): Likewise.
371         * doc/c-v850.texi (V850-Chars): Likewise.
372         * doc/c-vax.texi (VAX-Chars): Likewise.
373         * doc/c-xc16x.texi (xc16x-Chars): Likewise.
375 2011-01-17  Quentin Neill  <quentin.neill@amd.com>
377         * config/tc-i386.c (cpu_arch): Add CPU_TBM_FLAGS.
379         * doc/c-i386.texi (i386-TBM): New section.
381 2011-01-16  H.J. Lu  <hongjiu.lu@intel.com>
383         * config/tc-i386.c (disallow_64bit_disp): Renamed to ...
384         (disallow_64bit_reloc): This.
385         (md_assemble): Don't check movabs for x32 mode here.
386         (i386_target_format): Updated.
387         (tc_gen_reloc): Check if 64bit relocations are allowed.
389 2011-01-15  H.J. Lu  <hongjiu.lu@intel.com>
391         * config/tc-i386.c (disallow_64bit_disp): New.
392         (x86_elf_abi): Replace X86_64_LP64_ABI/X86_64_ILP32_ABI with
393         X86_64_ABI/X86_64_X32_ABI.
394         (md_assemble): Don't allow movabs with relocation in x32 mode.
395         (i386_target_format): Updated.
397 2011-01-14  H.J. Lu  <hongjiu.lu@intel.com>
399         * config/tc-i386.c (OPTION_N32): Renamed to ...
400         (OPTION_X32): This.
401         (md_longopts): Replace n32 with x32.
402         (md_parse_option): Updated.
403         (md_show_usage): Likewise.
405         * doc/c-i386.texi: Replace --n32 with --x32.
407 2011-01-11  Mingjie Xing  <mingjie.xing@gmail.com>
409         * config/tc-mips.c (mips_ip): Update error messages.  Take an
410         unadjusted offset for "+c" argument.
412 2011-01-10  Nick Clifton  <nickc@redhat.com>
414         * config/tc-i386.c (x86_elf_abi): Only define for targets that use
415         it.
417 2011-01-10  Nick Clifton  <nickc@redhat.com>
419         * config/tc-arm.c (s_arm_tls_desceq): Move code into ELF-only
420         part of the file.
422 2011-01-10  Nathan Sidwell  <nathan@codesourcery.com>
423             Glauber de Oliveira Costa  <glommer@gmail.com>
425         * doc/c-arm.texi: Document TLSDESC and TLSCALL relocations, and
426         .tlsdescseq directive.
427         * config/tc-arm.c (arm_typed_reg_parse): Check for potential reloc
428         following a symbol.
429         (s_arm_tls_descseq): New directive.
430         (md_pseudo_table): Add it.
431         (encode_branch): Allow TLS_CALL relocs too.
432         (do_t_blx, do_t_branch23): Use encode_branch.
433         (reloc_names): Add tlsdesc and tlscall.
434         (md_apply_fix): Process tls desc relocations.
435         (tc_gen_reloc): Likewise.
436         (arm_fix_adjustable): Likewise.
438 2011-01-07  Quentin Neill  <quentin.neill@amd.com>
440         * config/tc-i386.c (cpu_arch): Add CPU_BMI_FLAGS.
442         * doc/c-i386.texi (i386-BMI): New section.
444 2011-01-06  Paul Koning  <ni1d@arrl.net>
446         * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative
447         references to absolute addresses.
449 2011-01-05  DJ Delorie  <dj@redhat.com>
451         * config/tc-rx.c (tc_gen_reloc): Emit an RX_OP_NEG expression
452         instead of an RH_NEG32 one.
454 2011-01-05  Jonathan Wakely  <jwakely.gcc@gmail.com>
456         * doc/c-i386.texi: Clarify --n32.
458 2011-01-04  H.J. Lu  <hongjiu.lu@intel.com>
460         * config/tc-i386.c (build_modrm_byte): Allow encoding 32/64bit
461         integer registers in VEX.vvvv.  Check register-only source
462         operand when two source operands are swapped.  Properly update
463         destination when two source operands are swapped.
465 2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
467         * gas.c (parse_args): Update copyright to 2011.
469 For older changes see ChangeLog-2010
471 Local Variables:
472 mode: change-log
473 left-margin: 8
474 fill-column: 74
475 version-control: never
476 End: