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; 6+ 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] 6+ messages in thread

* Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
  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 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
  1 sibling, 2 replies; 6+ messages in thread
From: Gerald Pfeifer @ 2008-06-17  9:39 UTC (permalink / raw)
  To: Weddington, Eric; +Cc: gcc-patches, Anatoly Sokolov, Andy H

[-- Attachment #1: Type: TEXT/PLAIN, Size: 236 bytes --]

On Mon, 16 Jun 2008, Weddington, Eric wrote:
> This patch adds support for the new AVR device ATmega32U4.

I suggest to also add a note to gcc-4.4/changes.html.  This is
clearly a minor change, but (hopefully) relevant to users.

Gerald

[-- 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] 6+ messages in thread

* Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
  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
  1 sibling, 1 reply; 6+ messages in thread
From: hutchinsonandy @ 2008-06-17 11:31 UTC (permalink / raw)
  To: gerald, eweddington; +Cc: gcc-patches, aesok

Good point Gerald.

The change in question is possibly the least significant.  But with all 
the other changes for 4.4, there is plenty of scope for this.


Come on  Eric, it is about time AVR had entry in 4.4 changes. You don't 
have to learn RTL either :-)

Andy




----------------------------------------------
Sent from my Dingleberry wired device.


-----Original Message-----
From: Gerald Pfeifer <gerald@pfeifer.com>
To: Weddington, Eric <eweddington@cso.atmel.com>
Cc: gcc-patches@gcc.gnu.org; Anatoly Sokolov <aesok@post.ru>; Andy H 
<hutchinsonandy@aim.com>
Sent: Tue, 17 Jun 2008 5:10 am
Subject: Re: [PATCH, AVR] Add support for new AVR device ATmega32U4



On Mon, 16 Jun 2008, Weddington, Eric wrote:
> This patch adds support for the new AVR device ATmega32U4.

I suggest to also add a note to gcc-4.4/changes.html.  This is
clearly a minor change, but (hopefully) relevant to users.

Gerald

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

* RE: [PATCH, AVR] Add support for new AVR device ATmega32U4
  2008-06-17 11:31   ` hutchinsonandy
@ 2008-06-17 11:54     ` Weddington, Eric
  0 siblings, 0 replies; 6+ messages in thread
From: Weddington, Eric @ 2008-06-17 11:54 UTC (permalink / raw)
  To: hutchinsonandy, gerald; +Cc: gcc-patches, aesok


Will do, but I will wait until all the new device are in. There are more
patches coming...

Eric Weddington 

> -----Original Message-----
> From: hutchinsonandy@aim.com [mailto:hutchinsonandy@aim.com] 
> Sent: Tuesday, June 17, 2008 5:28 AM
> To: gerald@pfeifer.com; Weddington, Eric
> Cc: gcc-patches@gcc.gnu.org; aesok@post.ru
> Subject: Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
> 
> Good point Gerald.
> 
> The change in question is possibly the least significant.  
> But with all 
> the other changes for 4.4, there is plenty of scope for this.
> 
> 
> Come on  Eric, it is about time AVR had entry in 4.4 changes. 
> You don't 
> have to learn RTL either :-)
> 
> Andy
> 
> 
> 
> 
> ----------------------------------------------
> Sent from my Dingleberry wired device.
> 
> 
> -----Original Message-----
> From: Gerald Pfeifer <gerald@pfeifer.com>
> To: Weddington, Eric <eweddington@cso.atmel.com>
> Cc: gcc-patches@gcc.gnu.org; Anatoly Sokolov <aesok@post.ru>; Andy H 
> <hutchinsonandy@aim.com>
> Sent: Tue, 17 Jun 2008 5:10 am
> Subject: Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
> 
> 
> 
> On Mon, 16 Jun 2008, Weddington, Eric wrote:
> > This patch adds support for the new AVR device ATmega32U4.
> 
> I suggest to also add a note to gcc-4.4/changes.html.  This is
> clearly a minor change, but (hopefully) relevant to users.
> 
> Gerald
> 
> 

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

* Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
  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 17:11 ` Anatoly Sokolov
  1 sibling, 0 replies; 6+ messages in thread
From: Anatoly Sokolov @ 2008-06-17 17:11 UTC (permalink / raw)
  To: Weddington, Eric, gcc-patches; +Cc: Andy H

Hi.

>  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. 

Committed.

Anatoly.

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

* [PATCH, wwwdocs] Add AVR device changes
  2008-06-17  9:39 ` Gerald Pfeifer
  2008-06-17 11:31   ` hutchinsonandy
@ 2008-06-17 22:02   ` Weddington, Eric
  1 sibling, 0 replies; 6+ messages in thread
From: Weddington, Eric @ 2008-06-17 22:02 UTC (permalink / raw)
  To: Gerald Pfeifer; +Cc: gcc-patches, Anatoly Sokolov, Andy H

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

 

> -----Original Message-----
> From: Gerald Pfeifer [mailto:gerald@pfeifer.com] 
> Sent: Tuesday, June 17, 2008 3:11 AM
> To: Weddington, Eric
> Cc: gcc-patches@gcc.gnu.org; Anatoly Sokolov; Andy H
> Subject: Re: [PATCH, AVR] Add support for new AVR device ATmega32U4
> 
> On Mon, 16 Jun 2008, Weddington, Eric wrote:
> > This patch adds support for the new AVR device ATmega32U4.
> 
> 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.

Thanks,
Eric Weddington

[-- Attachment #2: avr-4.4-changes.patch --]
[-- Type: application/octet-stream, Size: 833 bytes --]

? htdocs/gcc-4
Index: htdocs/gcc-4.4/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.4/changes.html,v
retrieving revision 1.13
diff -u -p -r1.13 changes.html
--- htdocs/gcc-4.4/changes.html	15 Jun 2008 17:53:26 -0000	1.13
+++ htdocs/gcc-4.4/changes.html	17 Jun 2008 21:39:33 -0000
@@ -85,6 +85,19 @@
 
 <h2>New Targets and Target Specific Improvements</h2>
 
+<h3>AVR</h3>
+  <ul>
+    <li>Added support for these new AVR devices:
+      <ul>
+        <li>ATmega32M1</li>
+        <li>ATmega32C1</li>
+        <li>ATmega32U4</li>
+        <li>ATtiny167</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

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

end of thread, other threads:[~2008-06-17 21:43 UTC | newest]

Thread overview: 6+ 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

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).