summaryrefslogtreecommitdiff
path: root/gas/config/tc-avr.c
Commit message (Collapse)AuthorAgeFilesLines
* * config/tc-avr.c (md_show_usage): Add avrxmega2 to help textNick Clifton2013-07-181-0/+1
|
* * config/tc-avr.c: Make ata6289's ISA to AVR_ISA_AVR4.Nick Clifton2013-07-181-1/+1
| | | | * doc/c-avr.texi: Likewise.
* * gas/config/tc-avr.c: Change ISA for devices with USB support toDenis Chertykov2013-06-011-4/+4
| | | | | | | AVR_ISA_XMEGAU * include/opcode/avr.h: Rename AVR_ISA_XCH to AVR_ISA_RMW. Remove from AVR_ISA_XMEGA and add new AVR_ISA_XMEGAU
* * gas/config/tc-avr.c (mcu_types): Add ATmega64RFR2,Nick Clifton2013-04-091-0/+6
| | | | | | ATmega644RFR2, ATmega128RFR2, ATmega1284RFR2, ATmega256RFR2, ATmega2564RFR2 * gas/doc/c-avr.texi (-mmcu documentation): Likewise.
* PR gas/15282Nick Clifton2013-03-211-3/+12
| | | | | | * tc-avr.c (mcu_has_3_byte_pc): New function. (tc_cfi_frame_initial_instructions): Call it to find return address size.
* PR gas/14255Alan Modra2013-02-051-22/+2
| | | | | | | * config/tc-avr.h (TC_VALIDATE_FIX): Mark symbol used by reloc. Don't skip fixups with fx_subsy non-NULL. * config/tc-avr.c (tc_gen_reloc): Don't specially handle fixups with fx_subsy non-NULL.
* PR gas/15039Nick Clifton2013-01-231-1/+2
| | | | * config/tc-avr.c: Include dwarf2dbg.h.
* PR 13503Nick Clifton2012-06-111-1/+1
| | | | | * config/tc-avr.c (exp_mod): Fix typo introduced in 1.82 from 2012-05-16.
* PR 13503Nick Clifton2012-05-161-8/+8
| | | | | | | | | | | | | | | | * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO. * bfd-in2.h: Regenerate. * libbfd.h: Regenrate. * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8. (avr_reloc_map): Ditto. * config/tc-avr.c (avr_cons_fix_new): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8. (exp_mod_data) Ditto. And replace "hhi8" with "hlo8". (md_apply_fix): Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO. * avr.h (RELOC_NUMBERS): Rename R_AVR_8_HHI8 to R_AVR_8_HLO8.
* PR 13503Nick Clifton2012-05-111-35/+95
| | | | | | | | | | | | | | | | | | | | | | | | | * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI. * bfd-in2.h: Regenerate. * libbfd.h: Regenrate. * elf32-avr.c (elf_avr_howto_table): Add entries for R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8. (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8. * config/tc-avr.c (exp_mod_pm): Remove variable. (exp_mod_data_t): New typedef. (pexp_mod_data, exp_mod_data): New variables. (avr_parse_cons_expression): Scan through exp_mod_data[] to find data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8" and set pexp_mod_data accordingly to be used in avr_cons_fix_new. (avr_cons_fix_new): Handle new data expression modifiers shipped in pexp_mod_data. (md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI. * elf/avr.h (RELOC_NUMBERS): Add values for R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
* gas/Richard Sandiford2012-04-171-1/+1
| | | | * config/tc-avr.c (md_apply_fix): Fix handling of BFD_RELOC32.
* PR 12610Richard Henderson2011-03-291-0/+17
| | | | | * config/tc-alpha.c (s_alpha_align): Don't auto-align a previous label; zap alpha_insn_label.
* 2011-03-24 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2011-03-241-0/+6
| | | | | | | * config/tc-avr.c (mcu_types): Add new devices: atmega325pa, atmega3250pa, atmega3290pa, atmega16hvbrevb, atmega32hvbrevb, at90pwm161. * doc/c-avr.texi: Document new device names.
* 2011-03-23 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2011-03-231-0/+6
| | | | | | * config/tc-avr.c (mcu_types): Add new xmega devices: atxmega64a1u, atxmega128a1u, atxmega16x1, atxmega32x1, atxmega128b1, atxmega256a3bu. * doc/c-avr.texi: Document new device names.
* /bfd:Eric B. Weddington2011-03-221-3/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * archures.c: Add AVR XMEGA architecture information. * cpu-avr.c (arch_info_struct): Likewise. * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise. (elf32_avr_object_p): Likewise. /gas: 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (struct avr_opcodes_s): Add opcode field. (AVR_INSN): Change definition to match. (avr_opcodes): Likewise, change to match. (mcu_types): Add XMEGA architecture names and new XMEGA device names. (md_show_usage): Add XMEGA architecture names. (avr_operand): Add 'E' constraint for DES instruction of XMEGA devices. Add support for SPM Z+ instruction. * doc/c-avr.texi: Add documentation for XMEGA architectures and devices. /include/opcode: 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * avr.h (AVR_ISA_SPMX,AVR_ISA_DES,AVR_ISA_M256,AVR_ISA_XMEGA): New instruction set flags. (AVR_INSN): Add new instructions for SPM Z+, DES for XMEGA. /ld: 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures. (eavrxmega?.c): Likewise. * configure.tgt (targ_extra_emuls): Likewise. * emulparams/avrxmega1.sh: New file. * emulparams/avrxmega2.sh: Likewise. * emulparams/avrxmega3.sh: Likewise. * emulparams/avrxmega4.sh: Likewise. * emulparams/avrxmega5.sh: Likewise. * emulparams/avrxmega6.sh: Likewise. * emulparams/avrxmega7.sh: Likewise. * emultempl/avrelf.em (avr_elf_${EMULATION_NAME}_before_allocation): Add avrxmega6, avrxmega7 to list of architectures for no stubs. /opcodes: 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com> * avr-dis.c (avr_operand): Add opcode_str parameter. Check for post-increment to support LPM Z+ instruction. Add support for 'E' constraint for DES instruction. (print_insn_avr): Adjust calls to avr_operand. Rename variable.
* 2011-03-21 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2011-03-211-1/+1
| | | | * config/tc-avr.c (md_show_usage): Add "Assembler" text to output.
* * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define.Alan Modra2010-06-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-crx.c (gettrap): Constify arg. (handle_LoadStor, get_cinv_parameters): Likewise. (getreg_image): Fix enum warning (md_assemble): Restore input line char. * config/tc-hppa.c (tc_gen_reloc): Fix enum warning. * config/tc-i960.c (mem_fmt): Rename var to fix shadow warning. * config/tc-sh.c (sh_fdpic): Only define when OBJ_ELF. (build_Mytes): Fix build failure for non-elf targets. * config/tc-tic4x.c (tic4x_eval): Restore terminator char. * config/tc-xtensa.c (xtensa_end_directive): Fix switch enum warning. * cgen.c (gas_cgen_md_apply_fix): Avoid set but unused warning. * ecoff.c (add_ecoff_symbol): Likewise. * itbl-ops.c (append_insns_as_macros): Likewise. * listing.c (debugging_pseudo): Likewise. * read.c (s_mri_common, stringer): Likewise. * config/obj-coff.c (coff_frob_section): Likewise. * config/tc-alpha.c (emit_ldgp, s_alpha_proc): Likewise. * config/tc-arm.c (my_get_expression): Likewise. * config/tc-hppa.c (process_exit, pa_type_args): Likewise. * config/tc-m32c.c (md_assemble): Likewise. * config/tc-microblaze.c (md_convert_frag): Likewise. * config/tc-mips.c (s_change_section): Likewise. * config/tc-mt.c (mt_fix_adjustable): Likewise. * config/tc-xtensa.c (xtensa_literal_pseudo): Likewise. * config/obj-aout.c (obj_aout_frob_symbol): Delete set but otherwise unused vars. * config/tc-alpha.c (load_expression): Likewise. (s_alpha_rdata, s_alpha_section, s_alpha_prologue): Likewise. * config/tc-arm.c (parse_neon_el_struct_list): Likewise. * config/tc-avr.c (extract_word): Likewise. * config/tc-cris.c (cris_get_expression): Likewise. * config/tc-d30v.c (build_insn, find_format): Likewise. * config/tc-dlx.c (machine_ip): Likewise. * config/tc-hppa.c (pa_get_absolute_expression): Likewise. * config/tc-i370.c (md_assemble): Likewise. * config/tc-i960.c (brtab_emit): Likewise. * config/tc-iq2000.c (s_iq2000_ent): Likewise. * config/tc-m32c.c (md_convert_frag): Likewise. * config/tc-m68hc11.c (fixup24, build_jump_insn): Likewise. (md_estimate_size_before_relax, md_apply_fix): Likewise. * config/tc-m68k.c (md_show_usage): Likewise. * config/tc-microblaze.c (microblaze_s_lcomm): Likewise. * config/tc-mips.c (s_mips_end): Likewise. * config/tc-mmix.c (mmix_byte, mmix_cons): Likewise. * config/tc-mn10300.c (md_assemble): Likewise. * config/tc-msp430.c (extract_word): Likewise. * config/tc-mt.c (md_assemble): Likewise. * config/tc-or32.c (machine_ip): Likewise. * config/tc-pj.c (md_apply_fix): Likewise. * config/tc-s390.c (md_gather_operands): Likewise. * config/tc-sh.c (sh_cons_align): Likewise. * config/tc-sparc.c (sparc_cons_align): Likewise. * config/tc-tic4x.c (tic4x_sect): Likewise. * config/tc-tic54x.c (tic54x_stringer): Likewise. * config/tc-vax.c (vip_op): Likewise. * config/tc-xstormy16.c (xstormy16_cons_fix_new): Likewise. * config/tc-xtensa.c (md_assemble): Likewise. (xtensa_fix_short_loop_frags, convert_frag_immed): Likewise. (xtensa_move_literals): Likewise.
* 2010-04-07 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2010-04-091-9/+31
| | | | | | | | | | | | | * config/tc-avr.c (mcu_types): Add support for atmega16a, atmega168a, atmega164a, atmega165a, atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa, atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa, atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p, atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a, atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a, m3000. Remove support for atmega8m1, atmega8c1, atmega16c1, atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b. * doc/c-avr.texi: Same.
* PR 11297: Add support for 8-bit relocations to the AVR toolchain.Nick Clifton2010-02-231-3/+12
|
* 2009-10-29 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-10-291-3/+0
| | | | | | | | * config/tc-mep.c (md_pseudo_table): Remove dwarf2 pseudo as they are already defined in obj-elf.c * config/tc-m32c.c (md_pseudo_table): Ditto. * config/tc-spu.c (md_pseudo_table): Ditto. * config/tc-avr.c (md_pseudo_table): Ditto.
* 2009-10-27 Tristan Gingold <gingold@adacore.com>Tristan Gingold2009-10-271-0/+3
| | | | | | * config/tc-avr.c (md_pseudo_table): Add dwarf2 debug pseudo. * config/tc-avr.h (DWARF2_LINE_MIN_INSN_LENGTH): Define. (DWARF2_ADDR_SIZE): Define.
* * read.c (emit_expr_fix): Handle size 3.Alan Modra2009-09-081-0/+2
| | | | | | | | | | | * config/tc-avr.c (md_assemble): Call dwarf2_emit_insn. * config/tc-d30v.c (write_long, write_1_short, write_2_short, md_assemble): Likewise. * config/tc-dlx.c (md_assemble): Likewise. * config/tc-i860.c (md_assemble): Likewise. * config/tc-mn10200.c (md_assemble): Likewise. * config/tc-pj.c (md_assemble): Likewise. * config/tc-vax.c (md_assemble): Likewise.
* update copyright datesAlan Modra2009-09-021-1/+1
|
* /gas:Eric B. Weddington2009-08-051-0/+7
| | | | | | | | 2009-08-05 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add attiny2313a, attiny4313, attiny261a, attiny861a, atmega644pa, attiny24a, attiny44a. * doc/c-avr.texi: Likewise.
* /gas:Eric B. Weddington2009-08-021-0/+3
| | | | | | | 2009-08-02 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add atmega8m1, atmega8c1, atmega16c1. * doc/c-avr.texi: Likewise.
* /gas:Eric B. Weddington2009-08-011-0/+3
| | | | | | | 2009-08-01 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add atmega8u2, atmega16u2, atmega32u2. * doc/c-avr.texi: Likewise.
* * config/tc-avr.c (md_apply_fix): Cast fixup reloc type to avoidNick Clifton2009-07-171-1/+1
| | | | compile time warning.
* /gas:Eric B. Weddington2009-02-031-0/+1
| | | | | | | 2009-01-29 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add ata6289. * doc/c-avr.texi: Likewise.
* /gas:Eric B. Weddington2009-01-261-1/+1
| | | | | | | | 2009-01-26 Eric B. Weddington <eric.weddington@atmel.com> PR 9789 * config/tc-avr.c (mcu_types): Fix typo in atmega128rfa1 name. * doc/c-avr.texi: Likewise.
* * config/tc-avr.c (mcu_types): Add attiny87, attiny327, atmega4hvd,Nick Clifton2008-12-231-1/+17
| | | | | | | atmega8hvd, atmega16hvb, atmega32hvb, atmega64c1, atmega16m1, atmega64m1, atmega32u6, atmega128rfa1, at90pwm81, at90scr100, m3000f, m3000s and m3001b devices. * doc/c-avr.texi: Likewise.
* * config/tc-avr.c (mcu_types): Add atmega16u4.Nick Clifton2008-08-291-0/+1
| | | | * doc/c-avr.texi: Likewise.
* Add AVR architectures avr25, avr31, avr35, and avr51 to match GCC.Eric B. Weddington2008-08-091-111/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bfd/ * archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35, bfd_mach_avr51): New. * bfd-in2.h: Regenerate. * cpu-avr.c (arch_info_struct): Add avr25, avr31, avr35, and avr51 architectures. Change comments to match architecture comments in GCC. (compatible): Add test for new AVR architectures. * elf32-avr.c (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35 and bfd_mach_avr51. (elf32_avr_object_p): Recognize E_AVR_MACH_AVR25, E_AVR_MACH_AVR31, E_AVR_MACH_AVR35 and E_AVR_MACH_AVR51. gas/ * config/tc-avr.c (mcu_types): Add avr25, avr31, avr35, and avr51 architectures. Reorganize list to put mcu types in correct architectures and to order list same as in GCC. Use new ISA definitions in include/opcode/avr.h. * doc/c-avr.texi: Add avr25, avr31, avr35, and avr51 architecture descriptions. Reorganize descriptions to put mcu types in correct architectures and to order lists same as in GCC. include/ * elf/avr.h (E_AVR_MACH_AVR25, E_AVR_MACH_AVR31, E_AVR_MACH_AVR35, E_AVR_MACH_AVR51): Define. (EF_AVR_MACH): Redefine to 0x7F. * opcode/avr.h (AVR_ISA_TINY3, AVR_ISA_ALL, AVR_ISA_USB162): Remove. (AVR_ISA_AVR3): Redefine. (AVR_ISA_AVR1, AVR_ISA_AVR2, AVR_ISA_AVR31, AVR_ISA_AVR35, AVR_ISA_AVR3_ALL, AVR_ISA_AVR4, AVR_ISA_AVR5, AVR_ISA_AVR51, AVR_ISA_AVR6): Define. ld/ * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o, and eavr51.o. Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c. * Makefile.in: Regenerate. * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35 and avr51. * emulparams/avr25.sh: New file. * emulparams/avr31.sh: New file. * emulparams/avr35.sh: New file. * emulparams/avr51.sh: New file.
* /gas:Eric B. Weddington2008-06-251-0/+1
| | | | | | | | 2008-06-24 Eric B. Weddington <eric.weddington@atmel.com> Add support for ATtiny13A. * config/tc-avr.c (mcu_types): Add attiny13a. * doc/c-avr.texi: Likewise.
* /gas:Eric B. Weddington2008-06-091-1/+0
| | | | | | | 2008-06-09 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Remove support for ATmega32HVB device. * doc/c-avr.texi: Likewise.
* PR 5523Nick Clifton2008-05-301-1/+3
| | | | | * config/tc-avr.c (avr_ldi_expression): Do not warn about unknown relocs here.
* /gas:Eric B. Weddington2008-03-281-0/+1
| | | | | | | | | | | | 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add attiny167. * doc/c-avr.texi: Likewise. /include: 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com> * opcode/avr.h (AVR_ISA_TINY3): Define new opcode set for attiny167.
* /gas:Eric B. Weddington2008-03-281-0/+1
| | | | | | | 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add atmega32u4. * doc/c-avr.texi: Likewise.
* /gas:Eric B. Weddington2008-03-281-0/+1
| | | | | | | 2008-03-28 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Add atmega32c1. * doc/c-avr.texi: Likewise.
* * config/tc-avr.c (mcu_types): Add atmega32m1.Nick Clifton2008-03-271-0/+1
| | | | * doc/c-avr.texi: Likewise.
* PR gas/2626Nick Clifton2008-02-141-2/+8
| | | | | | | | | * avr.h (AVR_ISA_2xxe): Define. * config/tc-avr.c (mcu_types): Change the ISA tyoe of the attiny26 to AVR_ISA_2xxe. (avr_operand): Disallow post-increment addressing in the lpm instruction for the attiny26.
* /gas:Eric B. Weddington2008-01-231-1/+1
| | | | | | | | | | | 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Change opcode set for at86rf401. /include: 2008-01-23 Eric B. Weddington <eric.weddington@atmel.com> * opcode/avr.h (AVR_ISA_RF401): Add new opcode set for at86rf401.
* /gas:Eric B. Weddington2008-01-161-3/+3
| | | | | | | | | | | | | | | | 2008-01-03 Eric B. Weddington <eric.weddington@atmel.com> * config/tc-avr.c (mcu_types): Change opcode set for avr3, at90usb82, at90usb162. * doc/c-avr.texi: Change architecture grouping for at90usb82, at90usb162. These changes support the new avr35 architecture group in gcc. /include: 2008-01-03 Eric B. Weddington <eric.weddington@atmel.com> * opcode/avr.h (AVR_ISA_USB162): Add new opcode set. (AVR_ISA_AVR3): Likewise.
* 2007-11-16 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2007-11-161-0/+1
| | | | | * config/tc-avr.c (mcu_types): Add ATmega32HVB device. * doc/c-avr.texi: Likewise.
* 2007-11-16 Eric B. Weddington <eric.weddington@atmel.com>Eric B. Weddington2007-11-161-0/+1
| | | | | * config/tc-avr.c (mcu_types): Add ATmega1284P device. * doc/c-avr.texi: Likewise.
* 2007-11-07 Eric B. Weddington <eweddington@cso.atmel.com>Eric B. Weddington2007-11-071-0/+1
| | | | | * config/tc-avr.c (mcu_types): Add ATtiny88 device. * doc/c-avr.texi: Likewise.
* 2007-11-07 Anatoly Sokolov <aesok@post.ru>Eric B. Weddington2007-11-071-0/+4
| | | | | | * config/tc-avr.c (mcu_types): Add new devices: ATmega48P, ATmega88P, ATmega168P, Atmega328P * doc/c-avr.texi: Document new devices.
* 2007-10-31 Eric B. Weddington <eweddington@cso.atmel.com>Eric B. Weddington2007-10-311-6/+2
| | | | | | * config/tc-avr.c (mcu_types): Remove devices that were never produced: attiny10, atmega83, atmega85, atmega603. * doc/c-avr.texi: Likewise.
* Remove duplicate definitions of the md_atof() functionNick Clifton2007-10-171-37/+1
|
* * config/tc-avr.c (mcu_types): Add new devices: AT90PWM2B, AT90PWM3B.Nick Clifton2007-10-121-0/+2
| | | | * doc/c-avr.texi: Document new devices.
* * config/tc-avr.c (mcu_types): Add new devices: AT90PWM216, AT90PWM316.Nick Clifton2007-10-081-0/+2
| | | | * doc/c-avr.texi: Document new devices.