1 2008-08-08 Alan Modra <amodra@bigpond.net.au>
3 * doc/internals.texi (DWARF2_FORMAT): Update for 2008-08-04 change.
5 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com>
7 * config/tc-mips.c (mips16_reloc_p, got16_reloc_p, hi16_reloc_p)
8 (lo16_reloc_p): New functions.
9 (reloc_needs_lo_p): Use hi16_reloc_p and got16_reloc_p to
10 generalize relocation checks.
11 (matching_lo_reloc): New function.
12 (fixup_has_matching_lo_p): Use it.
13 (mips16_mark_labels): Don't clobber a symbol's visibility.
14 (append_insn): Use hi16_reloc_p and lo16_reloc_p.
15 (mips16_ip): Handle BFD_RELOC_MIPS16_GOT16 and BFD_RELOC_MIPS16_CALL16.
16 (md_apply_fix): Likewise.
17 (mips16_percent_op): Add %got and %call16.
18 (mips_frob_file): Use got16_reloc_p to generalize relocation checks.
19 Use matching_lo_reloc.
20 (mips_force_relocation): Use hi16_reloc_p and lo16_reloc_p to
21 generalize relocation checks.
22 (mips_fix_adjustable): Use lo16_reloc_p to generalize relocation
25 2008-08-06 DJ Delorie <dj@redhat.com>
27 * NEWS: Mention these changes.
29 * config/tc-h8300.h (H_TICK_HEX): Define.
30 * config/tc-h8300.c (OPTION_H_TICK_HEX): New.
31 (md_longopts): Add "-h-tick-hex".
32 (md_parse_option): Support it.
33 * doc/c-h8300.texi (H8/300 Options): Document it.
34 * doc/as.texinfo (Overview): Likewise.
36 * config/tc-sh.h (H_TICK_HEX): Define.
37 * config/tc-sh.c (OPTION_H_TICK_HEX): New.
38 (md_longopts): Add "-h-tick-hex".
39 (md_parse_option): Support it.
40 * doc/c-sh.texi (SH Options): Document it.
41 * doc/c-sh64.texi (SH64 Options): Document it.
42 * doc/as.texinfo (Overview): Likewise.
44 2008-08-05 Alan Modra <amodra@bigpond.net.au>
47 * dwarf2dbg.c (dwarf2_directive_file): Disable gas generated
48 debug info if we see compiler generated debug info.
49 (dwarf2_directive_loc): Likewise. Remove redundant debug_type test.
51 2008-08-04 Alan Modra <amodra@bigpond.net.au>
53 * dwarf2dbg.c: Remove superfluous forward function declarations.
54 (DWARF2_FORMAT): Add section arg.
55 (out_header): New function, split out from..
56 (out_debug_line): ..here.
57 (out_debug_aranges): Use out_header.
58 (out_debug_abbrev): Add info_seg and line_seg args. Use
59 DW_FORM_data8 (for DW_AT_stmt_list) if line_seg is 64-bit.
60 (out_debug_info): Use out_header. Output 8 byte DW_AT_stmt_list
61 if line_seg is 64-bit.
62 (dwarf2_finish): Adjust out_debug_abbrev call.
63 * config/tc-mips.h (DWARF2_FORMAT, mips_dwarf2_format): Add sec arg.
64 * config/tc-mips.c (mips_dwarf2_format): Likewise.
66 2008-08-04 Alan Modra <amodra@bigpond.net.au>
68 * Makefile.am (POTFILES.in): Set LC_ALL=C.
69 * Makefile.in: Regenerate.
70 * po/POTFILES.in: Regenerate.
72 2008-08-01 Peter Bergner <bergner@vnet.ibm.com>
74 * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags.
75 Handle -mvsx and -mpower7.
76 (md_show_usage): Document -mpower7 and -mvsx.
77 * doc/as.texinfo (Target PowerPC): Document -mvsx.
78 * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7.
80 2008-07-31 Peter Bergner <bergner@vnet.ibm.com>
82 * config/tc-ppc.c (parse_cpu) <power6>: Accept Altivec instructions.
85 2008-07-30 Michael J. Eager <eager@eagercon.com>
87 * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405.
88 (md_show_usage): Likewise.
90 2008-07-30 Alan Modra <amodra@bigpond.net.au>
92 * messages.c, symbols.c, write.c: Silence gcc warnings.
94 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
96 * config/tc-i386.c (operand_type_check): Warning fix.
98 2008-07-26 Michael Eager <eager@eagercon.com>
100 * doc/as.texinfo: Add description of single-precision attribute.
102 2008-07-24 Jie Zhang <jie.zhang@analog.com>
104 * config/bfin-parse.y (asm_1): Error if plain symbol is used
105 as load/store offset.
107 2008-07-22 Chao-ying Fu <fu@mips.com>
109 * config/tc-mips.c (mips_ip): Reset s to argsStart.
111 2008-07-22 Jie Zhang <jie.zhang@analog.com>
113 * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
115 2008-07-21 DJ Delorie <dj@redhat.com>
117 * config/tc-h8300.c (fix_operand_size): Use the default size
118 specified by the .lbranch/.sbranch pseudos.
120 2008-07-18 DJ Delorie <dj@redhat.com>
122 * config/tc-m32c.h (H_TICK_HEX): Define.
123 * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
124 (md_longopts): Add support for it.
125 (md_parse_option): Likewise.
126 * doc/as.texinfo (Overview): Add new m32c options.
127 * doc/c-m32c.texi (M32C-Modifiers): Likewise
129 * as.h: (enable_h_tick_hex): New.
130 * app.c (enable_h_tick_hex): New.
132 (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
133 (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
134 style hex constants and convert the input stream to 0x00 style.
135 (do_scrub_chars): If a 'X style character constant is found after
136 a symbol character (like you're or X'00), warn the user.
138 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
140 * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
141 (mips_fix_adjustable): Likewise.
142 (mips_frob_file_after_relocs): Likewise.
144 2008-07-08 Nathan Sidwell <nathan@codesourcery.com>
146 * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
147 about overriding an earlier setting.
149 2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
151 * config/tc-mips.c (NO_ISA_COP): New macro.
152 (COP_INSN): New macro.
153 (is_opcode_valid): Use them.
154 (macro) <ld_st>: Use them. Don't accept coprocessor load store
155 insns based on the ISA if CPU is NO_ISA_COP.
156 <copz>: Likewise for coprocessor operations.
158 2008-07-07 Paul Brook <paul@codesourcery.com>
160 * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
163 2008-07-07 Ralf Corsépius <ralf.corsepius@rtems.org>
165 * configure.tgt: Add bfin-*-rtems*.
167 2008-07-04 Alan Modra <amodra@bigpond.net.au>
169 * config/tc-spu.c (md_apply_fix): Handle fully resolved
170 BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
172 2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
174 * config/tc-ppc.c (parse_cpu): Handle -m464.
175 (md_show_usage): Likewise.
177 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com>
179 Add support for ATtiny13A.
180 * config/tc-avr.c (mcu_types): Add attiny13a.
181 * doc/c-avr.texi: Likewise.
183 2008-06-24 Bob Wilson <bob.wilson@acm.org>
184 Alan Modra <amodra@bigpond.net.au>
186 * write.c (relax_segment <rs_org>): Include current stretch
187 value when calculating whether .org is backwards.
189 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
191 * configure: Regenerate.
193 2008-06-17 Nick Clifton <nickc@redhat.com>
195 * app.c (do_scrub_chars): Do not UNGET an EOF value.
197 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
200 * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
201 text_section. Do the "stepping backwards" test for text_section
202 using unsigned operands.
204 2008-06-13 Peter Bergner <bergner@vnet.ibm.com>
206 * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
207 (ppc_insert_operand): Likewise.
208 (ppc_machine): Likewise.
209 * config/tc-ppc.h: #include "opcode/ppc.h"
210 (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
211 (ppc_cpu): Update extern decl.
213 2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
215 * config/tc-mips.c (validate_mips_insn): Handle field descriptors
216 +x, +X, +p, +P, +s, +S.
219 * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
221 (macro_build): Likewise.
222 (CPU_HAS_SEQ): New macro.
223 (macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
225 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com>
227 * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
228 * doc/c-avr.texi: Likewise.
230 2008-06-04 Nick Clifton <nickc@redhat.com>
232 * app.c (do_scrub_chars): Do not UNGET an EOF value.
234 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
236 * config/tc-i386.c (set_sse_check): New.
237 (md_pseudo_table): Add "sse_check".
239 2008-06-03 Paul Brook <paul@codesourcery.com>
241 * config/tc-arm.c (do_t_rbit): Populate both rm fields.
243 2008-05-30 Nick Clifton <nickc@redhat.com>
246 * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
249 2008-05-29 Maxim Kuvyrkov <maxim@codesourcery.com>
251 * config/tc-mips.c (mips_cpu_info_table): Move records for
252 ST Loongson-2E/2F processors to a better place.
254 2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
257 * config/tc-i386.c (match_template): Report ambiguous operand
258 size, not invalid suffix when there is no match in Intel
261 2008-05-22 Paul Brook <paul@codesourcery.com>
263 * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
265 2008-05-21 I-Jui Sung <ijsung@gmail.com>
267 * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
268 compatible cores: fa526, fa626, fa626te, fa726te.
269 * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
272 2008-05-14 Alan Modra <amodra@bigpond.net.au>
274 * Makefile.am: Run "make dep-am".
275 * Makefile.in: Regenerate.
276 * doc/Makefile.in: Regenerate.
277 * po/POTFILES.in: Regenerate.
279 2008-05-09 Catherine Moore <clm@codesourcery.com>
281 * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
282 with non-MIPS16 relocs.
284 2008-05-09 Chao-ying Fu <fu@mips.com>
286 * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
287 case that some characters append at the end of the name.
289 (s_change_sec): Likewise.
290 (md_section_align): Likewise.
292 2008-05-07 Bob Wilson <bob.wilson@acm.org>
294 * config/tc-xtensa.c (xtensa_create_property_segments): Use
295 xtensa_make_property_section instead of xtensa_get_property_section.
296 (xtensa_create_xproperty_segments): Likewise.
298 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
300 * NEWS: Mention XSAVE, EPT and MOVBE.
302 * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
303 (md_show_usage): Add .movbe and .ept.
305 * doc/c-i386.texi: Add movbe and ept to -march=. Document
308 2008-04-29 David S. Miller <davem@davemloft.net>
310 * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
312 2008-04-28 Adam Nemet <anemet@caviumnetworks.com>
314 * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
316 (OPTION_ELF_BASE): Make room for new option macros.
317 (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
318 OPTION_DOUBLE_FLOAT): New option macros.
319 (md_longopts): Add msoft-float, mhard-float, msingle-float and
321 (md_parse_option): Handle OPTION_SINGLE_FLOAT,
322 OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
323 (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
325 (struct mips_set_options): New fields soft_float and single_float.
326 (mips_opts): Initialized them. Add comment for each field
328 (mips_after_parse_args): Set them based on file_mips_soft_float
329 and file_mips_single_float.
330 (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
331 `.set singlefloat' and `.set doublefloat'.
332 (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
333 Handle single-float and soft-float instructions here.
334 (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
335 (is_opcode_valid_16): New function.
336 (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
337 (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
338 M_S_DOB>: Remove special-casing of r4650.
339 * doc/c-mips.texi (-march=): Add Octeon.
340 (MIPS Opts): Document -msoft-float and -mhard-float. Document
341 -msingle-float and -mdouble-float.
342 (MIPS floating-point): New section. Document `.set softfloat' and
343 `.set hardfloat'. Document `.set singlefloat' and `.set
346 2008-04-25 David S. Miller <davem@davemloft.net>
348 * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
351 * doc/c-sparc.texi: Consistently refer to architecture 'versions',
352 rather than occaisionally 'levels'. Consistently refer to Sun's
353 UNIX variant as SunOS, every version of Solaris is also SunOS.
354 Document new 'softint_clear' and 'softint_set' aliases. Clarify
355 which architecture versions support '%dcr', '%cq', and '%gl'. Add
356 section on 32-bit/64-bit opcode translations.
358 2008-04-23 Mike Frysinger <vapier@gentoo.org>
360 * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
361 (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
362 (obj-fdpicelf.o): Define.
363 * Makefile.in: Regenerate.
364 * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
366 (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
367 (bfin-*-uclinux*): New; set fmt to elf and em to linux.
368 * config/obj-fdpicelf.c: New.
369 * config/obj-fdpicelf.h: Likewise.
370 * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
371 the OBJ_FDPIC_ELF define.
372 (OPTION_NOPIC): Define.
373 (md_longopts): Add mnopic and mno-fdpic.
374 (md_parse_option): Handle OPTION_NOPIC.
376 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
378 * aclocal.m4: Regenerate.
379 * configure: Regenerate.
381 2008-04-23 David S. Miller <davem@davemloft.net>
383 * config/tc-sparc.c (v9a_asr_table): Add missing
384 'stick' and 'stick_cmpr', and document ordering rules
386 (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
387 BFD_RELOC_SPARC_PC10.
388 * doc/c-sparc.texi: New section on Sparc constants.
389 Add documentation for %stick and %stick_cmpr.
391 2008-04-22 David S. Miller <davem@davemloft.net>
393 * config/obj-elf.c (obj_elf_section_type): Add prototype
394 before obj_elf_section_word and add 'warn' arg.
395 (obj_elf_section_word): Add type pointer arg, and if no #SECTION
396 is matched, try checking for #SECTION_TYPE.
397 (obj_elf_section): Adjust for new args.
398 (obj_elf_type_name): New function.
399 (obj_elf_type): Call it, and accept STT_foo number strings
400 in .type statements as output by SunPRO compiler.
402 2008-04-22 H.J. Lu <hongjiu.lu@intel.com>
404 * config/tc-i386.c (md_assemble): Don't check SSE instructions
407 2008-04-18 David S. Miller <davem@davemloft.net>
409 * doc/c-sparc.texi: Add syntax section.
411 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
413 * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
414 REG and NDS for instructions with immediate operand.
416 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
418 * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
421 2008-04-16 David S. Miller <davem@davemloft.net>
423 * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
424 and relocation generation.
425 (tc_gen_reloc): Likewise.
427 2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
429 * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
430 relocations are properly aligned, and not negative.
432 2008-04-15 Khem Raj <kraj@mvista.com>
434 * doc/tc-arm.texi: Fix fnstart and fnend directive names.
436 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
438 * config/tc-ppc.c (parse_cpu): Handle "e500mc". Extend "e500" to
439 accept e500mc instructions.
440 (md_show_usage): Document -me500mc.
442 2008-04-11 Nick Clifton <nickc@redhat.com>
444 * listing.c (print_timestamp): Use localtime rather than
445 localtime_r since not all build environments provide the latter.
447 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
449 * NEWS: Mention -msse-check=[none|error|warning].
451 * config/tc-i386.c (sse_check): New.
452 (OPTION_MSSE_CHECK): Likewise.
453 (md_assemble): Check SSE instructions if needed.
454 (md_longopts): Add -msse-check.
455 (md_parse_option): Handle OPTION_MSSE_CHECK.
456 (md_show_usage): Show -msse-check=[none|error|warning].
458 * doc/c-i386.texi: Document -msse-check=[none|error|warning].
460 2008-04-10 Santiago Urueña <suruena@gmail.com>
462 * listing.c: Add -ag listing flag to show general information in
463 listings such as gas version, passed options, and time stamp.
464 (listing_general_info): New function.
465 (print_options): New function.
466 (print_single_option): New function.
467 (print_timestamp): New function.
468 (MAX_DATELEN): Define.
469 (listing_print): Add call to listing_general_info.
470 * listing.h (LISTING_GENERAL): Define.
471 (listing_print): Add new parameter.
472 * as.c (show_usage): Print new switch.
473 (parse_args): Parse new switch.
474 (main): Pass command line on to listing_print.
475 * NEWS: Mention this new feature.
476 * doc/as.texinfo: Document the new sub-option.
478 2008-04-08 Alan Modra <amodra@bigpond.net.au>
480 * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
481 call. Delete out of date comment.
482 (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
483 (dwarf2_emit_label): Don't emit unless there has been a previous
484 .file or we are outputting assembler generated debug.
485 dwarf2_consume_line_info after emitting line info, not before.
486 (out_debug_info): Simplify files_in_use test.
488 2008-04-07 H.J. Lu <hongjiu.lu@intel.com>
490 * config/tc-i386.c (parse_real_register): Return AVX register
491 only if AVX is enabled.
493 2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
496 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
497 md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
499 2008-04-04 Adrian Bunk <bunk@stusta.de>
500 Bob Wilson <bob.wilson@acm.org>
502 * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
503 call to decode_reloc.
505 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
507 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
509 * config/tc-i386.c (cpu_arch): Add .pclmul.
510 (md_show_usage): Replace clmul with pclmul.
511 * doc/c-i386.texi: Likewise.
513 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
515 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
517 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
518 Document -msse2avx, .avx, .aes, .clmul and .fma.
520 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
521 (vex_prefix): Likewise.
523 (CPU_FLAGS_ARCH_MATCH): Likewise.
524 (CPU_FLAGS_64BIT_MATCH): Likewise.
525 (CPU_FLAGS_32BIT_MATCH): Likewise.
526 (CPU_FLAGS_PERFECT_MATCH): Likewise.
528 (vex_imm4): Likewise.
529 (fits_in_imm4): Likewise.
530 (build_vex_prefix): Likewise.
531 (VEX_check_operands): Likewise.
532 (bad_implicit_operand): Likewise.
533 (OPTION_MSSE2AVX): Likewise.
534 (T_YMMWORD): Likewise.
535 (_i386_insn): Add vex.
536 (cpu_arch): Add .avx, .aes, .clmul and .fma.
537 (cpu_flags_match): Changed to take a pointer to const template.
538 Enable encoding SSE instructions with VEX prefix for -msse2avx.
539 (match_mem_size): Also check ymmword.
540 (operand_type_match): Clear ymmword.
541 (md_begin): Allow '_' in mnemonic.
542 (type_names): Add OPERAND_TYPE_VEX_IMM4.
543 (process_immext): Update assert.
544 (md_assemble): Don't call process_immext if sse2avx and immext
545 are true. Call build_vex_prefix if vex is true.
546 (parse_insn): Updated for cpu_flags_match.
547 (swap_operands): Handle 5 operands.
548 (match_template): Handle 5 operands. Updated for cpu_flags_match.
549 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
550 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
551 (check_byte_reg): Check regymm.
552 (process_operands): Duplicate the destination register for
554 (build_modrm_byte): Updated for instructions with VEX encoding.
555 (output_insn): Output VEX prefix if needed.
556 (md_longopts): Add msse2avx.
557 (md_parse_option): Handle OPTION_MSSE2AVX.
558 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
559 (intel_e09): Support YMMWORD.
560 (intel_e11): Likewise.
561 (intel_get_token): Likewise.
563 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
565 * config/tc-avr.c (mcu_types): Add attiny167.
566 * doc/c-avr.texi: Likewise.
568 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
570 * config/tc-avr.c (mcu_types): Add atmega32u4.
571 * doc/c-avr.texi: Likewise.
573 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
575 * config/tc-avr.c (mcu_types): Add atmega32c1.
576 * doc/c-avr.texi: Likewise.
578 2008-03-28 Paul Brook <paul@codesourcery.com>
580 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
581 to avoid spurious symbols.
583 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
585 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
588 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
590 * config/tc-avr.c (mcu_types): Add atmega32m1.
591 * doc/c-avr.texi: Likewise.
593 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
595 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
597 (do_neon_ext): Fix sign of comparison.
599 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
601 From Jie Zhang <jie.zhang@analog.com>
602 * config/bfin-parse.y (asm_1): Check AREGS in comparison
603 instructions. And call yyerror when comparing PREG with
605 (check_macfunc_option): New.
606 (check_macfuncs): Check option by calling check_macfunc_option.
607 Fix comparison always true warnings. Both scalar instructions
608 of vector instruction must share the same mode option. Only allow
609 option mode at the end of the second instruction of the vector.
610 (asm_1): Check option by calling check_macfunc_option.
612 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
613 option for multiply and multiply-accumulate to data register
615 (check_macfuncs): Don't check if accumulator matches the data register
617 (assign_macfunc): Check if accumulator matches the
618 data register in each rule that moves to the data
621 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
622 generated for LOOP_BEGIN and LOOP_END instructions.
623 (bfin_gen_loop): Likewise.
625 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
627 * config/tc-s390.c (md_parse_option): z10 option added.
629 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
631 * aclocal.m4: Regenerate.
632 * configure: Likewise.
633 * Makefile.in: Likewise.
634 * doc/Makefile.in: Likewise.
636 2008-03-17 Adrian Bunk <bunk@stusta.de>
639 * config/tc-hppa.c (is_same_frag): Delete.
641 2008-03-14 Sterling Augustine <sterling@tensilica.com>
643 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
644 RELAX_LOOP_END_ADD_NOP.
646 2008-03-13 Evandro Menezes <evandro@yahoo.com>
649 * read.c (s_mexit): Warn if attempting to exit a macro when not
650 inside a macro definition.
652 2008-03-13 Alan Modra <amodra@bigpond.net.au>
654 * Makefile.am: Run "make dep-am".
655 * Makefile.in: Regenerate.
656 * configure: Regenerate.
658 2008-03-09 Paul Brook <paul@codesourcery.com>
660 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
661 * doc/c-arm.texi: Add cortex-a9.
663 2008-03-09 Paul Brook <paul@codesourcery.com>
665 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
666 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
667 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
668 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
669 * doc/c-arm.texi: Document new ARM FPU variants.
671 2008-03-07 Paul Brook <paul@codesourcery.com>
673 * config/tc-arm.c (md_apply_fix): Use correct offset range.
675 2008-03-07 Alan Modra <amodra@bigpond.net.au>
677 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
678 for strict ordering of powerpc_opcodes, but disable for now.
680 2008-03-04 Paul Brook <paul@codesourcery.com>
682 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
683 (arm_ext_v7m): Rename...
684 (arm_ext_m): ... to this. Include v6-M.
685 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
686 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
687 (md_assemble): Allow wide msr instructions.
688 (insns): Add classifications for v6-m instructions.
689 (arm_cpu_option_table): Add cortex-m1.
690 (arm_arch_option_table): Add armv6-m.
691 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
693 2008-03-03 Sterling Augustine <sterling@tensilica.com>
694 Bob Wilson <bob.wilson@acm.org>
696 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
697 (md_begin): Initialize it.
698 (resources_conflict): Use it.
700 2008-03-03 Sterling Augustine <sterling@tensilica.com>
702 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
704 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
705 H.J. Lu <hongjiu.lu@intel.com>
708 * read.c (pseudo_set): Don't allow global register symbol.
710 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
713 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
716 * write.c (write_object_file): Don't allow symbols which were
717 equated to register. Stop if there is an error.
719 2008-03-01 Alan Modra <amodra@bigpond.net.au>
721 * config/tc-ppc.h (struct _ppc_fix_extra): New.
723 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
724 * config/tc-ppc.c (ppu_cpu): Make global.
725 (ppc_insert_operand): Add ppu_cpu parameter.
726 (md_assemble): Adjust for above change.
727 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
729 2008-02-22 Nick Clifton <nickc@redhat.com>
731 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
732 targeted ARM ports, otherwise just skip generating the reloc.
734 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
736 * doc/c-i386.texi: Update -march= and .arch.
738 2008-02-18 Nick Clifton <nickc@redhat.com>
740 * config/tc-mn10300.c (has_known_symbol_location): New function.
741 Do not regard weak symbols as having a known location.
742 (md_estimate_size_before_relax): Use new function.
743 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
745 2008-02-18 Jan Beulich <jbeulich@novell.com>
747 * config/tc-i386.c (match_template): Disallow 'l' suffix when
748 currently selected CPU has no 32-bit support.
749 (parse_real_register): Do not return registers not available on
750 currently selected CPU.
752 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
754 * config/tc-i386.c (process_immext): Fix format.
756 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
758 * config/tc-i386.c (inoutportreg): New.
759 (process_immext): New.
760 (md_assemble): Use it.
761 (update_imm): Use imm16 and imm32s.
762 (i386_att_operand): Use inoutportreg.
764 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
766 * config/tc-i386.c (operand_type_all_zero): New.
767 (operand_type_set): Likewise.
768 (operand_type_equal): Likewise.
769 (cpu_flags_all_zero): Likewise.
770 (cpu_flags_set): Likewise.
771 (cpu_flags_equal): Likewise.
772 (UINTS_ALL_ZERO): Removed.
773 (UINTS_SET): Likewise.
774 (UINTS_CLEAR): Likewise.
775 (UINTS_EQUAL): Likewise.
776 (cpu_flags_match): Updated.
777 (smallest_imm_type): Likewise.
778 (set_cpu_arch): Likewise.
779 (md_assemble): Likewise.
780 (optimize_imm): Likewise.
781 (match_template): Likewise.
782 (process_suffix): Likewise.
783 (update_imm): Likewise.
784 (process_drex): Likewise.
785 (process_operands): Likewise.
786 (build_modrm_byte): Likewise.
787 (i386_immediate): Likewise.
788 (i386_displacement): Likewise.
789 (i386_att_operand): Likewise.
790 (parse_real_register): Likewise.
791 (md_parse_option): Likewise.
792 (i386_target_format): Likewise.
794 2008-02-14 Dimitry Andric <dimitry@andric.com>
797 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
798 pointer past the comma after parsing a floating point register
801 2008-02-14 Hakan Ardo <hakan@debian.org>
804 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
806 (avr_operand): Disallow post-increment addressing in the lpm
807 instruction for the attiny26.
809 2008-02-13 Jan Beulich <jbeulich@novell.com>
811 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
812 if not in Intel mode.
813 (i386_intel_operand): Ignore segment overrides in immediate and
815 (intel_e11): Range-check i.mem_operands before use as array
816 index. Filter out FLAT for uses other than as segment override.
817 (intel_get_token): Remove broken promotion of "FLAT:" to mean
820 2008-02-13 Jan Beulich <jbeulich@novell.com>
822 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
824 2008-02-13 Jan Beulich <jbeulich@novell.com>
826 * config/tc-i386.c (allow_pseudo_reg): New.
827 (parse_real_register): Check for NULL just once. Allow all
828 register table entries when allow_pseudo_reg is non-zero.
829 Don't allow any registers without type when allow_pseudo_reg
831 (tc_x86_regname_to_dw2regnum): Replace with ...
832 (tc_x86_parse_to_dw2regnum): ... this.
833 (tc_x86_frame_initial_instructions): Adjust for above change.
834 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
835 (tc_parse_to_dw2regnum): New.
836 (tc_x86_regname_to_dw2regnum): Replace with ...
837 (tc_x86_parse_to_dw2regnum): ... this.
838 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
839 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
842 2008-02-12 Nick Clifton <nickc@redhat.com>
844 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
846 (tic4x_insn_add): Likewise.
847 (md_begin): Drop cast that was discarding a const qualifier.
848 * config/tc-d30v.c (get_reloc): Add const qualifier to op
850 (build_insn): Drop cast that was discarding a const qualifier.
852 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
854 * config/tc-i386.c (cpu_arch): Add .xsave.
855 (md_show_usage): Add .xsave.
857 * doc/c-i386.texi: Add xsave to -march=.
859 2008-02-07 Alan Modra <amodra@bigpond.net.au>
861 * read.c (s_weakref): Don't pass unadorned NULL to concat.
862 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
864 2008-02-05 Sterling Augustine <sterling@tensilica.com>
866 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
867 checks into assertions. When relaxation produces an operation that
868 does not fit in the current FLIX instruction, make sure that the
869 operation is relaxed as needed to account for being placed following
870 the current instruction.
872 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
875 * configure: Regenerated.
877 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
879 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
881 2008-01-31 Marc Gauthier <marc@tensilica.com>
883 * configure.tgt (xtensa*-*-*): Recognize processor variants.
885 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
887 * read.c: (emit_expr): Correct for mingw use of printf size
890 2008-01-24 Bob Wilson <bob.wilson@acm.org>
892 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
893 can only be encoded in FLIX instructions but are not specified as such.
894 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
897 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
899 * NEWS: Mention new command line options for x86 targets.
901 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
903 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
905 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
907 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
909 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
911 * config/tc-i386.c (md_show_usage): Show more processors for
914 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
916 * config/tc-i386.c (i386_target_format): Remove cpummx2.
918 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
920 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
921 (XXX_MNEM_SUFFIX): Likewise.
922 (END_OF_INSN): Likewise.
923 (templates): Likewise.
924 (modrm_byte): Likewise.
925 (rex_byte): Likewise.
926 (DREX_XXX): Likewise.
927 (drex_byte): Likewise.
928 (sib_byte): Likewise.
929 (processor_type): Likewise.
930 (arch_entry): Likewise.
931 (cpu_sub_arch_name): Remove const.
932 (cpu_arch): Add .vmx and .smx.
933 (set_cpu_arch): Append cpu_sub_arch_name.
934 (md_parse_option): Support -march=CPU[,+EXTENSION...].
935 (md_show_usage): Updated.
937 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
938 (XXX_MNEM_SUFFIX): Likewise.
939 (END_OF_INSN): Likewise.
940 (templates): Likewise.
941 (modrm_byte): Likewise.
942 (rex_byte): Likewise.
943 (DREX_XXX): Likewise.
944 (drex_byte): Likewise.
945 (sib_byte): Likewise.
946 (processor_type): Likewise.
947 (arch_entry): Likewise.
949 * doc/as.texinfo: Update i386 -march option.
951 * doc/c-i386.texi: Update -march= for ISA.
953 2008-01-18 Bob Wilson <bob.wilson@acm.org>
955 * config/tc-xtensa.c (xtensa_leb128): New function.
956 (md_pseudo_table): Use it for sleb128 and uleb128.
957 (is_leb128_expr): New internal flag.
958 (xtensa_symbol_new_hook): Check new flag.
960 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
962 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
963 at90usb82, at90usb162.
964 * doc/c-avr.texi: Change architecture grouping for at90usb82,
966 These changes support the new avr35 architecture group in gcc.
968 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
970 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
971 suffix for AT&T syntax.
973 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
975 * config/tc-i386.c (match_reg_size): New.
976 (match_mem_size): Likewise.
977 (operand_size_match): Likewise.
978 (operand_type_match): Also clear all size fields.
979 (match_template): Skip Intel syntax when in AT&T syntax.
980 Call operand_size_match to check operand size.
981 (i386_att_operand): Set the mem field to 1 for memory
983 (i386_intel_operand): Likewise.
985 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
988 * config/tc-i386.c (_i386_insn): Update comment.
989 (operand_type_match): Also clear unspecified.
990 (operand_type_register_match): Likewise.
991 (parse_operands): Initialize unspecified.
992 (i386_intel_operand): Likewise.
993 (match_template): Check memory and accumulator operand size.
994 (i386_att_operand): Clear unspecified on register operand.
995 (intel_e11): Likewise.
996 (intel_e09): Set operand size and clean unspecified for
999 2008-01-11 Andreas Schwab <schwab@suse.de>
1001 * read.c (s_space): Declare `repeat' as offsetT.
1003 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1005 * config/tc-i386.c (match_template): Check processor support
1008 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
1010 * config/tc-i386.c (match_template): Continue if processor
1013 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
1015 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
1016 unwind personality function address.
1018 2008-01-09 Bob Wilson <bob.wilson@acm.org>
1020 * dwarf2dbg.c (out_sleb128): Delete.
1021 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
1022 (out_fixed_inc_line_addr): Delete.
1023 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
1024 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
1025 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
1026 (process_entries): Remove calls to out_fixed_inc_line_addr. When
1027 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
1028 * read.h (emit_expr_fix): New prototype.
1029 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
1030 (emit_expr_fix): New.
1032 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
1034 * config/tc-i386.c (match_template): Check register size
1035 only when size of operands can be encoded the canonical way.
1037 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
1039 * config/tc-i386.c (i386_operand): Renamed to ...
1040 (i386_att_operand): This.
1041 (parse_operands): Updated.
1043 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
1045 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
1047 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
1049 (md_assemble): Remove Intel mode workaround.
1050 (match_template): Check support for old gcc, AT&T mnemonic
1052 (md_parse_option): Don't set intel_mnemonic to 0 for
1055 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
1057 * config/tc-i386.h: Update copyright to 2008.
1059 2008-01-04 Nick Clifton <nickc@redhat.com>
1061 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
1062 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
1064 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1066 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
1069 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1071 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
1072 (cpu_flags_not): Likewise.
1073 (cpu_flags_match): Updated to check 64bit and arch.
1074 (set_code_flag): Remove cpu_arch_flags_not.
1075 (set_16bit_gcc_code_flag): Likewise.
1076 (set_cpu_arch): Likewise.
1077 (md_begin): Likewise.
1078 (parse_insn): Call cpu_flags_match to check 64bit and arch.
1079 (match_template): Likewise.
1081 2008-01-03 Jakub Jelinek <jakub@redhat.com>
1083 * config/tc-i386.c (process_drex): Initialize modrm_reg and
1084 modrm_regmem to 0 instead of None.
1086 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/tc-i386.c (match_template): Use the xmmword field
1091 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1093 * config/tc-i386.c (process_suffix): Fix a typo.
1095 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1098 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1099 Check memory size in Intel mode.
1100 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1101 (intel_e09): Likewise.
1103 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1105 2008-01-02 Catherine Moore <clm@codesourcery.com>
1107 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1109 For older changes see ChangeLog-2007
1115 version-control: never