]> git.ipfire.org Git - thirdparty/gcc.git/commit
avr.c (avr_current_arch): New variable.
authorAnatoly Sokolov <aesok@post.ru>
Wed, 23 Jan 2008 15:07:09 +0000 (18:07 +0300)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Wed, 23 Jan 2008 15:07:09 +0000 (18:07 +0300)
commit19298da4bd20b37a703a84239c52f8bb13ce7b3c
tree5e7464097d1e0e77e22f54b81f9c68a127175b97
parentb86b3ea354db58a3cc83b396a093c4e498eb8f95
avr.c (avr_current_arch): New variable.

* config/avr/avr.c (avr_current_arch): New variable.
(avr_arch_types): Add 'avr31' and 'avr51' entries.
(avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
(avr_mcu_types): Add 'avr31' and 'avr51' architectures.
(avr_override_options): Init 'avr_current_arch'.
(base_arch_s): Move from here...
* config/avr/avr.h (base_arch_s): ... here. Add new members
'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
'mega' to 'have_jmp_call'.
(TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
"__AVR_HAVE_RAMPZ__",  "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
macros.
(LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
architectures.
* config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
MULTILIB_MATCHES): (Ditto.).

From-SVN: r131759
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.h
gcc/config/avr/t-avr