From 951a5379f296c9b5bf767f1fe0b8360a268b25ce Mon Sep 17 00:00:00 2001 From: "Eric B. Weddington" Date: Mon, 16 Jun 2008 18:44:41 +0000 Subject: [PATCH] avr.c (avr_mcu_t): Add atmega32m1. * gcc/config/avr/avr.c (avr_mcu_t): Add atmega32m1. * gcc/config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. From-SVN: r136846 --- gcc/ChangeLog | 6 ++++++ gcc/config/avr/avr.c | 1 + gcc/config/avr/avr.h | 2 ++ gcc/config/avr/t-avr | 1 + 4 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 39c826eaa80..b5e5a51e19b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-06-16 Eric B. Weddington + + * config/avr/avr.c (avr_mcu_t): Add atmega32m1. + * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. + * config/avr/t-avr (MULTILIB_MATCHES): Likewise. + 2008-06-16 Ralf Wildenhues * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir). diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index e4820e623f0..d185a25a877 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -254,6 +254,7 @@ static const struct mcu_type_s avr_mcu_types[] = { { "at90can64", ARCH_AVR5, "__AVR_AT90CAN64__" }, { "at90pwm216", ARCH_AVR5, "__AVR_AT90PWM216__" }, { "at90pwm316", ARCH_AVR5, "__AVR_AT90PWM316__" }, + { "atmega32m1", ARCH_AVR5, "__AVR_ATmega32M1__" }, { "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 d915aff1040..e7d3b587e63 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -873,6 +873,7 @@ mmcu=*:-mmcu=%*}" mmcu=attiny88|\ mmcu=at90can*|\ mmcu=at90pwm*|\ + mmcu=atmega32m1|\ mmcu=at90usb*: -Tdata 0x800100}\ %{mmcu=atmega640|\ mmcu=atmega1280|\ @@ -982,6 +983,7 @@ mmcu=*:-mmcu=%*}" %{mmcu=at90can64:crtcan64.o%s} \ %{mmcu=at90pwm216:crt90pwm216.o%s} \ %{mmcu=at90pwm316:crt90pwm316.o%s} \ +%{mmcu=atmega32m1:crtm32m1.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 5804400540a..9881bea3b55 100644 --- a/gcc/config/avr/t-avr +++ b/gcc/config/avr/t-avr @@ -114,6 +114,7 @@ MULTILIB_MATCHES = \ mmcu?avr5=mmcu?at90can64 \ mmcu?avr5=mmcu?at90pwm216 \ mmcu?avr5=mmcu?at90pwm316 \ + mmcu?avr5=mmcu?atmega32m1 \ mmcu?avr5=mmcu?at90usb646 \ mmcu?avr5=mmcu?at90usb647 \ mmcu?avr5=mmcu?at94k \ -- 2.30.2