This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[AVR] Add suppotr for AT90PWM1 AVR devices.


Hello.

The patch add to support AT90PWM1 device in AVR port GCC.

2006-09-02  Anatoly Sokolov <aesok@post.ru>

ChangeLog:

 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.

Index: gcc/config/avr/avr.c
===================================================================
--- gcc/config/avr/avr.c (revision 116638)
+++ gcc/config/avr/avr.c (working copy)
@@ -205,6 +205,7 @@
   { "atmega88",   4, "__AVR_ATmega88__" },
   { "atmega8515", 4, "__AVR_ATmega8515__" },
   { "atmega8535", 4, "__AVR_ATmega8535__" },
+  { "at90pwm1",  4, "__AVR_AT90PWM1__" },
   { "at90pwm2",  4, "__AVR_AT90PWM2__" },
   { "at90pwm3",  4, "__AVR_AT90PWM3__" },
     /* Enhanced, > 8K.  */
@@ -4948,7 +4949,7 @@
    case, *TOTAL contains the cost result.  */
 
 static bool
-avr_rtx_costs (rtx x, int code, int outer_code, int *total)
+avr_rtx_costs (rtx x, int code, int outer_code ATTRIBUTE_UNUSED, int *total)
 {
   enum machine_mode mode = GET_MODE (x);
   HOST_WIDE_INT val;
Index: gcc/config/avr/t-avr
===================================================================
--- gcc/config/avr/t-avr (revision 116638)
+++ gcc/config/avr/t-avr (working copy)
@@ -64,6 +64,7 @@
  mmcu?avr4=mmcu?atmega8515 \
  mmcu?avr4=mmcu?atmega8535 \
  mmcu?avr4=mmcu?atmega88 \
+ mmcu?avr4=mmcu?at90pwm1 \
  mmcu?avr4=mmcu?at90pwm2 \
  mmcu?avr4=mmcu?at90pwm3 \
  mmcu?avr5=mmcu?atmega16 \
Index: gcc/config/avr/avr.h
===================================================================
--- gcc/config/avr/avr.h (revision 116638)
+++ gcc/config/avr/avr.h (working copy)
@@ -753,6 +753,7 @@
   mmcu=at76*:-m avr3}\
 %{mmcu=atmega8*|\
   mmcu=atmega48|\
+  mmcu=at90pwm1|\
   mmcu=at90pwm2|\
   mmcu=at90pwm3:-m avr4}\
 %{mmcu=atmega16*|\
@@ -843,6 +844,7 @@
 %{mmcu=atmega88:crtm88.o%s} \
 %{mmcu=atmega8515:crtm8515.o%s} \
 %{mmcu=atmega8535:crtm8535.o%s} \
+%{mmcu=at90pwm1:crt90pwm1.o%s} \
 %{mmcu=at90pwm2:crt90pwm2.o%s} \
 %{mmcu=at90pwm3:crt90pwm3.o%s} \
 %{mmcu=atmega16:crtm16.o%s} \

Anatoly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]