From f097ff235052e19a371d24da32ba2741681d443b Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 9 Nov 2017 18:03:52 +0000 Subject: [PATCH] Remove obsolete ECOFF support. * collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support. (scan_prog_file): Likewise. From-SVN: r254603 --- gcc/ChangeLog | 5 +++++ gcc/collect2.c | 19 ------------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a58579d64e..b5106cfc93e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-09 Jim Wilson + + * collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support. + (scan_prog_file): Likewise. + 2017-11-09 Jan Hubicka * bb-reorder.c (max_entry_frequency): Remove. 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.30.2