From a0ce0e6e57acacb2fb3ccbc1179dd5247401ea40 Mon Sep 17 00:00:00 2001
From: Anatoly Sokolov <aesok@post.ru>
Date: Fri, 17 Jul 2009 22:49:03 +0400
Subject: [PATCH] avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
 atmega32u2 devices.

	* config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
	atmega32u2 devices.
	* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).

From-SVN: r149755
---
 gcc/ChangeLog                | 6 ++++++
 gcc/config/avr/avr-devices.c | 3 +++
 gcc/config/avr/t-avr         | 3 +++
 3 files changed, 12 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 046c1efe6795..264f65f3294b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-07-17  Anatoly Sokolov  <aesok@post.ru>
+
+	* config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
+	atmega32u2 devices.
+	* config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
+
 2009-07-17  Richard Guenther  <rguenther@suse.de>
 
 	PR c/40401
diff --git a/gcc/config/avr/avr-devices.c b/gcc/config/avr/avr-devices.c
index f422b4e78769..ad58772b2a1d 100755
--- a/gcc/config/avr/avr-devices.c
+++ b/gcc/config/avr/avr-devices.c
@@ -93,6 +93,9 @@ const struct mcu_type_s avr_mcu_types[] = {
   { "avr35",                ARCH_AVR35, NULL,                       0, 0x0100, "usb162" },
   { "at90usb82",            ARCH_AVR35, "__AVR_AT90USB82__",        0, 0x0100, "usb82" },
   { "at90usb162",           ARCH_AVR35, "__AVR_AT90USB162__",       0, 0x0100, "usb162" },
+  { "atmega8u2",            ARCH_AVR35, "__AVR_ATmega8U2__",        0, 0x0100, "m8u2" },
+  { "atmega16u2",           ARCH_AVR35, "__AVR_ATmega16U2__",       0, 0x0100, "m16u2" },
+  { "atmega32u2",           ARCH_AVR35, "__AVR_ATmega32U2__",       0, 0x0100, "m32u2" },
   { "attiny167",            ARCH_AVR35, "__AVR_ATtiny167__",        0, 0x0100, "tn167" },
   { "attiny327",            ARCH_AVR35, "__AVR_ATtiny327__",        0, 0x0100, "tn327" },
     /* Enhanced, <= 8K.  */
diff --git a/gcc/config/avr/t-avr b/gcc/config/avr/t-avr
index c27118e22d46..58656179b8a2 100644
--- a/gcc/config/avr/t-avr
+++ b/gcc/config/avr/t-avr
@@ -94,6 +94,9 @@ MULTILIB_MATCHES = \
 	mmcu?avr31=mmcu?at43usb320 \
 	mmcu?avr35=mmcu?at90usb82 \
 	mmcu?avr35=mmcu?at90usb162 \
+	mmcu?avr35=mmcu?atmega8u2 \
+	mmcu?avr35=mmcu?atmega16u2 \
+	mmcu?avr35=mmcu?atmega32u2 \
 	mmcu?avr35=mmcu?attiny167 \
 	mmcu?avr35=mmcu?attiny327 \
 	mmcu?avr4=mmcu?atmega48 \
-- 
GitLab