Remove obsolete ECOFF support.
authorJim Wilson <jimw@sifive.com>
Thu, 9 Nov 2017 18:03:52 +0000 (18:03 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 9 Nov 2017 18:03:52 +0000 (10:03 -0800)
* collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
(scan_prog_file): Likewise.

From-SVN: r254603

gcc/ChangeLog
gcc/collect2.c

index 6a58579d64ec2342350a1c753db87af97e7c8cd2..b5106cfc93ec739a05e7e80bca2a4940d896e2ee 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-09  Jim Wilson  <jimw@sifive.com>
+
+       * collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
+       (scan_prog_file): Likewise.
+
 2017-11-09  Jan Hubicka  <hubicka@ucw.cz>
 
        * bb-reorder.c (max_entry_frequency): Remove.
index 7fccf12cf093d707dc26d4b2d7cc61159a59a0d2..d25b75697c0c0ec96f14e087d84ceb1afc672b0f 100644 (file)
@@ -2641,17 +2641,6 @@ scan_libraries (const char *prog_name)
 
 #ifdef OBJECT_FORMAT_COFF
 
-#if defined (EXTENDED_COFF)
-
-#   define GCC_SYMBOLS(X)      (SYMHEADER (X).isymMax + SYMHEADER (X).iextMax)
-#   define GCC_SYMENT          SYMR
-#   define GCC_OK_SYMBOL(X)    ((X).st == stProc || (X).st == stGlobal)
-#   define GCC_SYMINC(X)       (1)
-#   define GCC_SYMZERO(X)      (SYMHEADER (X).isymMax)
-#   define GCC_CHECK_HDR(X)    (PSYMTAB (X) != 0)
-
-#else
-
 #   define GCC_SYMBOLS(X)      (HEADER (ldptr).f_nsyms)
 #   define GCC_SYMENT          SYMENT
 #   if defined (C_WEAKEXT)
@@ -2690,8 +2679,6 @@ scan_libraries (const char *prog_name)
       && !(HEADER (X).f_flags & F_LOADONLY))
 #endif
 
-#endif
-
 #ifdef COLLECT_EXPORT_LIST
 /* Array of standard AIX libraries which should not
    be scanned for ctors/dtors.  */
@@ -2920,16 +2907,10 @@ scan_prog_file (const char *prog_name, scanpass which_pass,
                        }
 
                      if (debug)
-#if !defined(EXTENDED_COFF)
                        fprintf (stderr, "\tsec=%d class=%d type=%s%o %s\n",
                                 symbol.n_scnum, symbol.n_sclass,
                                 (symbol.n_type ? "0" : ""), symbol.n_type,
                                 name);
-#else
-                       fprintf (stderr,
-                                "\tiss = %5d, value = %5ld, index = %5d, name = %s\n",
-                                symbol.iss, (long) symbol.value, symbol.index, name);
-#endif
                    }
                }
            }