While looking at the collect2 COFF support, I noticed that there were two uses
of EXTENDED_COFF which is for the obsolete ECOFF support.  The last define for
EXTENDED_COFF was removed 2012-03-14, so these uses are obsolete and can be
removed.

Tested with Power AIX C/C++ bootstrap and make check, as this is the only
target using the collect2 COFF support.  There were no regressions.

Applied as obvious.

        gcc/
        * collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
        (scan_prog_file): Likewise.
---
 gcc/collect2.c | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/gcc/collect2.c b/gcc/collect2.c
index 7fccf12cf09..d25b75697c0 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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
                    }
                }
            }
-- 
2.14.1

Reply via email to