From: Eric B. Weddington Date: Tue, 17 Jun 2008 16:57:23 +0000 (+0000) Subject: avr.c (avr_mcu_t): Add atmega32u4. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59928a837f4eaf59c7c67fe5ab3c06423a967ebe;p=gcc.git avr.c (avr_mcu_t): Add atmega32u4. * config/avr/avr.c (avr_mcu_t): Add atmega32u4. * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. * config/avr/t-avr (MULTILIB_MATCHES): Likewise. From-SVN: r136869 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3462fdd6ea3..ec81fd32fae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-06-17 Eric B. Weddington + + * config/avr/avr.c (avr_mcu_t): Add atmega32u4. + * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. + * config/avr/t-avr (MULTILIB_MATCHES): Likewise. + 2008-06-17 Bernhard Fischer * tree-ssa-sccvn.c: Fix format of comments. diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 94e22f09d3e..1c9fcc2a370 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -256,6 +256,7 @@ static const struct mcu_type_s avr_mcu_types[] = { { "at90pwm316", ARCH_AVR5, "__AVR_AT90PWM316__" }, { "atmega32m1", ARCH_AVR5, "__AVR_ATmega32M1__" }, { "atmega32c1", ARCH_AVR5, "__AVR_ATmega32C1__" }, + { "atmega32u4", ARCH_AVR5, "__AVR_ATmega32U4__" }, { "at90usb646", ARCH_AVR5, "__AVR_AT90USB646__" }, { "at90usb647", ARCH_AVR5, "__AVR_AT90USB647__" }, { "at94k", ARCH_AVR5, "__AVR_AT94K__" }, diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index bc14f0d2dd5..66e10d4fa41 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -875,6 +875,7 @@ mmcu=*:-mmcu=%*}" mmcu=at90pwm*|\ mmcu=atmega32c1|\ mmcu=atmega32m1|\ + mmcu=atmega32u4|\ mmcu=at90usb*: -Tdata 0x800100}\ %{mmcu=atmega640|\ mmcu=atmega1280|\ @@ -986,6 +987,7 @@ mmcu=*:-mmcu=%*}" %{mmcu=at90pwm316:crt90pwm316.o%s} \ %{mmcu=atmega32c1:crtm32c1.o%s} \ %{mmcu=atmega32m1:crtm32m1.o%s} \ +%{mmcu=atmega32u4:crtm32u4.o%s} \ %{mmcu=at90usb646:crtusb646.o%s} \ %{mmcu=at90usb647:crtusb647.o%s} \ %{mmcu=at94k:crtat94k.o%s} \ diff --git a/gcc/config/avr/t-avr b/gcc/config/avr/t-avr index 101b84daabe..644df9a9a57 100644 --- a/gcc/config/avr/t-avr +++ b/gcc/config/avr/t-avr @@ -116,6 +116,7 @@ MULTILIB_MATCHES = \ mmcu?avr5=mmcu?at90pwm316 \ mmcu?avr5=mmcu?atmega32c1 \ mmcu?avr5=mmcu?atmega32m1 \ + mmcu?avr5=mmcu?atmega32u4 \ mmcu?avr5=mmcu?at90usb646 \ mmcu?avr5=mmcu?at90usb647 \ mmcu?avr5=mmcu?at94k \