]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
avr-arch.h (struct base_arch_s): Use typedef avr_arch_t instead.
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 14 Jan 2013 18:09:34 +0000 (18:09 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Mon, 14 Jan 2013 18:09:34 +0000 (18:09 +0000)
* config/avr/avr-arch.h
(struct base_arch_s): Use typedef avr_arch_t instead.
(struct arch_info_s): Use typedef avr_arch_info_t instead.
(struct mcu_type_s): Use typedef avr_mcu_t instead.
* config/avr/avr.c: Same.
* config/avr/avr-devices.c: Same.
* config/avr/driver-avr.c: Same.
* config/avr/gen-avr-mmcu-texi.c: Same.
* config/avr/avr-mcus.def: Adjust comment.

From-SVN: r195160

gcc/ChangeLog
gcc/config/avr/avr-arch.h
gcc/config/avr/avr-devices.c
gcc/config/avr/avr-mcus.def
gcc/config/avr/avr.c
gcc/config/avr/driver-avr.c
gcc/config/avr/gen-avr-mmcu-texi.c

index d45927c5ce593ac14ac15381928e07e3ccf5b6c4..eeb6c0bcdb6d39bccffc66c7ec405bdf7c2b59cf 100644 (file)
@@ -1,3 +1,15 @@
+2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/avr-arch.h
+       (struct base_arch_s): Use typedef avr_arch_t instead.
+       (struct arch_info_s): Use typedef avr_arch_info_t instead.
+       (struct mcu_type_s): Use typedef avr_mcu_t instead.
+       * config/avr/avr.c: Same.
+       * config/avr/avr-devices.c: Same.
+       * config/avr/driver-avr.c: Same.
+       * config/avr/gen-avr-mmcu-texi.c: Same.
+       * config/avr/avr-mcus.def: Adjust comment.
+
 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
 
        * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New. 
index a2673370a857720040da010c1ed37accf708827a..27cea736e06a0dc539851635c16e80ad51bae142 100644 (file)
@@ -45,7 +45,7 @@ enum avr_arch
 
 /* Architecture-specific properties.  */
 
-struct base_arch_s
+typedef struct
 {
   /* Assembler only.  */
   int asm_only;
@@ -87,12 +87,12 @@ struct base_arch_s
 
   /* Architecture name.  */
   const char *const arch_name;
-};
+} avr_arch_t;
 
 
 /* Device-specific properties.  */
 
-struct mcu_type_s
+typedef struct
 {
   /* Device name.  */
   const char *const name;
@@ -134,22 +134,23 @@ struct mcu_type_s
 
   /* Name of device library.  */
   const char *const library_name;
-};
+} avr_mcu_t;
 
 /* Map architecture to its texinfo string.  */
 
-struct arch_info_s
+typedef struct
 {
   /* Architecture ID.  */
   enum avr_arch arch;
 
   /* textinfo source to describe the archtiecture.  */
   const char *texinfo;
-};
+} avr_arch_info_t;
 
 /* Preprocessor macros to define depending on MCU type.  */
 
-extern const struct base_arch_s *avr_current_arch;
-extern const struct mcu_type_s *avr_current_device;
-extern const struct mcu_type_s avr_mcu_types[];
-extern const struct base_arch_s avr_arch_types[];
+extern const avr_arch_t avr_arch_types[];
+extern const avr_arch_t *avr_current_arch;
+
+extern const avr_mcu_t avr_mcu_types[];
+extern const avr_mcu_t *avr_current_device;
index 6fa700bc260ad6af4ea9cb9bdf239d06413347b4..48a952318ad77b70ac8232b6687816c4b61d0c44 100644 (file)
@@ -27,7 +27,7 @@
 /* List of all known AVR MCU architectures.
    Order as of enum avr_arch from avr.h.  */
 
-const struct base_arch_s
+const avr_arch_t
 avr_arch_types[] =
 {
   /* unknown device specified */
@@ -56,7 +56,7 @@ avr_arch_types[] =
   { 0, 1, 1, 1, 1, 1, 1, 1, 1, 0x2000,  0, "107", "avrxmega7" }
 };
 
-const struct arch_info_s
+const avr_arch_info_t
 avr_texinfo[] =
 {
   { ARCH_AVR1,
@@ -101,9 +101,11 @@ avr_texinfo[] =
     "and more than 64@tie{}KiB of RAM." }
 };
 
-const struct mcu_type_s avr_mcu_types[] = {
-#define AVR_MCU(NAME,ARCH,MACRO,SHORT_SP,ERRATA_SKIP,DATA_SEC,N_FLASH,LIB_NAME)\
-  { NAME, ARCH, MACRO, SHORT_SP, ERRATA_SKIP, DATA_SEC, N_FLASH, LIB_NAME },
+const avr_mcu_t
+avr_mcu_types[] =
+{
+#define AVR_MCU(NAME, ARCH, MACRO, SP8, ERR_SKIP, DATA_SEC, N_FLASH, LIBNAME)\
+  { NAME, ARCH, MACRO, SP8, ERR_SKIP, DATA_SEC, N_FLASH, LIBNAME },
 #include "avr-mcus.def"
 #undef AVR_MCU
     /* End of list.  */
index f17058eaf52540127a6ed5db49606e96748f5254..b4100840431a12a4fa820b196c701c0ddf65533a 100644 (file)
@@ -39,7 +39,7 @@
    AVR_MCU (NAME, ARCH, MACRO, SHORT_SP, ERRATA_SKIP, DATA_SEC, N_FLASH,
             LIBRARY_NAME)
 
-   where the arguments are the fields of struct mcu_type_s:
+   where the arguments are the fields of avr_mcu_t:
    
        NAME         Accept -mmcu=<NAME>
 
index 93f174b90f3d88f1c8955f6f83a6b49f48c4c433..440ca69079519b32d59a4292449bc8a7619846b7 100644 (file)
@@ -184,10 +184,10 @@ static GTY(()) rtx xstring_empty;
 static GTY(()) rtx xstring_e;
 
 /* Current architecture.  */
-const struct base_arch_s *avr_current_arch;
+const avr_arch_t *avr_current_arch;
 
 /* Current device.  */
-const struct mcu_type_s *avr_current_device;
+const avr_mcu_t *avr_current_device;
 
 /* Section to put switch tables in.  */
 static GTY(()) section *progmem_swtable_section;
index b319113220ef585ad66f8b4151cc9adf40711dfd..47a04e507c5890854a79f814ce77863e25408a62 100644 (file)
@@ -24,10 +24,10 @@ along with GCC; see the file COPYING3.  If not see
 #include "tm.h"
 
 /* Current architecture.  */
-const struct base_arch_s *avr_current_arch = NULL;
+const avr_arch_t *avr_current_arch = NULL;
 
 /* Current device.  */
-const struct mcu_type_s *avr_current_device = NULL;
+const avr_mcu_t *avr_current_device = NULL;
 
 /* Initialize avr_current_arch and avr_current_device variables.  */
 
index c0307bf9e3d3e5b6c0da2ed78284b37633108023..55335f98dd953a3554e17dc9b8cb35b88eb10258 100644 (file)
@@ -85,7 +85,7 @@ int main (void)
 {
   enum avr_arch arch = ARCH_UNKNOWN;
   size_t i, n_mcus = 0;
-  const struct mcu_type_s *mcu;
+  const avr_mcu_t *mcu;
 
   printf ("@c Copyright (C) 2012-2013 Free Software Foundation, Inc.\n");
   printf ("@c This is part of the GCC manual.\n");