PR gas/6656
[binutils.git] / gas / ChangeLog
blob8cba2dbbb0cda9e38bac7fd99d4f3fbd4ded355c
1 2008-08-05  Alan Modra  <amodra@bigpond.net.au>
3         PR gas/6656
4         * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
5         debug info if we see compiler generated debug info.
6         (dwarf2_directive_loc): Likewise.  Remove redundant debug_type test.
8 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
10         * dwarf2dbg.c: Remove superfluous forward function declarations.
11         (DWARF2_FORMAT): Add section arg.
12         (out_header): New function, split out from..
13         (out_debug_line): ..here.
14         (out_debug_aranges): Use out_header.
15         (out_debug_abbrev): Add info_seg and line_seg args.  Use
16         DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
17         (out_debug_info): Use out_header.  Output 8 byte DW_AT_stmt_list
18         if line_seg is 64-bit.
19         (dwarf2_finish): Adjust out_debug_abbrev call.
20         * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
21         * config/tc-mips.c (mips_dwarf2_format): Likewise.
23 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
25         * Makefile.am (POTFILES.in): Set LC_ALL=C.
26         * Makefile.in: Regenerate.
27         * po/POTFILES.in: Regenerate.
29 2008-08-01  Peter Bergner  <bergner@vnet.ibm.com>
31         * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
32         Handle -mvsx and -mpower7.
33         (md_show_usage): Document -mpower7 and -mvsx.
34         * doc/as.texinfo (Target PowerPC): Document -mvsx.
35         * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
37 2008-07-31  Peter Bergner  <bergner@vnet.ibm.com>
39         * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
40         <cell>: Likewise.
42 2008-07-30  Michael J. Eager  <eager@eagercon.com>
44         * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
45         (md_show_usage): Likewise.
47 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
49         * messages.c, symbols.c, write.c: Silence gcc warnings.
51 2008-07-28  Ineiev  <ineiev@yahoo.co.uk>
53         * config/tc-i386.c (operand_type_check): Warning fix.
55 2008-07-26  Michael Eager <eager@eagercon.com>
57         * doc/as.texinfo: Add description of single-precision attribute.
59 2008-07-24  Jie Zhang  <jie.zhang@analog.com>
61         * config/bfin-parse.y (asm_1): Error if plain symbol is used
62         as load/store offset.
64 2008-07-22  Chao-ying Fu  <fu@mips.com>
66         * config/tc-mips.c (mips_ip): Reset s to argsStart.
68 2008-07-22  Jie Zhang  <jie.zhang@analog.com>
70         * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
72 2008-07-21  DJ Delorie  <dj@redhat.com>
74         * config/tc-h8300.c (fix_operand_size): Use the default size
75         specified by the .lbranch/.sbranch pseudos.
77 2008-07-18  DJ Delorie  <dj@redhat.com>
79         * config/tc-m32c.h (H_TICK_HEX): Define.
80         * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
81         (md_longopts): Add support for it.
82         (md_parse_option): Likewise.
83         * doc/as.texinfo (Overview): Add new m32c options.
84         * doc/c-m32c.texi (M32C-Modifiers): Likewise
86         * as.h: (enable_h_tick_hex): New.
87         * app.c (enable_h_tick_hex): New.
88         (LEX_IS_H): New.
89         (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
90         (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
91         style hex constants and convert the input stream to 0x00 style.
92         (do_scrub_chars): If a 'X style character constant is found after
93         a symbol character (like you're or X'00), warn the user.
95 2008-07-10  Richard Sandiford  <rdsandiford@googlemail.com>
97         * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
98         (mips_fix_adjustable): Likewise.
99         (mips_frob_file_after_relocs): Likewise.
101 2008-07-08  Nathan Sidwell  <nathan@codesourcery.com>
103         * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
104         about overriding an earlier setting.
106 2008-07-07  Adam Nemet  <anemet@caviumnetworks.com>
108         * config/tc-mips.c (NO_ISA_COP): New macro.
109         (COP_INSN): New macro.
110         (is_opcode_valid): Use them.
111         (macro) <ld_st>: Use them.  Don't accept coprocessor load store
112         insns based on the ISA if CPU is NO_ISA_COP.
113         <copz>: Likewise for coprocessor operations.
115 2008-07-07  Paul Brook  <paul@codesourcery.com>
117         * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
118         relocations.
120 2008-07-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
122         * configure.tgt: Add bfin-*-rtems*.
124 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
126         * config/tc-spu.c (md_apply_fix): Handle fully resolved
127         BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
129 2008-06-25  Peter Bergner  <bergner@vnet.ibm.com>
131         * config/tc-ppc.c (parse_cpu): Handle -m464.
132         (md_show_usage): Likewise.
134 2008-06-24  Eric B. Weddington  <eric.weddington@atmel.com>
136         Add support for ATtiny13A.
137         * config/tc-avr.c (mcu_types): Add attiny13a.
138         * doc/c-avr.texi: Likewise.
140 2008-06-24  Bob Wilson  <bob.wilson@acm.org>
141             Alan Modra  <amodra@bigpond.net.au>
143         * write.c (relax_segment <rs_org>): Include current stretch
144         value when calculating whether .org is backwards.
146 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
148         * configure: Regenerate.
150 2008-06-17  Nick Clifton  <nickc@redhat.com>
152         * app.c (do_scrub_chars): Do not UNGET an EOF value.
154 2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
156         PR gas/6607
157         * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
158         text_section.  Do the "stepping backwards" test for text_section
159         using unsigned operands.
161 2008-06-13  Peter Bergner  <bergner@vnet.ibm.com>
163         * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
164         (ppc_insert_operand): Likewise.
165         (ppc_machine): Likewise.
166         * config/tc-ppc.h: #include "opcode/ppc.h"
167         (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
168         (ppc_cpu): Update extern decl.
170 2008-06-12  Adam Nemet  <anemet@caviumnetworks.com>
172         * config/tc-mips.c (validate_mips_insn): Handle field descriptors
173         +x, +X, +p, +P, +s, +S.
174         (mips_ip): Likewise.
176         * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
177         (mips_ip): Likewise.
178         (macro_build): Likewise.
179         (CPU_HAS_SEQ): New macro.
180         (macro2) <M_SEQ_I, M_SNE_I>: Use it.  Emit seq/sne and seqi/snei.
182 2008-06-09  Eric B. Weddington  <eric.weddington@atmel.com>
184         * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
185         * doc/c-avr.texi: Likewise.
187 2008-06-04  Nick Clifton  <nickc@redhat.com>
189         * app.c (do_scrub_chars): Do not UNGET an EOF value.
191 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
193         * config/tc-i386.c (set_sse_check): New.
194         (md_pseudo_table): Add "sse_check".
196 2008-06-03  Paul Brook  <paul@codesourcery.com>
198         * config/tc-arm.c (do_t_rbit): Populate both rm fields.
200 2008-05-30  Nick Clifton  <nickc@redhat.com>
202         PR 5523
203         * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
204         relocs here.
206 2008-05-29  Maxim Kuvyrkov  <maxim@codesourcery.com>
208         * config/tc-mips.c (mips_cpu_info_table): Move records for
209         ST Loongson-2E/2F processors to a better place.
211 2008-05-23  H.J. Lu  <hongjiu.lu@intel.com>
213         PR gas/6518
214         * config/tc-i386.c (match_template): Report ambiguous operand
215         size, not invalid suffix when there is no match in Intel
216         syntax.
218 2008-05-22  Paul Brook  <paul@codesourcery.com>
220         * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
222 2008-05-21  I-Jui Sung  <ijsung@gmail.com>
224         * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
225         compatible cores: fa526, fa626, fa626te, fa726te.
226         * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
227         fa726te} options.
229 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
231         * Makefile.am: Run "make dep-am".
232         * Makefile.in: Regenerate.
233         * doc/Makefile.in: Regenerate.
234         * po/POTFILES.in: Regenerate.
236 2008-05-09  Catherine Moore  <clm@codesourcery.com>
238         * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
239         with non-MIPS16 relocs.
241 2008-05-09  Chao-ying Fu  <fu@mips.com>
243         * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
244         case that some characters append at the end of the name.
245         (mips_ip): Likewise.
246         (s_change_sec): Likewise.
247         (md_section_align): Likewise.
249 2008-05-07  Bob Wilson  <bob.wilson@acm.org>
251         * config/tc-xtensa.c (xtensa_create_property_segments): Use
252         xtensa_make_property_section instead of xtensa_get_property_section.
253         (xtensa_create_xproperty_segments): Likewise.
255 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
257         * NEWS: Mention XSAVE, EPT and MOVBE.
259         * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
260         (md_show_usage): Add .movbe and .ept.
262         * doc/c-i386.texi: Add movbe and ept to -march=.  Document
263         .movbe and .ept.
265 2008-04-29  David S. Miller  <davem@davemloft.net>
267         * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
269 2008-04-28  Adam Nemet  <anemet@caviumnetworks.com>
271         * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
272         New statics.
273         (OPTION_ELF_BASE): Make room for new option macros.
274         (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
275         OPTION_DOUBLE_FLOAT): New option macros.
276         (md_longopts): Add msoft-float, mhard-float, msingle-float and
277         mdouble-float.
278         (md_parse_option): Handle OPTION_SINGLE_FLOAT,
279         OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
280         (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
281         and -mdouble-float.
282         (struct mips_set_options): New fields soft_float and single_float.
283         (mips_opts): Initialized them.  Add comment for each field
284         initializer.
285         (mips_after_parse_args): Set them based on file_mips_soft_float
286         and file_mips_single_float.
287         (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
288         `.set singlefloat' and `.set doublefloat'.
289         (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
290         Handle single-float and soft-float instructions here.
291         (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
292         (is_opcode_valid_16): New function.
293         (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
294         (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
295         M_S_DOB>: Remove special-casing of r4650.
296         * doc/c-mips.texi (-march=): Add Octeon.
297         (MIPS Opts): Document -msoft-float and -mhard-float.  Document
298         -msingle-float and -mdouble-float.
299         (MIPS floating-point): New section.  Document `.set softfloat' and
300         `.set hardfloat'.  Document `.set singlefloat' and `.set
301         doublefloat'.
303 2008-04-25  David S. Miller  <davem@davemloft.net>
305         * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
306         %asr aliases.
308         * doc/c-sparc.texi: Consistently refer to architecture 'versions',
309         rather than occaisionally 'levels'.  Consistently refer to Sun's
310         UNIX variant as SunOS, every version of Solaris is also SunOS.
311         Document new 'softint_clear' and 'softint_set' aliases.  Clarify
312         which architecture versions support '%dcr', '%cq', and '%gl'. Add
313         section on 32-bit/64-bit opcode translations.
315 2008-04-23  Mike Frysinger  <vapier@gentoo.org>
317         * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
318         (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
319         (obj-fdpicelf.o): Define.
320         * Makefile.in: Regenerate.
321         * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
322         (bfin-*-*): Delete.
323         (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
324         (bfin-*-uclinux*): New; set fmt to elf and em to linux.
325         * config/obj-fdpicelf.c: New.
326         * config/obj-fdpicelf.h: Likewise.
327         * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
328         the OBJ_FDPIC_ELF define.
329         (OPTION_NOPIC): Define.
330         (md_longopts): Add mnopic and mno-fdpic.
331         (md_parse_option): Handle OPTION_NOPIC.
333 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
335         * aclocal.m4: Regenerate.
336         * configure: Regenerate.
338 2008-04-23  David S. Miller  <davem@davemloft.net>
340         * config/tc-sparc.c (v9a_asr_table): Add missing
341         'stick' and 'stick_cmpr', and document ordering rules
342         of table.
343         (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
344         BFD_RELOC_SPARC_PC10.
345         * doc/c-sparc.texi: New section on Sparc constants.
346         Add documentation for %stick and %stick_cmpr.
348 2008-04-22  David S. Miller  <davem@davemloft.net>
350         * config/obj-elf.c (obj_elf_section_type): Add prototype
351         before obj_elf_section_word and add 'warn' arg.
352         (obj_elf_section_word): Add type pointer arg, and if no #SECTION
353         is matched, try checking for #SECTION_TYPE.
354         (obj_elf_section): Adjust for new args.
355         (obj_elf_type_name): New function.
356         (obj_elf_type): Call it, and accept STT_foo number strings
357         in .type statements as output by SunPRO compiler.
359 2008-04-22  H.J. Lu  <hongjiu.lu@intel.com>
361         * config/tc-i386.c (md_assemble): Don't check SSE instructions
362         if noavx is 0.
364 2008-04-18  David S. Miller  <davem@davemloft.net>
366         * doc/c-sparc.texi: Add syntax section.
368 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
370         * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
371         REG and NDS for instructions with immediate operand.
373 2008-04-18  H.J. Lu  <hongjiu.lu@intel.com>
375         * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
376         FMA.
378 2008-04-16  David S. Miller  <davem@davemloft.net>
380         * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
381         and relocation generation.
382         (tc_gen_reloc): Likewise.
384 2008-04-15  Andrew Stubbs  <andrew.stubbs@st.com>
386         * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
387         relocations are properly aligned, and not negative.
389 2008-04-15  Khem Raj  <kraj@mvista.com>
391         * doc/tc-arm.texi: Fix fnstart and fnend directive names.
393 2008-04-14  Edmar Wienskoski  <edmar@freescale.com>
395         * config/tc-ppc.c (parse_cpu): Handle "e500mc".  Extend "e500" to
396         accept e500mc instructions.
397         (md_show_usage): Document -me500mc.
399 2008-04-11  Nick Clifton  <nickc@redhat.com>
401         * listing.c (print_timestamp): Use localtime rather than
402         localtime_r since not all build environments provide the latter.
404 2008-04-10  H.J. Lu  <hongjiu.lu@intel.com>
406         * NEWS: Mention -msse-check=[none|error|warning].
408         * config/tc-i386.c (sse_check): New.
409         (OPTION_MSSE_CHECK): Likewise.
410         (md_assemble): Check SSE instructions if needed.
411         (md_longopts): Add -msse-check.
412         (md_parse_option): Handle OPTION_MSSE_CHECK.
413         (md_show_usage): Show -msse-check=[none|error|warning].
415         * doc/c-i386.texi: Document -msse-check=[none|error|warning].
417 2008-04-10  Santiago Urueña  <suruena@gmail.com>
419         * listing.c: Add -ag listing flag to show general information in
420         listings such as gas version, passed options, and time stamp.
421         (listing_general_info): New function.
422         (print_options): New function.
423         (print_single_option): New function.
424         (print_timestamp): New function.
425         (MAX_DATELEN): Define.
426         (listing_print): Add call to listing_general_info.
427         * listing.h (LISTING_GENERAL): Define.
428         (listing_print): Add new parameter.
429         * as.c (show_usage): Print new switch.
430         (parse_args): Parse new switch.
431         (main): Pass command line on to listing_print.
432         * NEWS: Mention this new feature.
433         * doc/as.texinfo: Document the new sub-option.
435 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
437         * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
438         call.  Delete out of date comment.
439         (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
440         (dwarf2_emit_label): Don't emit unless there has been a previous
441         .file or we are outputting assembler generated debug.
442         dwarf2_consume_line_info after emitting line info, not before.
443         (out_debug_info): Simplify files_in_use test.
445 2008-04-07  H.J. Lu  <hongjiu.lu@intel.com>
447         * config/tc-i386.c (parse_real_register): Return AVX register
448         only if AVX is enabled.
450 2008-04-07  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
452         PR gas/6043
453         * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
454         md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
456 2008-04-04  Adrian Bunk  <bunk@stusta.de>
457             Bob Wilson  <bob.wilson@acm.org>
459         * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
460         call to decode_reloc.
462 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
464         * NEWS: Mention XSAVE.  Change CLMUL to PCLMUL.
466         * config/tc-i386.c (cpu_arch): Add .pclmul.
467         (md_show_usage): Replace clmul with pclmul.
468         * doc/c-i386.texi: Likewise.
470 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
472         * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
474         * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
475         Document -msse2avx, .avx, .aes, .clmul and .fma.
477         * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
478         (vex_prefix): Likewise.
479         (sse2avx): Likewise.
480         (CPU_FLAGS_ARCH_MATCH): Likewise.
481         (CPU_FLAGS_64BIT_MATCH): Likewise.
482         (CPU_FLAGS_32BIT_MATCH): Likewise.
483         (CPU_FLAGS_PERFECT_MATCH): Likewise.
484         (regymm): Likewise.
485         (vex_imm4): Likewise.
486         (fits_in_imm4): Likewise.
487         (build_vex_prefix): Likewise.
488         (VEX_check_operands): Likewise.
489         (bad_implicit_operand): Likewise.
490         (OPTION_MSSE2AVX): Likewise.
491         (T_YMMWORD): Likewise.
492         (_i386_insn): Add vex.
493         (cpu_arch): Add .avx, .aes, .clmul and .fma.
494         (cpu_flags_match): Changed to take a pointer to const template.
495         Enable encoding SSE instructions with VEX prefix for -msse2avx.
496         (match_mem_size): Also check ymmword.
497         (operand_type_match): Clear ymmword.
498         (md_begin): Allow '_' in mnemonic.
499         (type_names): Add OPERAND_TYPE_VEX_IMM4.
500         (process_immext): Update assert.
501         (md_assemble): Don't call process_immext if sse2avx and immext
502         are true.  Call build_vex_prefix if vex is true.
503         (parse_insn): Updated for cpu_flags_match.
504         (swap_operands): Handle 5 operands.
505         (match_template): Handle 5 operands. Updated for cpu_flags_match.
506         Check regymm.  Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
507         (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
508         (check_byte_reg): Check regymm.
509         (process_operands): Duplicate the destination register for
510         -msse2avx if needed.
511         (build_modrm_byte): Updated for instructions with VEX encoding.
512         (output_insn): Output VEX prefix if needed.
513         (md_longopts): Add msse2avx.
514         (md_parse_option): Handle OPTION_MSSE2AVX.
515         (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
516         (intel_e09): Support YMMWORD.
517         (intel_e11): Likewise.
518         (intel_get_token): Likewise.
520 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
522         * config/tc-avr.c (mcu_types): Add attiny167.
523         * doc/c-avr.texi: Likewise.
525 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
527         * config/tc-avr.c (mcu_types): Add atmega32u4.
528         * doc/c-avr.texi: Likewise.
530 2008-03-28  Eric B. Weddington  <eric.weddington@atmel.com>
532         * config/tc-avr.c (mcu_types): Add atmega32c1.
533         * doc/c-avr.texi: Likewise.
535 2008-03-28  Paul Brook  <paul@codesourcery.com>
537         * config/tc-arm.c (parse_neon_mov): Parse register before immediate
538         to avoid spurious symbols.
540 2008-03-28  Nathan Sidwell  <nathan@codesourcery.com>
542         * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
543         as_bad_where.
545 2008-03-27  Eric B. Weddington  <eric.weddington@atmel.com>
547         * config/tc-avr.c (mcu_types): Add atmega32m1.
548         * doc/c-avr.texi: Likewise.
550 2008-03-27  Ineiev  <ineiev@yahoo.co.uk>
552         * config/tc-arm.c (do_neon_cvt): Move variable declarations to
553         start of block.
554         (do_neon_ext): Fix sign of comparison.
556 2008-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
558         From Jie Zhang  <jie.zhang@analog.com>
559         * config/bfin-parse.y (asm_1): Check AREGS in comparison
560         instructions. And call yyerror when comparing PREG with
561         DREG.
562         (check_macfunc_option): New.
563         (check_macfuncs): Check option by calling check_macfunc_option.
564         Fix comparison always true warnings.  Both scalar instructions
565         of vector instruction must share the same mode option.  Only allow
566         option mode at the end of the second instruction of the vector.
567         (asm_1): Check option by calling check_macfunc_option.
569         * config/bfin-parse.y (check_macfunc_option): Allow (IU)
570         option for multiply and multiply-accumulate to data register
571         instruction.
572         (check_macfuncs): Don't check if accumulator matches the data register
573         here.
574         (assign_macfunc): Check if accumulator matches the
575         data register in each rule that moves to the data
576         register.
578         * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
579         generated for LOOP_BEGIN and LOOP_END instructions.
580         (bfin_gen_loop): Likewise.
582 2008-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
584         * config/tc-s390.c (md_parse_option): z10 option added.
586 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
588         * aclocal.m4: Regenerate.
589         * configure: Likewise.
590         * Makefile.in: Likewise.
591         * doc/Makefile.in: Likewise.
593 2008-03-17  Adrian Bunk  <bunk@stusta.de>
595         PR 5946
596         * config/tc-hppa.c (is_same_frag): Delete.
598 2008-03-14  Sterling Augustine  <sterling@tensilica.com>
600         * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
601         RELAX_LOOP_END_ADD_NOP.
603 2008-03-13  Evandro Menezes  <evandro@yahoo.com>
605         PR gas/5895
606         * read.c (s_mexit): Warn if attempting to exit a macro when not
607         inside a macro definition.
609 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
611         * Makefile.am: Run "make dep-am".
612         * Makefile.in: Regenerate.
613         * configure: Regenerate.
615 2008-03-09  Paul Brook  <paul@codesourcery.com>
617         * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
618         * doc/c-arm.texi: Add cortex-a9.
620 2008-03-09  Paul Brook  <paul@codesourcery.com>
622         * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
623         (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
624         (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
625         (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
626         * doc/c-arm.texi: Document new ARM FPU variants.
628 2008-03-07  Paul Brook  <paul@codesourcery.com>
630         * config/tc-arm.c (md_apply_fix): Use correct offset range.
632 2008-03-07  Alan Modra  <amodra@bigpond.net.au>
634         * config/tc-ppc.c (ppc_setup_opcodes): Tidy.  Add code to test
635         for strict ordering of powerpc_opcodes, but disable for now.
637 2008-03-04  Paul Brook  <paul@codesourcery.com>
639         * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
640         (arm_ext_v7m): Rename...
641         (arm_ext_m): ... to this.  Include v6-M.
642         (do_t_add_sub): Allow narrow low-reg non flag setting adds.
643         (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
644         (md_assemble): Allow wide msr instructions.
645         (insns): Add classifications for v6-m instructions.
646         (arm_cpu_option_table): Add cortex-m1.
647         (arm_arch_option_table): Add armv6-m.
648         (cpu_arch): Add ARM_ARCH_V6M.  Fix numbering of other v6 variants.
650 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
651             Bob Wilson  <bob.wilson@acm.org>
653         * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
654         (md_begin): Initialize it.
655         (resources_conflict): Use it.
657 2008-03-03  Sterling Augustine  <sterling@tensilica.com>
659         * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
661 2008-03-03  Denys Vlasenko <vda.linux@googlemail.com>
662             H.J. Lu  <hongjiu.lu@intel.com>
664         PR gas/5543
665         * read.c (pseudo_set): Don't allow global register symbol.
667         * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
668         global.
670 2008-03-03  H.J. Lu  <hongjiu.lu@intel.com>
672         PR gas/5543
673         * write.c (write_object_file): Don't allow symbols which were
674         equated to register.  Stop if there is an error.
676 2008-03-01  Alan Modra  <amodra@bigpond.net.au>
678         * config/tc-ppc.h (struct _ppc_fix_extra): New.
679         (ppc_cpu): Declare.
680         (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
681         * config/tc-ppc.c (ppu_cpu): Make global.
682         (ppc_insert_operand): Add ppu_cpu parameter.
683         (md_assemble): Adjust for above change.
684         (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
686 2008-02-22  Nick Clifton  <nickc@redhat.com>
688         * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
689         targeted ARM ports, otherwise just skip generating the reloc.
691 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
693         * doc/c-i386.texi: Update -march= and .arch.
695 2008-02-18  Nick Clifton  <nickc@redhat.com>
697         * config/tc-mn10300.c (has_known_symbol_location): New function.
698         Do not regard weak symbols as having a known location.
699         (md_estimate_size_before_relax): Use new function.
700         (md_pcrel_from): Do not compute a pcrel against a weak symbol.
702 2008-02-18  Jan Beulich  <jbeulich@novell.com>
704         * config/tc-i386.c (match_template): Disallow 'l' suffix when
705         currently selected CPU has no 32-bit support.
706         (parse_real_register): Do not return registers not available on
707         currently selected CPU.
709 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
711         * config/tc-i386.c (process_immext): Fix format.
713 2008-02-16  H.J. Lu  <hongjiu.lu@intel.com>
715         * config/tc-i386.c (inoutportreg): New.
716         (process_immext): New.
717         (md_assemble): Use it.
718         (update_imm): Use imm16 and imm32s.
719         (i386_att_operand): Use inoutportreg.
721 2008-02-14  H.J. Lu  <hongjiu.lu@intel.com>
723         * config/tc-i386.c (operand_type_all_zero): New.
724         (operand_type_set): Likewise.
725         (operand_type_equal): Likewise.
726         (cpu_flags_all_zero): Likewise.
727         (cpu_flags_set): Likewise.
728         (cpu_flags_equal): Likewise.
729         (UINTS_ALL_ZERO): Removed.
730         (UINTS_SET): Likewise.
731         (UINTS_CLEAR): Likewise.
732         (UINTS_EQUAL): Likewise.
733         (cpu_flags_match): Updated.
734         (smallest_imm_type): Likewise.
735         (set_cpu_arch): Likewise.
736         (md_assemble): Likewise.
737         (optimize_imm): Likewise.
738         (match_template): Likewise.
739         (process_suffix): Likewise.
740         (update_imm): Likewise.
741         (process_drex): Likewise.
742         (process_operands): Likewise.
743         (build_modrm_byte): Likewise.
744         (i386_immediate): Likewise.
745         (i386_displacement): Likewise.
746         (i386_att_operand): Likewise.
747         (parse_real_register): Likewise.
748         (md_parse_option): Likewise.
749         (i386_target_format): Likewise.
751 2008-02-14  Dimitry Andric  <dimitry@andric.com>
753         PR gas/5712
754         * config/tc-arm.c (s_arm_unwind_save): Advance the input line
755         pointer past the comma after parsing a floating point register
756         name.
758 2008-02-14  Hakan Ardo  <hakan@debian.org>
760         PR gas/2626
761         * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
762         to AVR_ISA_2xxe.
763         (avr_operand): Disallow post-increment addressing in the lpm
764         instruction for the attiny26.
766 2008-02-13  Jan Beulich  <jbeulich@novell.com>
768         * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
769         if not in Intel mode.
770         (i386_intel_operand): Ignore segment overrides in immediate and
771         offset operands.
772         (intel_e11): Range-check i.mem_operands before use as array
773         index. Filter out FLAT for uses other than as segment override.
774         (intel_get_token): Remove broken promotion of "FLAT:" to mean
775         "offset FLAT:".
777 2008-02-13  Jan Beulich  <jbeulich@novell.com>
779         * config/tc-i386.c (intel_e09): Also special-case 'bound'.
781 2008-02-13  Jan Beulich  <jbeulich@novell.com>
783         * config/tc-i386.c (allow_pseudo_reg): New.
784         (parse_real_register): Check for NULL just once. Allow all
785         register table entries when allow_pseudo_reg is non-zero.
786         Don't allow any registers without type when allow_pseudo_reg
787         is zero.
788         (tc_x86_regname_to_dw2regnum): Replace with ...
789         (tc_x86_parse_to_dw2regnum): ... this.
790         (tc_x86_frame_initial_instructions): Adjust for above change.
791         * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
792         (tc_parse_to_dw2regnum): New.
793         (tc_x86_regname_to_dw2regnum): Replace with ...
794         (tc_x86_parse_to_dw2regnum): ... this.
795         * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
796         (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
797         error handling.
799 2008-02-12  Nick Clifton  <nickc@redhat.com>
801         * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
802         argument.
803         (tic4x_insn_add): Likewise.
804         (md_begin): Drop cast that was discarding a const qualifier.
805         * config/tc-d30v.c (get_reloc): Add const qualifier to op
806         argument.
807         (build_insn): Drop cast that was discarding a const qualifier.
809 2008-02-11  H.J. Lu  <hongjiu.lu@intel.com>
811         * config/tc-i386.c (cpu_arch): Add .xsave.
812         (md_show_usage): Add .xsave.
814         * doc/c-i386.texi: Add xsave to -march=.
816 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
818         * read.c (s_weakref): Don't pass unadorned NULL to concat.
819         * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
821 2008-02-05  Sterling Augustine  <sterling@tensilica.com>
823         * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
824         checks into assertions.  When relaxation produces an operation that
825         does not fit in the current FLIX instruction, make sure that the
826         operation is relaxed as needed to account for being placed following
827         the current instruction.
829 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
831         PR 5715
832         * configure: Regenerated.
834 2008-02-04  Adam Nemet  <anemet@caviumnetworks.com>
836         * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
838 2008-01-31  Marc Gauthier  <marc@tensilica.com>
840         * configure.tgt (xtensa*-*-*): Recognize processor variants.
842 2008-01-25  Kai Tietz  <kai.tietz@onevision.com>
844         * read.c: (emit_expr): Correct for mingw use of printf size
845         specifier.
847 2008-01-24  Bob Wilson  <bob.wilson@acm.org>
849         * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
850         can only be encoded in FLIX instructions but are not specified as such.
851         (Xtensa Automatic Alignment): Remove obsolete comment about debugging
852         labels.
854 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
856         * NEWS: Mention new command line options for x86 targets.
858 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
860         * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
862 2008-01-23  Eric B. Weddington  <eric.weddington@atmel.com>
864         * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
866 2008-01-23  H.J. Lu  <hongjiu.lu@intel.com>
868         * config/tc-i386.c (md_show_usage): Show more processors for
869         -march=/-mtune=.
871 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
873         * config/tc-i386.c (i386_target_format): Remove cpummx2.
875 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
877         * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
878         (XXX_MNEM_SUFFIX): Likewise.
879         (END_OF_INSN): Likewise.
880         (templates): Likewise.
881         (modrm_byte): Likewise.
882         (rex_byte): Likewise.
883         (DREX_XXX): Likewise.
884         (drex_byte): Likewise.
885         (sib_byte): Likewise.
886         (processor_type): Likewise.
887         (arch_entry): Likewise.
888         (cpu_sub_arch_name): Remove const.
889         (cpu_arch): Add .vmx and .smx.
890         (set_cpu_arch): Append cpu_sub_arch_name.
891         (md_parse_option): Support -march=CPU[,+EXTENSION...].
892         (md_show_usage): Updated.
894         * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
895         (XXX_MNEM_SUFFIX): Likewise.
896         (END_OF_INSN): Likewise.
897         (templates): Likewise.
898         (modrm_byte): Likewise.
899         (rex_byte): Likewise.
900         (DREX_XXX): Likewise.
901         (drex_byte): Likewise.
902         (sib_byte): Likewise.
903         (processor_type): Likewise.
904         (arch_entry): Likewise.
906         * doc/as.texinfo: Update i386 -march option.
908         * doc/c-i386.texi: Update -march= for ISA.
910 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
912         * config/tc-xtensa.c (xtensa_leb128): New function.
913         (md_pseudo_table): Use it for sleb128 and uleb128.
914         (is_leb128_expr): New internal flag.
915         (xtensa_symbol_new_hook): Check new flag.
917 2008-01-16  Eric B. Weddington  <eric.weddington@atmel.com>
919         * config/tc-avr.c (mcu_types): Change opcode set for avr3,
920         at90usb82, at90usb162.
921         * doc/c-avr.texi: Change architecture grouping for at90usb82,
922         at90usb162.
923         These changes support the new avr35 architecture group in gcc.
925 2008-01-15  H.J. Lu  <hongjiu.lu@intel.com>
927         * config/tc-i386.c (md_assemble): Also zap movzx and movsx
928         suffix for AT&T syntax.
930 2008-01-14  H.J. Lu  <hongjiu.lu@intel.com>
932         * config/tc-i386.c (match_reg_size): New.
933         (match_mem_size): Likewise.
934         (operand_size_match): Likewise.
935         (operand_type_match): Also clear all size fields.
936         (match_template): Skip Intel syntax when in AT&T syntax.
937         Call operand_size_match to check operand size.
938         (i386_att_operand): Set the mem field to 1 for memory
939         operand.
940         (i386_intel_operand): Likewise.
942 2008-01-12  H.J. Lu  <hongjiu.lu@intel.com>
944         PR gas/5534
945         * config/tc-i386.c (_i386_insn): Update comment.
946         (operand_type_match): Also clear unspecified.
947         (operand_type_register_match): Likewise.
948         (parse_operands): Initialize unspecified.
949         (i386_intel_operand): Likewise.
950         (match_template): Check memory and accumulator operand size.
951         (i386_att_operand): Clear unspecified on register operand.
952         (intel_e11): Likewise.
953         (intel_e09): Set operand size and clean unspecified for
954         "XXX PTR".
956 2008-01-11  Andreas Schwab  <schwab@suse.de>
958         * read.c (s_space): Declare `repeat' as offsetT.
960 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
962         * config/tc-i386.c (match_template): Check processor support
963         first.
965 2008-01-10  H.J. Lu  <hongjiu.lu@intel.com>
967         * config/tc-i386.c (match_template): Continue if processor
968         doesn't match.
970 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
972         * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
973         unwind personality function address.
975 2008-01-09  Bob Wilson  <bob.wilson@acm.org>
977         * dwarf2dbg.c (out_sleb128): Delete.
978         (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
979         (out_fixed_inc_line_addr): Delete.
980         (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
981         size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
982         (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
983         (process_entries): Remove calls to out_fixed_inc_line_addr.  When
984         DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
985         * read.h (emit_expr_fix): New prototype.
986         * read.c (emit_expr): Move code to emit_expr_fix and use it here.
987         (emit_expr_fix): New.
989 2008-01-09  H.J. Lu  <hongjiu.lu@intel.com>
991         * config/tc-i386.c (match_template): Check register size
992         only when size of operands can be encoded the canonical way.
994 2008-01-08  H.J. Lu  <hongjiu.lu@intel.com>
996         * config/tc-i386.c (i386_operand): Renamed to ...
997         (i386_att_operand): This.
998         (parse_operands): Updated.
1000 2008-01-05  H.J. Lu  <hongjiu.lu@intel.com>
1002         * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1004         * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1005         only.
1006         (md_assemble): Remove Intel mode workaround.
1007         (match_template): Check support for old gcc, AT&T mnemonic
1008         and Intel Syntax.
1009         (md_parse_option): Don't set intel_mnemonic to 0 for
1010         OPTION_MOLD_GCC.
1012 2008-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1014         * config/tc-i386.h: Update copyright to 2008.
1016 2008-01-04  Nick Clifton  <nickc@redhat.com>
1018         * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1019         PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1021 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1023         * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1024         of SYSV386_COMPAT.
1026 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1028         * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1029         (cpu_flags_not): Likewise.
1030         (cpu_flags_match): Updated to check 64bit and arch.
1031         (set_code_flag): Remove cpu_arch_flags_not.
1032         (set_16bit_gcc_code_flag): Likewise.
1033         (set_cpu_arch): Likewise.
1034         (md_begin): Likewise.
1035         (parse_insn): Call cpu_flags_match to check 64bit and arch.
1036         (match_template): Likewise.
1038 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
1040         * config/tc-i386.c (process_drex): Initialize modrm_reg and
1041         modrm_regmem to 0 instead of None.
1043 2008-01-03  H.J. Lu  <hongjiu.lu@intel.com>
1045         * config/tc-i386.c (match_template): Use the xmmword field
1046         instead of no_xsuf.
1048 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1050         * config/tc-i386.c (process_suffix): Fix a typo.
1052 2008-01-02  H.J. Lu  <hongjiu.lu@intel.com>
1054         PR gas/5534
1055         * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1056         Check memory size in Intel mode.
1057         (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1058         (intel_e09): Likewise.
1060         * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1062 2008-01-02  Catherine Moore  <clm@codesourcery.com>
1064         * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1066 For older changes see ChangeLog-2007
1068 Local Variables:
1069 mode: change-log
1070 left-margin: 8
1071 fill-column: 74
1072 version-control: never
1073 End: