* Avoid designated initializers.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 27 Jan 2003 08:44:21 +0000 (08:44 +0000)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 27 Jan 2003 08:44:21 +0000 (08:44 +0000)
gas/ChangeLog
gas/config/tc-s390.c

index a2f9e07..10870be 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-27  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+
+       * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
+
 2003-01-25  Jakub Jelinek  <jakub@redhat.com>
 
        * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
index af6c70b..0c54330 100644 (file)
@@ -1033,19 +1033,19 @@ s390_elf_cons (nbytes)
            {
              static bfd_reloc_code_real_type tab2[] =
                {
-                 [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED ,
-                 [ELF_SUFFIX_GOT] BFD_RELOC_390_GOT16,
-                 [ELF_SUFFIX_PLT] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_GOTOFF] BFD_RELOC_16_GOTOFF,
-                 [ELF_SUFFIX_GOTPLT] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF16,
-                 [ELF_SUFFIX_TLS_GD] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_TLS_IE] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_TLS_LDM] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_TLS_LDO] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_TLS_LE] BFD_RELOC_UNUSED,
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_NONE  */
+                 BFD_RELOC_390_GOT16,          /* ELF_SUFFIX_GOT  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_PLT  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_GOTENT  */
+                 BFD_RELOC_16_GOTOFF,          /* ELF_SUFFIX_GOTOFF  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_GOTPLT  */
+                 BFD_RELOC_390_PLTOFF16,       /* ELF_SUFFIX_PLTOFF  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_TLS_GD  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_TLS_GOTIE  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_TLS_IE  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_TLS_LDM  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_TLS_LDO  */
+                 BFD_RELOC_UNUSED              /* ELF_SUFFIX_TLS_LE  */
                };
              reloc = tab2[suffix];
            }
@@ -1053,19 +1053,19 @@ s390_elf_cons (nbytes)
            {
              static bfd_reloc_code_real_type tab4[] =
                {
-                 [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED ,
-                 [ELF_SUFFIX_GOT] BFD_RELOC_32_GOT_PCREL,
-                 [ELF_SUFFIX_PLT] BFD_RELOC_390_PLT32,
-                 [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_GOTOFF] BFD_RELOC_32_GOTOFF,
-                 [ELF_SUFFIX_GOTPLT] BFD_RELOC_390_GOTPLT32,
-                 [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF32,
-                 [ELF_SUFFIX_TLS_GD] BFD_RELOC_390_TLS_GD32,
-                 [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_390_TLS_GOTIE32,
-                 [ELF_SUFFIX_TLS_IE] BFD_RELOC_390_TLS_IE32,
-                 [ELF_SUFFIX_TLS_LDM] BFD_RELOC_390_TLS_LDM32,
-                 [ELF_SUFFIX_TLS_LDO] BFD_RELOC_390_TLS_LDO32,
-                 [ELF_SUFFIX_TLS_LE] BFD_RELOC_390_TLS_LE32,
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_NONE  */
+                 BFD_RELOC_32_GOT_PCREL,       /* ELF_SUFFIX_GOT  */
+                 BFD_RELOC_390_PLT32,          /* ELF_SUFFIX_PLT  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_GOTENT  */
+                 BFD_RELOC_32_GOTOFF,          /* ELF_SUFFIX_GOTOFF  */
+                 BFD_RELOC_390_GOTPLT32,       /* ELF_SUFFIX_GOTPLT  */
+                 BFD_RELOC_390_PLTOFF32,       /* ELF_SUFFIX_PLTOFF  */
+                 BFD_RELOC_390_TLS_GD32,       /* ELF_SUFFIX_TLS_GD  */
+                 BFD_RELOC_390_TLS_GOTIE32,    /* ELF_SUFFIX_TLS_GOTIE  */
+                 BFD_RELOC_390_TLS_IE32,       /* ELF_SUFFIX_TLS_IE  */
+                 BFD_RELOC_390_TLS_LDM32,      /* ELF_SUFFIX_TLS_LDM  */
+                 BFD_RELOC_390_TLS_LDO32,      /* ELF_SUFFIX_TLS_LDO  */
+                 BFD_RELOC_390_TLS_LE32        /* ELF_SUFFIX_TLS_LE  */
                };
              reloc = tab4[suffix];
            }
@@ -1073,19 +1073,19 @@ s390_elf_cons (nbytes)
            {
              static bfd_reloc_code_real_type tab8[] =
                {
-                 [ELF_SUFFIX_NONE] BFD_RELOC_UNUSED ,
-                 [ELF_SUFFIX_GOT] BFD_RELOC_390_GOT64,
-                 [ELF_SUFFIX_PLT] BFD_RELOC_390_PLT64,
-                 [ELF_SUFFIX_GOTENT] BFD_RELOC_UNUSED,
-                 [ELF_SUFFIX_GOTOFF] BFD_RELOC_390_GOTOFF64,
-                 [ELF_SUFFIX_GOTPLT] BFD_RELOC_390_GOTPLT64,
-                 [ELF_SUFFIX_PLTOFF] BFD_RELOC_390_PLTOFF64,
-                 [ELF_SUFFIX_TLS_GD] BFD_RELOC_390_TLS_GD64,
-                 [ELF_SUFFIX_TLS_GOTIE] BFD_RELOC_390_TLS_GOTIE64,
-                 [ELF_SUFFIX_TLS_IE] BFD_RELOC_390_TLS_IE64,
-                 [ELF_SUFFIX_TLS_LDM] BFD_RELOC_390_TLS_LDM64,
-                 [ELF_SUFFIX_TLS_LDO] BFD_RELOC_390_TLS_LDO64,
-                 [ELF_SUFFIX_TLS_LE] BFD_RELOC_390_TLS_LE64,
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_NONE  */
+                 BFD_RELOC_390_GOT64,          /* ELF_SUFFIX_GOT  */
+                 BFD_RELOC_390_PLT64,          /* ELF_SUFFIX_PLT  */
+                 BFD_RELOC_UNUSED,             /* ELF_SUFFIX_GOTENT  */
+                 BFD_RELOC_390_GOTOFF64,       /* ELF_SUFFIX_GOTOFF  */
+                 BFD_RELOC_390_GOTPLT64,       /* ELF_SUFFIX_GOTPLT  */
+                 BFD_RELOC_390_PLTOFF64,       /* ELF_SUFFIX_PLTOFF  */
+                 BFD_RELOC_390_TLS_GD64,       /* ELF_SUFFIX_TLS_GD  */
+                 BFD_RELOC_390_TLS_GOTIE64,    /* ELF_SUFFIX_TLS_GOTIE  */
+                 BFD_RELOC_390_TLS_IE64,       /* ELF_SUFFIX_TLS_IE  */
+                 BFD_RELOC_390_TLS_LDM64,      /* ELF_SUFFIX_TLS_LDM  */
+                 BFD_RELOC_390_TLS_LDO64,      /* ELF_SUFFIX_TLS_LDO  */
+                 BFD_RELOC_390_TLS_LE64        /* ELF_SUFFIX_TLS_LE  */
                };
              reloc = tab8[suffix];
            }