1 2008-07-30 Alan Modra <amodra@bigpond.net.au>
3 * messages.c, symbols.c, write.c: Silence gcc warnings.
5 2008-07-28 Ineiev <ineiev@yahoo.co.uk>
7 * config/tc-i386.c (operand_type_check): Warning fix.
9 2008-07-26 Michael Eager <eager@eagercon.com>
11 * doc/as.texinfo: Add description of single-precision attribute.
13 2008-07-24 Jie Zhang <jie.zhang@analog.com>
15 * config/bfin-parse.y (asm_1): Error if plain symbol is used
18 2008-07-22 Chao-ying Fu <fu@mips.com>
20 * config/tc-mips.c (mips_ip): Reset s to argsStart.
22 2008-07-22 Jie Zhang <jie.zhang@analog.com>
24 * config/tc-bfin.c (bfin_gen_loop): Remove loop symbol.
26 2008-07-21 DJ Delorie <dj@redhat.com>
28 * config/tc-h8300.c (fix_operand_size): Use the default size
29 specified by the .lbranch/.sbranch pseudos.
31 2008-07-18 DJ Delorie <dj@redhat.com>
33 * config/tc-m32c.h (H_TICK_HEX): Define.
34 * config/tc-m32c.c (OPTION_H_TICK_HEX): Define.
35 (md_longopts): Add support for it.
36 (md_parse_option): Likewise.
37 * doc/as.texinfo (Overview): Add new m32c options.
38 * doc/c-m32c.texi (M32C-Modifiers): Likewise
40 * as.h: (enable_h_tick_hex): New.
41 * app.c (enable_h_tick_hex): New.
43 (do_scrub_begin): Mark 'H' and 'h' as special if enable_h_tick_hex.
44 (do_scrub_chars): If enable_h_tick_hex and 'h', check for H'00
45 style hex constants and convert the input stream to 0x00 style.
46 (do_scrub_chars): If a 'X style character constant is found after
47 a symbol character (like you're or X'00), warn the user.
49 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com>
51 * config/tc-mips.c (mips16_mark_labels): Use ELF_ST_SET_MIPS16.
52 (mips_fix_adjustable): Likewise.
53 (mips_frob_file_after_relocs): Likewise.
55 2008-07-08 Nathan Sidwell <nathan@codesourcery.com>
57 * config/tc-m68k.c (m68k_set_cpu, m68k_set_arch): Don't complain
58 about overriding an earlier setting.
60 2008-07-07 Adam Nemet <anemet@caviumnetworks.com>
62 * config/tc-mips.c (NO_ISA_COP): New macro.
63 (COP_INSN): New macro.
64 (is_opcode_valid): Use them.
65 (macro) <ld_st>: Use them. Don't accept coprocessor load store
66 insns based on the ISA if CPU is NO_ISA_COP.
67 <copz>: Likewise for coprocessor operations.
69 2008-07-07 Paul Brook <paul@codesourcery.com>
71 * config/tc-arm.c (arm_fix_adjustable): Don't adjust MOVW/MOVT
74 2008-07-07 Ralf Corsépius <ralf.corsepius@rtems.org>
76 * configure.tgt: Add bfin-*-rtems*.
78 2008-07-04 Alan Modra <amodra@bigpond.net.au>
80 * config/tc-spu.c (md_apply_fix): Handle fully resolved
81 BFD_RELOC_32_PCREL, BFD_RELOC_SPU_HI16 and BFD_RELOC_SPU_LO16.
83 2008-06-25 Peter Bergner <bergner@vnet.ibm.com>
85 * config/tc-ppc.c (parse_cpu): Handle -m464.
86 (md_show_usage): Likewise.
88 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com>
90 Add support for ATtiny13A.
91 * config/tc-avr.c (mcu_types): Add attiny13a.
92 * doc/c-avr.texi: Likewise.
94 2008-06-24 Bob Wilson <bob.wilson@acm.org>
95 Alan Modra <amodra@bigpond.net.au>
97 * write.c (relax_segment <rs_org>): Include current stretch
98 value when calculating whether .org is backwards.
100 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
102 * configure: Regenerate.
104 2008-06-17 Nick Clifton <nickc@redhat.com>
106 * app.c (do_scrub_chars): Do not UNGET an EOF value.
108 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
111 * config/tc-mmix.c (s_loc): Assume "negative" addresses belong to
112 text_section. Do the "stepping backwards" test for text_section
113 using unsigned operands.
115 2008-06-13 Peter Bergner <bergner@vnet.ibm.com>
117 * config/tc-ppc.c (ppc_cpu): Use ppc_cpu_t typedef.
118 (ppc_insert_operand): Likewise.
119 (ppc_machine): Likewise.
120 * config/tc-ppc.h: #include "opcode/ppc.h"
121 (struct _ppc_fix_extra <ppc_cpu>): Use ppc_cpu_t typedef.
122 (ppc_cpu): Update extern decl.
124 2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
126 * config/tc-mips.c (validate_mips_insn): Handle field descriptors
127 +x, +X, +p, +P, +s, +S.
130 * config/tc-mips.c (validate_mips_insn): Handle field descriptor +Q.
132 (macro_build): Likewise.
133 (CPU_HAS_SEQ): New macro.
134 (macro2) <M_SEQ_I, M_SNE_I>: Use it. Emit seq/sne and seqi/snei.
136 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com>
138 * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device.
139 * doc/c-avr.texi: Likewise.
141 2008-06-04 Nick Clifton <nickc@redhat.com>
143 * app.c (do_scrub_chars): Do not UNGET an EOF value.
145 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
147 * config/tc-i386.c (set_sse_check): New.
148 (md_pseudo_table): Add "sse_check".
150 2008-06-03 Paul Brook <paul@codesourcery.com>
152 * config/tc-arm.c (do_t_rbit): Populate both rm fields.
154 2008-05-30 Nick Clifton <nickc@redhat.com>
157 * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown
160 2008-05-29 Maxim Kuvyrkov <maxim@codesourcery.com>
162 * config/tc-mips.c (mips_cpu_info_table): Move records for
163 ST Loongson-2E/2F processors to a better place.
165 2008-05-23 H.J. Lu <hongjiu.lu@intel.com>
168 * config/tc-i386.c (match_template): Report ambiguous operand
169 size, not invalid suffix when there is no match in Intel
172 2008-05-22 Paul Brook <paul@codesourcery.com>
174 * config/tc-arm.c (parse_cond): Covert to lowercase before matching.
176 2008-05-21 I-Jui Sung <ijsung@gmail.com>
178 * config/tc-arm.c (arm_cpus): Add Faraday ARMv4 and ARMv5TE
179 compatible cores: fa526, fa626, fa626te, fa726te.
180 * doc/c-arm.texi (ARM Opts): Add -mcpu={fa526, fa626, fa626te,
183 2008-05-14 Alan Modra <amodra@bigpond.net.au>
185 * Makefile.am: Run "make dep-am".
186 * Makefile.in: Regenerate.
187 * doc/Makefile.in: Regenerate.
188 * po/POTFILES.in: Regenerate.
190 2008-05-09 Catherine Moore <clm@codesourcery.com>
192 * config/tc-mips.c (mips_frob_file): Don't match MIPS16 relocs
193 with non-MIPS16 relocs.
195 2008-05-09 Chao-ying Fu <fu@mips.com>
197 * config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
198 case that some characters append at the end of the name.
200 (s_change_sec): Likewise.
201 (md_section_align): Likewise.
203 2008-05-07 Bob Wilson <bob.wilson@acm.org>
205 * config/tc-xtensa.c (xtensa_create_property_segments): Use
206 xtensa_make_property_section instead of xtensa_get_property_section.
207 (xtensa_create_xproperty_segments): Likewise.
209 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
211 * NEWS: Mention XSAVE, EPT and MOVBE.
213 * config/tc-i386.c (cpu_arch): Add .movbe and .ept.
214 (md_show_usage): Add .movbe and .ept.
216 * doc/c-i386.texi: Add movbe and ept to -march=. Document
219 2008-04-29 David S. Miller <davem@davemloft.net>
221 * config/tc-sparc.c (v9a_asr_table): Fix order of softint entries.
223 2008-04-28 Adam Nemet <anemet@caviumnetworks.com>
225 * config/tc-mips.c (file_mips_soft_float, file_mips_single_float):
227 (OPTION_ELF_BASE): Make room for new option macros.
228 (OPTION_SOFT_FLOAT, OPTION_HARD_FLOAT, OPTION_SINGLE_FLOAT,
229 OPTION_DOUBLE_FLOAT): New option macros.
230 (md_longopts): Add msoft-float, mhard-float, msingle-float and
232 (md_parse_option): Handle OPTION_SINGLE_FLOAT,
233 OPTION_DOUBLE_FLOAT, OPTION_SOFT_FLOAT and OPTION_HARD_FLOAT.
234 (md_show_usage): Add -msoft-float, -mhard-float, -msingle-float
236 (struct mips_set_options): New fields soft_float and single_float.
237 (mips_opts): Initialized them. Add comment for each field
239 (mips_after_parse_args): Set them based on file_mips_soft_float
240 and file_mips_single_float.
241 (s_mipsset): Add support for `.set softfloat', `.set hardfloat',
242 `.set singlefloat' and `.set doublefloat'.
243 (is_opcode_valid): New function to invoke OPCODE_IS_MEMBER.
244 Handle single-float and soft-float instructions here.
245 (macro_build, mips_ip): Use it instead of OPCODE_IS_MEMBER.
246 (is_opcode_valid_16): New function.
247 (mips16_ip): Use it instead of OPCODE_IS_MEMBER.
248 (macro) <M_LDC1_AB, M_SDC1_AB, M_L_DOB, M_L_DAB, M_S_DAB,
249 M_S_DOB>: Remove special-casing of r4650.
250 * doc/c-mips.texi (-march=): Add Octeon.
251 (MIPS Opts): Document -msoft-float and -mhard-float. Document
252 -msingle-float and -mdouble-float.
253 (MIPS floating-point): New section. Document `.set softfloat' and
254 `.set hardfloat'. Document `.set singlefloat' and `.set
257 2008-04-25 David S. Miller <davem@davemloft.net>
259 * config/tc-sparc.c: Accept 'softint_clear' and 'softint_set'
262 * doc/c-sparc.texi: Consistently refer to architecture 'versions',
263 rather than occaisionally 'levels'. Consistently refer to Sun's
264 UNIX variant as SunOS, every version of Solaris is also SunOS.
265 Document new 'softint_clear' and 'softint_set' aliases. Clarify
266 which architecture versions support '%dcr', '%cq', and '%gl'. Add
267 section on 32-bit/64-bit opcode translations.
269 2008-04-23 Mike Frysinger <vapier@gentoo.org>
271 * Makefile.am (OBJ_FORMAT_CFILES): Add config/obj-fdpicelf.c.
272 (OBJ_FORMAT_HFILES): Add config/obj-fdpicelf.h.
273 (obj-fdpicelf.o): Define.
274 * Makefile.in: Regenerate.
275 * configure.tgt: Set bfd_gas to yes when fmt is fdpicelf.
277 (bfin-*-linux-uclibc): New; set fmt to fdpicelf and em to linux.
278 (bfin-*-uclinux*): New; set fmt to elf and em to linux.
279 * config/obj-fdpicelf.c: New.
280 * config/obj-fdpicelf.h: Likewise.
281 * config/tc-bfin.c (bfin_flags, bfin_pic_flag): Set default based on
282 the OBJ_FDPIC_ELF define.
283 (OPTION_NOPIC): Define.
284 (md_longopts): Add mnopic and mno-fdpic.
285 (md_parse_option): Handle OPTION_NOPIC.
287 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
289 * aclocal.m4: Regenerate.
290 * configure: Regenerate.
292 2008-04-23 David S. Miller <davem@davemloft.net>
294 * config/tc-sparc.c (v9a_asr_table): Add missing
295 'stick' and 'stick_cmpr', and document ordering rules
297 (tc_gen_reloc): Accept BFD_RELOC_SPARC_PC22 and
298 BFD_RELOC_SPARC_PC10.
299 * doc/c-sparc.texi: New section on Sparc constants.
300 Add documentation for %stick and %stick_cmpr.
302 2008-04-22 David S. Miller <davem@davemloft.net>
304 * config/obj-elf.c (obj_elf_section_type): Add prototype
305 before obj_elf_section_word and add 'warn' arg.
306 (obj_elf_section_word): Add type pointer arg, and if no #SECTION
307 is matched, try checking for #SECTION_TYPE.
308 (obj_elf_section): Adjust for new args.
309 (obj_elf_type_name): New function.
310 (obj_elf_type): Call it, and accept STT_foo number strings
311 in .type statements as output by SunPRO compiler.
313 2008-04-22 H.J. Lu <hongjiu.lu@intel.com>
315 * config/tc-i386.c (md_assemble): Don't check SSE instructions
318 2008-04-18 David S. Miller <davem@davemloft.net>
320 * doc/c-sparc.texi: Add syntax section.
322 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
324 * config/tc-i386.c (build_modrm_byte): Don't check FMA to swap
325 REG and NDS for instructions with immediate operand.
327 2008-04-18 H.J. Lu <hongjiu.lu@intel.com>
329 * config/tc-i386.c (build_modrm_byte): Swap REG and NDS for
332 2008-04-16 David S. Miller <davem@davemloft.net>
334 * config/tc-sparc.c (sparc_ip): Add support for gotdata mnemonics
335 and relocation generation.
336 (tc_gen_reloc): Likewise.
338 2008-04-15 Andrew Stubbs <andrew.stubbs@st.com>
340 * config/tc-sh.c (md_apply_fix): Make sure BFD_RELOC_SH_PCRELIMM8BY4
341 relocations are properly aligned, and not negative.
343 2008-04-15 Khem Raj <kraj@mvista.com>
345 * doc/tc-arm.texi: Fix fnstart and fnend directive names.
347 2008-04-14 Edmar Wienskoski <edmar@freescale.com>
349 * config/tc-ppc.c (parse_cpu): Handle "e500mc". Extend "e500" to
350 accept e500mc instructions.
351 (md_show_usage): Document -me500mc.
353 2008-04-11 Nick Clifton <nickc@redhat.com>
355 * listing.c (print_timestamp): Use localtime rather than
356 localtime_r since not all build environments provide the latter.
358 2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
360 * NEWS: Mention -msse-check=[none|error|warning].
362 * config/tc-i386.c (sse_check): New.
363 (OPTION_MSSE_CHECK): Likewise.
364 (md_assemble): Check SSE instructions if needed.
365 (md_longopts): Add -msse-check.
366 (md_parse_option): Handle OPTION_MSSE_CHECK.
367 (md_show_usage): Show -msse-check=[none|error|warning].
369 * doc/c-i386.texi: Document -msse-check=[none|error|warning].
371 2008-04-10 Santiago Urueña <suruena@gmail.com>
373 * listing.c: Add -ag listing flag to show general information in
374 listings such as gas version, passed options, and time stamp.
375 (listing_general_info): New function.
376 (print_options): New function.
377 (print_single_option): New function.
378 (print_timestamp): New function.
379 (MAX_DATELEN): Define.
380 (listing_print): Add call to listing_general_info.
381 * listing.h (LISTING_GENERAL): Define.
382 (listing_print): Add new parameter.
383 * as.c (show_usage): Print new switch.
384 (parse_args): Parse new switch.
385 (main): Pass command line on to listing_print.
386 * NEWS: Mention this new feature.
387 * doc/as.texinfo: Document the new sub-option.
389 2008-04-08 Alan Modra <amodra@bigpond.net.au>
391 * dwarf2dbg.c (dwarf2_emit_insn): Simplify test before dwarf2_where
392 call. Delete out of date comment.
393 (dwarf2_consume_line_info): Always clear dwarf2_loc_directive_seen.
394 (dwarf2_emit_label): Don't emit unless there has been a previous
395 .file or we are outputting assembler generated debug.
396 dwarf2_consume_line_info after emitting line info, not before.
397 (out_debug_info): Simplify files_in_use test.
399 2008-04-07 H.J. Lu <hongjiu.lu@intel.com>
401 * config/tc-i386.c (parse_real_register): Return AVX register
402 only if AVX is enabled.
404 2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
407 * config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
408 md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
410 2008-04-04 Adrian Bunk <bunk@stusta.de>
411 Bob Wilson <bob.wilson@acm.org>
413 * config/tc-xtensa.c (xg_apply_fix_value): Check return code from
414 call to decode_reloc.
416 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
418 * NEWS: Mention XSAVE. Change CLMUL to PCLMUL.
420 * config/tc-i386.c (cpu_arch): Add .pclmul.
421 (md_show_usage): Replace clmul with pclmul.
422 * doc/c-i386.texi: Likewise.
424 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
426 * NEWS: Mention AES, CLMUL, AVX/FMA and -msse2avx.
428 * doc/c-i386.texi: Add avx, aes, clmul and fma to -march=.
429 Document -msse2avx, .avx, .aes, .clmul and .fma.
431 * config/tc-i386.c (YMMWORD_MNEM_SUFFIX): New.
432 (vex_prefix): Likewise.
434 (CPU_FLAGS_ARCH_MATCH): Likewise.
435 (CPU_FLAGS_64BIT_MATCH): Likewise.
436 (CPU_FLAGS_32BIT_MATCH): Likewise.
437 (CPU_FLAGS_PERFECT_MATCH): Likewise.
439 (vex_imm4): Likewise.
440 (fits_in_imm4): Likewise.
441 (build_vex_prefix): Likewise.
442 (VEX_check_operands): Likewise.
443 (bad_implicit_operand): Likewise.
444 (OPTION_MSSE2AVX): Likewise.
445 (T_YMMWORD): Likewise.
446 (_i386_insn): Add vex.
447 (cpu_arch): Add .avx, .aes, .clmul and .fma.
448 (cpu_flags_match): Changed to take a pointer to const template.
449 Enable encoding SSE instructions with VEX prefix for -msse2avx.
450 (match_mem_size): Also check ymmword.
451 (operand_type_match): Clear ymmword.
452 (md_begin): Allow '_' in mnemonic.
453 (type_names): Add OPERAND_TYPE_VEX_IMM4.
454 (process_immext): Update assert.
455 (md_assemble): Don't call process_immext if sse2avx and immext
456 are true. Call build_vex_prefix if vex is true.
457 (parse_insn): Updated for cpu_flags_match.
458 (swap_operands): Handle 5 operands.
459 (match_template): Handle 5 operands. Updated for cpu_flags_match.
460 Check regymm. Call VEX_check_operands. Handle YMMWORD_MNEM_SUFFIX.
461 (process_suffix): Handle YMMWORD_MNEM_SUFFIX.
462 (check_byte_reg): Check regymm.
463 (process_operands): Duplicate the destination register for
465 (build_modrm_byte): Updated for instructions with VEX encoding.
466 (output_insn): Output VEX prefix if needed.
467 (md_longopts): Add msse2avx.
468 (md_parse_option): Handle OPTION_MSSE2AVX.
469 (md_show_usage): Add avx, aes, clmul, fma and -msse2avx.
470 (intel_e09): Support YMMWORD.
471 (intel_e11): Likewise.
472 (intel_get_token): Likewise.
474 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
476 * config/tc-avr.c (mcu_types): Add attiny167.
477 * doc/c-avr.texi: Likewise.
479 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
481 * config/tc-avr.c (mcu_types): Add atmega32u4.
482 * doc/c-avr.texi: Likewise.
484 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com>
486 * config/tc-avr.c (mcu_types): Add atmega32c1.
487 * doc/c-avr.texi: Likewise.
489 2008-03-28 Paul Brook <paul@codesourcery.com>
491 * config/tc-arm.c (parse_neon_mov): Parse register before immediate
492 to avoid spurious symbols.
494 2008-03-28 Nathan Sidwell <nathan@codesourcery.com>
496 * config/tc-m68k.c (md_convert_frag_1): Replace as_fatal with
499 2008-03-27 Eric B. Weddington <eric.weddington@atmel.com>
501 * config/tc-avr.c (mcu_types): Add atmega32m1.
502 * doc/c-avr.texi: Likewise.
504 2008-03-27 Ineiev <ineiev@yahoo.co.uk>
506 * config/tc-arm.c (do_neon_cvt): Move variable declarations to
508 (do_neon_ext): Fix sign of comparison.
510 2008-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
512 From Jie Zhang <jie.zhang@analog.com>
513 * config/bfin-parse.y (asm_1): Check AREGS in comparison
514 instructions. And call yyerror when comparing PREG with
516 (check_macfunc_option): New.
517 (check_macfuncs): Check option by calling check_macfunc_option.
518 Fix comparison always true warnings. Both scalar instructions
519 of vector instruction must share the same mode option. Only allow
520 option mode at the end of the second instruction of the vector.
521 (asm_1): Check option by calling check_macfunc_option.
523 * config/bfin-parse.y (check_macfunc_option): Allow (IU)
524 option for multiply and multiply-accumulate to data register
526 (check_macfuncs): Don't check if accumulator matches the data register
528 (assign_macfunc): Check if accumulator matches the
529 data register in each rule that moves to the data
532 * config/tc-bfin.c (bfin_start_line_hook): Localize the labels
533 generated for LOOP_BEGIN and LOOP_END instructions.
534 (bfin_gen_loop): Likewise.
536 2008-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
538 * config/tc-s390.c (md_parse_option): z10 option added.
540 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
542 * aclocal.m4: Regenerate.
543 * configure: Likewise.
544 * Makefile.in: Likewise.
545 * doc/Makefile.in: Likewise.
547 2008-03-17 Adrian Bunk <bunk@stusta.de>
550 * config/tc-hppa.c (is_same_frag): Delete.
552 2008-03-14 Sterling Augustine <sterling@tensilica.com>
554 * config/tc-xtensa.h (xtensa_relax_statesE): Update comment for
555 RELAX_LOOP_END_ADD_NOP.
557 2008-03-13 Evandro Menezes <evandro@yahoo.com>
560 * read.c (s_mexit): Warn if attempting to exit a macro when not
561 inside a macro definition.
563 2008-03-13 Alan Modra <amodra@bigpond.net.au>
565 * Makefile.am: Run "make dep-am".
566 * Makefile.in: Regenerate.
567 * configure: Regenerate.
569 2008-03-09 Paul Brook <paul@codesourcery.com>
571 * config/tc-arm.c (arm_cpu_option_table): Add cortex-a9.
572 * doc/c-arm.texi: Add cortex-a9.
574 2008-03-09 Paul Brook <paul@codesourcery.com>
576 * config/tc-arm.c (fpu_vfp_ext_d32): New vairable.
577 (parse_vfp_reg_list, encode_arm_vfp_reg): Use it.
578 (arm_option_cpu_value): Add vfpv3-d16, vfpv2 and vfpv3.
579 (aeabi_set_public_attributes): Handle Tag_VFP_arch=VFPV3-D16.
580 * doc/c-arm.texi: Document new ARM FPU variants.
582 2008-03-07 Paul Brook <paul@codesourcery.com>
584 * config/tc-arm.c (md_apply_fix): Use correct offset range.
586 2008-03-07 Alan Modra <amodra@bigpond.net.au>
588 * config/tc-ppc.c (ppc_setup_opcodes): Tidy. Add code to test
589 for strict ordering of powerpc_opcodes, but disable for now.
591 2008-03-04 Paul Brook <paul@codesourcery.com>
593 * config/tc-arm.c (arm_ext_barrier, arm_ext_msr): New.
594 (arm_ext_v7m): Rename...
595 (arm_ext_m): ... to this. Include v6-M.
596 (do_t_add_sub): Allow narrow low-reg non flag setting adds.
597 (do_t_mrs, do_t_msr, aeabi_set_public_attributes): Use arm_ext_m.
598 (md_assemble): Allow wide msr instructions.
599 (insns): Add classifications for v6-m instructions.
600 (arm_cpu_option_table): Add cortex-m1.
601 (arm_arch_option_table): Add armv6-m.
602 (cpu_arch): Add ARM_ARCH_V6M. Fix numbering of other v6 variants.
604 2008-03-03 Sterling Augustine <sterling@tensilica.com>
605 Bob Wilson <bob.wilson@acm.org>
607 * config/tc-xtensa.c (xtensa_num_pipe_stages): New.
608 (md_begin): Initialize it.
609 (resources_conflict): Use it.
611 2008-03-03 Sterling Augustine <sterling@tensilica.com>
613 * config/tc-xtensa.h (RELAX_XTENSA_NONE): New.
615 2008-03-03 Denys Vlasenko <vda.linux@googlemail.com>
616 H.J. Lu <hongjiu.lu@intel.com>
619 * read.c (pseudo_set): Don't allow global register symbol.
621 * symbols.c (S_SET_EXTERNAL): Don't allow register symbol
624 2008-03-03 H.J. Lu <hongjiu.lu@intel.com>
627 * write.c (write_object_file): Don't allow symbols which were
628 equated to register. Stop if there is an error.
630 2008-03-01 Alan Modra <amodra@bigpond.net.au>
632 * config/tc-ppc.h (struct _ppc_fix_extra): New.
634 (TC_FIX_TYPE, TC_INIT_FIX_DATA): Define.
635 * config/tc-ppc.c (ppu_cpu): Make global.
636 (ppc_insert_operand): Add ppu_cpu parameter.
637 (md_assemble): Adjust for above change.
638 (md_apply_fix): Pass tc_fix_data.ppc_cpu to ppc_insert_operand.
640 2008-02-22 Nick Clifton <nickc@redhat.com>
642 * config/tc-arm.c (do_bx): Only test EF_ARM_EABI_VERSION on ELF
643 targeted ARM ports, otherwise just skip generating the reloc.
645 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
647 * doc/c-i386.texi: Update -march= and .arch.
649 2008-02-18 Nick Clifton <nickc@redhat.com>
651 * config/tc-mn10300.c (has_known_symbol_location): New function.
652 Do not regard weak symbols as having a known location.
653 (md_estimate_size_before_relax): Use new function.
654 (md_pcrel_from): Do not compute a pcrel against a weak symbol.
656 2008-02-18 Jan Beulich <jbeulich@novell.com>
658 * config/tc-i386.c (match_template): Disallow 'l' suffix when
659 currently selected CPU has no 32-bit support.
660 (parse_real_register): Do not return registers not available on
661 currently selected CPU.
663 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
665 * config/tc-i386.c (process_immext): Fix format.
667 2008-02-16 H.J. Lu <hongjiu.lu@intel.com>
669 * config/tc-i386.c (inoutportreg): New.
670 (process_immext): New.
671 (md_assemble): Use it.
672 (update_imm): Use imm16 and imm32s.
673 (i386_att_operand): Use inoutportreg.
675 2008-02-14 H.J. Lu <hongjiu.lu@intel.com>
677 * config/tc-i386.c (operand_type_all_zero): New.
678 (operand_type_set): Likewise.
679 (operand_type_equal): Likewise.
680 (cpu_flags_all_zero): Likewise.
681 (cpu_flags_set): Likewise.
682 (cpu_flags_equal): Likewise.
683 (UINTS_ALL_ZERO): Removed.
684 (UINTS_SET): Likewise.
685 (UINTS_CLEAR): Likewise.
686 (UINTS_EQUAL): Likewise.
687 (cpu_flags_match): Updated.
688 (smallest_imm_type): Likewise.
689 (set_cpu_arch): Likewise.
690 (md_assemble): Likewise.
691 (optimize_imm): Likewise.
692 (match_template): Likewise.
693 (process_suffix): Likewise.
694 (update_imm): Likewise.
695 (process_drex): Likewise.
696 (process_operands): Likewise.
697 (build_modrm_byte): Likewise.
698 (i386_immediate): Likewise.
699 (i386_displacement): Likewise.
700 (i386_att_operand): Likewise.
701 (parse_real_register): Likewise.
702 (md_parse_option): Likewise.
703 (i386_target_format): Likewise.
705 2008-02-14 Dimitry Andric <dimitry@andric.com>
708 * config/tc-arm.c (s_arm_unwind_save): Advance the input line
709 pointer past the comma after parsing a floating point register
712 2008-02-14 Hakan Ardo <hakan@debian.org>
715 * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26
717 (avr_operand): Disallow post-increment addressing in the lpm
718 instruction for the attiny26.
720 2008-02-13 Jan Beulich <jbeulich@novell.com>
722 * config/tc-i386.c (parse_real_register): Don't return 'FLAT'
723 if not in Intel mode.
724 (i386_intel_operand): Ignore segment overrides in immediate and
726 (intel_e11): Range-check i.mem_operands before use as array
727 index. Filter out FLAT for uses other than as segment override.
728 (intel_get_token): Remove broken promotion of "FLAT:" to mean
731 2008-02-13 Jan Beulich <jbeulich@novell.com>
733 * config/tc-i386.c (intel_e09): Also special-case 'bound'.
735 2008-02-13 Jan Beulich <jbeulich@novell.com>
737 * config/tc-i386.c (allow_pseudo_reg): New.
738 (parse_real_register): Check for NULL just once. Allow all
739 register table entries when allow_pseudo_reg is non-zero.
740 Don't allow any registers without type when allow_pseudo_reg
742 (tc_x86_regname_to_dw2regnum): Replace with ...
743 (tc_x86_parse_to_dw2regnum): ... this.
744 (tc_x86_frame_initial_instructions): Adjust for above change.
745 * config/tc-i386.h (tc_regname_to_dw2regnum): Remove.
746 (tc_parse_to_dw2regnum): New.
747 (tc_x86_regname_to_dw2regnum): Replace with ...
748 (tc_x86_parse_to_dw2regnum): ... this.
749 * dw2gencfi.c (tc_parse_to_dw2regnum): New, broken out of ...
750 (cfi_parse_reg): ... this. Use tc_parse_to_dw2regnum. Adjust
753 2008-02-12 Nick Clifton <nickc@redhat.com>
755 * config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
757 (tic4x_insn_add): Likewise.
758 (md_begin): Drop cast that was discarding a const qualifier.
759 * config/tc-d30v.c (get_reloc): Add const qualifier to op
761 (build_insn): Drop cast that was discarding a const qualifier.
763 2008-02-11 H.J. Lu <hongjiu.lu@intel.com>
765 * config/tc-i386.c (cpu_arch): Add .xsave.
766 (md_show_usage): Add .xsave.
768 * doc/c-i386.texi: Add xsave to -march=.
770 2008-02-07 Alan Modra <amodra@bigpond.net.au>
772 * read.c (s_weakref): Don't pass unadorned NULL to concat.
773 * config/tc-i386.c (set_cpu_arch, md_parse_option): Likewise.
775 2008-02-05 Sterling Augustine <sterling@tensilica.com>
777 * config/tc-xtensa.c (relax_frag_immed): Change internal consistency
778 checks into assertions. When relaxation produces an operation that
779 does not fit in the current FLIX instruction, make sure that the
780 operation is relaxed as needed to account for being placed following
781 the current instruction.
783 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
786 * configure: Regenerated.
788 2008-02-04 Adam Nemet <anemet@caviumnetworks.com>
790 * config/tc-mips.c (mips_cpu_info_table): Add Octeon.
792 2008-01-31 Marc Gauthier <marc@tensilica.com>
794 * configure.tgt (xtensa*-*-*): Recognize processor variants.
796 2008-01-25 Kai Tietz <kai.tietz@onevision.com>
798 * read.c: (emit_expr): Correct for mingw use of printf size
801 2008-01-24 Bob Wilson <bob.wilson@acm.org>
803 * doc/c-xtensa.texi (Xtensa Syntax): Clarify handling of opcodes that
804 can only be encoded in FLIX instructions but are not specified as such.
805 (Xtensa Automatic Alignment): Remove obsolete comment about debugging
808 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
810 * NEWS: Mention new command line options for x86 targets.
812 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
814 * config/tc-i386.c (md_show_usage): Replace tabs with spaces.
816 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com>
818 * config/tc-avr.c (mcu_types): Change opcode set for at86rf401.
820 2008-01-23 H.J. Lu <hongjiu.lu@intel.com>
822 * config/tc-i386.c (md_show_usage): Show more processors for
825 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
827 * config/tc-i386.c (i386_target_format): Remove cpummx2.
829 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
831 * config/tc-i386.c (XXX_PREFIX): Moved from tc-i386.h.
832 (XXX_MNEM_SUFFIX): Likewise.
833 (END_OF_INSN): Likewise.
834 (templates): Likewise.
835 (modrm_byte): Likewise.
836 (rex_byte): Likewise.
837 (DREX_XXX): Likewise.
838 (drex_byte): Likewise.
839 (sib_byte): Likewise.
840 (processor_type): Likewise.
841 (arch_entry): Likewise.
842 (cpu_sub_arch_name): Remove const.
843 (cpu_arch): Add .vmx and .smx.
844 (set_cpu_arch): Append cpu_sub_arch_name.
845 (md_parse_option): Support -march=CPU[,+EXTENSION...].
846 (md_show_usage): Updated.
848 * config/tc-i386.h (XXX_PREFIX): Moved to tc-i386.c.
849 (XXX_MNEM_SUFFIX): Likewise.
850 (END_OF_INSN): Likewise.
851 (templates): Likewise.
852 (modrm_byte): Likewise.
853 (rex_byte): Likewise.
854 (DREX_XXX): Likewise.
855 (drex_byte): Likewise.
856 (sib_byte): Likewise.
857 (processor_type): Likewise.
858 (arch_entry): Likewise.
860 * doc/as.texinfo: Update i386 -march option.
862 * doc/c-i386.texi: Update -march= for ISA.
864 2008-01-18 Bob Wilson <bob.wilson@acm.org>
866 * config/tc-xtensa.c (xtensa_leb128): New function.
867 (md_pseudo_table): Use it for sleb128 and uleb128.
868 (is_leb128_expr): New internal flag.
869 (xtensa_symbol_new_hook): Check new flag.
871 2008-01-16 Eric B. Weddington <eric.weddington@atmel.com>
873 * config/tc-avr.c (mcu_types): Change opcode set for avr3,
874 at90usb82, at90usb162.
875 * doc/c-avr.texi: Change architecture grouping for at90usb82,
877 These changes support the new avr35 architecture group in gcc.
879 2008-01-15 H.J. Lu <hongjiu.lu@intel.com>
881 * config/tc-i386.c (md_assemble): Also zap movzx and movsx
882 suffix for AT&T syntax.
884 2008-01-14 H.J. Lu <hongjiu.lu@intel.com>
886 * config/tc-i386.c (match_reg_size): New.
887 (match_mem_size): Likewise.
888 (operand_size_match): Likewise.
889 (operand_type_match): Also clear all size fields.
890 (match_template): Skip Intel syntax when in AT&T syntax.
891 Call operand_size_match to check operand size.
892 (i386_att_operand): Set the mem field to 1 for memory
894 (i386_intel_operand): Likewise.
896 2008-01-12 H.J. Lu <hongjiu.lu@intel.com>
899 * config/tc-i386.c (_i386_insn): Update comment.
900 (operand_type_match): Also clear unspecified.
901 (operand_type_register_match): Likewise.
902 (parse_operands): Initialize unspecified.
903 (i386_intel_operand): Likewise.
904 (match_template): Check memory and accumulator operand size.
905 (i386_att_operand): Clear unspecified on register operand.
906 (intel_e11): Likewise.
907 (intel_e09): Set operand size and clean unspecified for
910 2008-01-11 Andreas Schwab <schwab@suse.de>
912 * read.c (s_space): Declare `repeat' as offsetT.
914 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
916 * config/tc-i386.c (match_template): Check processor support
919 2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
921 * config/tc-i386.c (match_template): Continue if processor
924 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
926 * config/tc-ia64.c (ia64_convert_frag): Zero-initialize room for
927 unwind personality function address.
929 2008-01-09 Bob Wilson <bob.wilson@acm.org>
931 * dwarf2dbg.c (out_sleb128): Delete.
932 (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New.
933 (out_fixed_inc_line_addr): Delete.
934 (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new
935 size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set.
936 (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr.
937 (process_entries): Remove calls to out_fixed_inc_line_addr. When
938 DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr.
939 * read.h (emit_expr_fix): New prototype.
940 * read.c (emit_expr): Move code to emit_expr_fix and use it here.
941 (emit_expr_fix): New.
943 2008-01-09 H.J. Lu <hongjiu.lu@intel.com>
945 * config/tc-i386.c (match_template): Check register size
946 only when size of operands can be encoded the canonical way.
948 2008-01-08 H.J. Lu <hongjiu.lu@intel.com>
950 * config/tc-i386.c (i386_operand): Renamed to ...
951 (i386_att_operand): This.
952 (parse_operands): Updated.
954 2008-01-05 H.J. Lu <hongjiu.lu@intel.com>
956 * doc/c-i386.texi: Update .att_mnemonic and .intel_mnemonic.
958 * config/tc-i386.c (set_intel_mnemonic): Set intel_mnemonic
960 (md_assemble): Remove Intel mode workaround.
961 (match_template): Check support for old gcc, AT&T mnemonic
963 (md_parse_option): Don't set intel_mnemonic to 0 for
966 2008-01-04 H.J. Lu <hongjiu.lu@intel.com>
968 * config/tc-i386.h: Update copyright to 2008.
970 2008-01-04 Nick Clifton <nickc@redhat.com>
972 * config/tc-ppc.c (parse_cpu): Preserve the settings of the
973 PPC_OPCODE_ALTIVEC and PPC_OPCODE_SPE flags.
975 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
977 * config/tc-i386.c (md_assemble): Use !intel_mnemonic instead
980 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
982 * gas/config/tc-i386.c (cpu_arch_flags_not): Removed.
983 (cpu_flags_not): Likewise.
984 (cpu_flags_match): Updated to check 64bit and arch.
985 (set_code_flag): Remove cpu_arch_flags_not.
986 (set_16bit_gcc_code_flag): Likewise.
987 (set_cpu_arch): Likewise.
988 (md_begin): Likewise.
989 (parse_insn): Call cpu_flags_match to check 64bit and arch.
990 (match_template): Likewise.
992 2008-01-03 Jakub Jelinek <jakub@redhat.com>
994 * config/tc-i386.c (process_drex): Initialize modrm_reg and
995 modrm_regmem to 0 instead of None.
997 2008-01-03 H.J. Lu <hongjiu.lu@intel.com>
999 * config/tc-i386.c (match_template): Use the xmmword field
1002 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1004 * config/tc-i386.c (process_suffix): Fix a typo.
1006 2008-01-02 H.J. Lu <hongjiu.lu@intel.com>
1009 * config/tc-i386.c (match_template): Handle XMMWORD_MNEM_SUFFIX.
1010 Check memory size in Intel mode.
1011 (process_suffix): Handle XMMWORD_MNEM_SUFFIX.
1012 (intel_e09): Likewise.
1014 * config/tc-i386.h (XMMWORD_MNEM_SUFFIX): New.
1016 2008-01-02 Catherine Moore <clm@codesourcery.com>
1018 * config/tc-mips.c (mips_ip): Check operands on jalr instruction.
1020 For older changes see ChangeLog-2007
1026 version-control: never