avr.h (TARGET_CPU_CPP_BUILTINS): Define __AVR_HAVE_EIJMP_EICALL__ macro if...
authorAnatoly Sokolov <aesok@post.ru>
Tue, 8 Apr 2008 07:00:50 +0000 (11:00 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Tue, 8 Apr 2008 07:00:50 +0000 (11:00 +0400)
* config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
__AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
instructions.
* config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
atmega103 device.

From-SVN: r134069

gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.h

index 7867fa1a382665836266b41361784109d7a794df..25652c07a7ab07c708145d50fadc13d80dd2093a 100644 (file)
@@ -1,3 +1,11 @@
+2008-04-08  Anatoly Sokolov <aesok@post.ru>
+
+       * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
+       __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
+       instructions.
+       * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
+       atmega103 device.
+
 2008-04-07  Jan Hubicka  <jh@suse.cz>
 
        * function.h (rtl): Rename to x_rtl.
index e8e90b773338b9bc8cd50bcc6a32cbfd0a684eb0..3101ae68d93a418c0725f52fda7ea3d09827151a 100644 (file)
@@ -200,7 +200,7 @@ static const struct mcu_type_s avr_mcu_types[] = {
   { "at76c711",     ARCH_AVR3, "__AVR_AT76C711__" },
     /* Classic, == 128K.  */
   { "avr31",        ARCH_AVR31, NULL },
-  { "atmega103",    ARCH_AVR3, "__AVR_ATmega103__" },
+  { "atmega103",    ARCH_AVR31, "__AVR_ATmega103__" },
     /* Classic + MOVW + JMP/CALL.  */
   { "avr35",        ARCH_AVR35, NULL },
   { "at90usb82",    ARCH_AVR35, "__AVR_AT90USB82__" },
index 373e9d6991eaa2dd3404fefd19f477a4f7bc766a..7dbc76ce9de2ac6ef60d729853d0e7251c5311f1 100644 (file)
@@ -82,7 +82,7 @@ extern const struct base_arch_s *avr_current_arch;
        builtin_define ("__AVR_HAVE_JMP_CALL__"); \
       if (avr_current_arch->have_eijmp_eicall) \
         {                                      \
-         builtin_define ("__AVR_HAVE_JMP_CALL__");     \
+         builtin_define ("__AVR_HAVE_EIJMP_EICALL__"); \
          builtin_define ("__AVR_3_BYTE_PC__"); \
        }                                       \
       else                                     \