public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, AVR] Add support for new AVR device ATmega32U4
@ 2008-06-16 22:40 Weddington, Eric
  2008-06-17  9:39 ` Gerald Pfeifer
  2008-06-17 17:11 ` [PATCH, AVR] Add support for new AVR device ATmega32U4 Anatoly Sokolov
  0 siblings, 2 replies; 8+ messages in thread
From: Weddington, Eric @ 2008-06-16 22:40 UTC (permalink / raw)
  To: gcc-patches, Anatoly Sokolov; +Cc: Andy H

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

This patch adds support for the new AVR device ATmega32U4.

Eric Weddington

2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>

	* gcc/config/avr/avr.c (avr_mcu_t): Add atmega32u4.
	* gcc/config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS):
Likewise. 
	* gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 

[-- Attachment #2: atmega32u4.patch --]
[-- Type: application/octet-stream, Size: 1696 bytes --]

diff -rup gcc/config/avr/avr.c gcc/config/avr/avr.c
--- gcc/config/avr/avr.c	2008-06-12 14:28:47.908832000 -0600
+++ gcc/config/avr/avr.c	2008-06-12 14:33:46.570975800 -0600
@@ -254,6 +254,7 @@ static const struct mcu_type_s avr_mcu_t
   { "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 -rup gcc/config/avr/avr.h gcc/config/avr/avr.h
--- gcc/config/avr/avr.h	2008-06-12 14:28:47.908832000 -0600
+++ gcc/config/avr/avr.h	2008-06-12 14:33:46.570975800 -0600
@@ -867,6 +867,7 @@ mmcu=*:-mmcu=%*}"
   mmcu=at90pwm*|\
   mmcu=atmega32c1|\
   mmcu=atmega32m1|\
+  mmcu=atmega32u4|\
   mmcu=at90usb*: -Tdata 0x800100}\
 %{mmcu=atmega640|\
   mmcu=atmega1280|\
@@ -978,6 +979,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 -rup gcc/config/avr/t-avr gcc/config/avr/t-avr
--- gcc/config/avr/t-avr	2008-06-12 14:28:47.908832000 -0600
+++ gcc/config/avr/t-avr	2008-06-12 14:33:46.586601000 -0600
@@ -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 \

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH, wwwdocs] Add AVR device changes
@ 2008-06-19 17:45 Anatoly Sokolov
  2008-06-19 18:46 ` Weddington, Eric
  0 siblings, 1 reply; 8+ messages in thread
From: Anatoly Sokolov @ 2008-06-19 17:45 UTC (permalink / raw)
  To: eweddington, gerald; +Cc: gcc-patches, hutchinsonandy, aesok

Hi.

Eric Weddington wrote:
>> 
>> I suggest to also add a note to gcc-4.4/changes.html.  This is
>> clearly a minor change, but (hopefully) relevant to users.
>> 
>
>Patch attached.
>

Committed as:

Index: htdocs/gcc-4.4/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/changes.html,v
retrieving revision 1.14
diff -u -r1.14 changes.html
--- htdocs/gcc-4.4/changes.html 18 Jun 2008 19:38:28 -0000      1.14
+++ htdocs/gcc-4.4/changes.html	19 Jun 2008 17:28:50 -0000
@@ -85,6 +85,20 @@
 
 <h2>New Targets and Target Specific Improvements</h2>
 
+<h3>AVR</h3>
+  <ul>
+    <li>Added support for these new AVR devices:
+      <ul>
+        <li>ATtiny13A</li>
+        <li>ATtiny167</li>
+        <li>ATmega32C1</li>
+        <li>ATmega32M1</li>
+        <li>ATmega32U4</li>
+      </ul>
+    </li>
+    <li>Removed support for the AVR device ATmega32HVB.</li>
+  </ul>
+
 <h3>IA-32/x86-64</h3>
   <ul>
     <li>Support for Intel AES built-in functions and code generation are


Anatoly.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-19 18:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-16 22:40 [PATCH, AVR] Add support for new AVR device ATmega32U4 Weddington, Eric
2008-06-17  9:39 ` Gerald Pfeifer
2008-06-17 11:31   ` hutchinsonandy
2008-06-17 11:54     ` Weddington, Eric
2008-06-17 22:02   ` [PATCH, wwwdocs] Add AVR device changes Weddington, Eric
2008-06-17 17:11 ` [PATCH, AVR] Add support for new AVR device ATmega32U4 Anatoly Sokolov
2008-06-19 17:45 [PATCH, wwwdocs] Add AVR device changes Anatoly Sokolov
2008-06-19 18:46 ` Weddington, Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).