From 720705d2339f8800c256ea9536e7a2fef3e81b19 Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Thu, 19 Jun 2008 20:34:05 +0400 Subject: [PATCH] avr.c (avr_mcu_t): Add attiny13a. * config/avr/avr.c (avr_mcu_t): Add attiny13a. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). From-SVN: r136953 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.c | 1 + gcc/config/avr/avr.h | 3 ++- gcc/config/avr/t-avr | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 315155af5b7..bde2b027f60 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-06-19 Anatoly Sokolov + + * config/avr/avr.c (avr_mcu_t): Add attiny13a. + * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). + * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). + 2008-06-19 Bernhard Fischer * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 1726fe0031c..45f816f5d56 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -173,6 +173,7 @@ static const struct mcu_type_s avr_mcu_types[] = { /* Classic + MOVW, <= 8K. */ { "avr25", ARCH_AVR25, NULL }, { "attiny13", ARCH_AVR25, "__AVR_ATtiny13__" }, + { "attiny13a", ARCH_AVR25, "__AVR_ATtiny13A__" }, { "attiny2313", ARCH_AVR25, "__AVR_ATtiny2313__" }, { "attiny24", ARCH_AVR25, "__AVR_ATtiny24__" }, { "attiny44", ARCH_AVR25, "__AVR_ATtiny44__" }, diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 664dfbea918..17700c9afaa 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -817,7 +817,7 @@ mmcu=*:-mmcu=%*}" mmcu=at90s8*|\ mmcu=at90c8*|\ mmcu=at86rf401|\ - mmcu=attiny13|\ + mmcu=attiny13*|\ mmcu=attiny2313|\ mmcu=attiny24|\ mmcu=attiny25|\ @@ -916,6 +916,7 @@ mmcu=*:-mmcu=%*}" %{mmcu=at90s8535:crts8535.o%s} \ %{mmcu=at86rf401:crt86401.o%s} \ %{mmcu=attiny13:crttn13.o%s} \ +%{mmcu=attiny13a:crttn13a.o%s} \ %{mmcu=attiny2313|mmcu=avr25:crttn2313.o%s} \ %{mmcu=attiny24:crttn24.o%s} \ %{mmcu=attiny44:crttn44.o%s} \ diff --git a/gcc/config/avr/t-avr b/gcc/config/avr/t-avr index f5877e8a9e8..e64152bda19 100644 --- a/gcc/config/avr/t-avr +++ b/gcc/config/avr/t-avr @@ -43,6 +43,7 @@ MULTILIB_DIRNAMES = avr2 avr25 avr3 avr31 avr35 avr4 avr5 avr51 avr6 # The many avr2 matches are not listed here - this is the default. MULTILIB_MATCHES = \ mmcu?avr25=mmcu?attiny13 \ + mmcu?avr25=mmcu?attiny13a \ mmcu?avr25=mmcu?attiny2313 \ mmcu?avr25=mmcu?attiny24 \ mmcu?avr25=mmcu?attiny44 \ -- 2.30.2