diff mbox

remove unused CTOR_LISTS_DEFINED_EXTERNALLY macro

Message ID 1467029985-4044-1-git-send-email-tbsaunde+gcc@tbsaunde.org
State New
Headers show

Commit Message

tbsaunde+gcc@tbsaunde.org June 27, 2016, 12:19 p.m. UTC
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

Hi,

The last target to use this was i386-interix, so since that is gone we
don't need this anymore.

bootstrapped and regtested on x86-linux-gnu, ok?

Trev

libgcc/ChangeLog:

2016-06-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* libgcc2.c (SYMBOL__MAIN): Remove checks for
	CTOR_LISTS_DEFINED_EXTERNALLY.
---
 libgcc/libgcc2.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Jeff Law July 6, 2016, 9:45 p.m. UTC | #1
On 06/27/2016 06:19 AM, tbsaunde+gcc@tbsaunde.org wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> Hi,
>
> The last target to use this was i386-interix, so since that is gone we
> don't need this anymore.
>
> bootstrapped and regtested on x86-linux-gnu, ok?
>
> Trev
>
> libgcc/ChangeLog:
>
> 2016-06-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
>
> 	* libgcc2.c (SYMBOL__MAIN): Remove checks for
> 	CTOR_LISTS_DEFINED_EXTERNALLY.
OK.
jeff
diff mbox

Patch

diff --git a/libgcc/libgcc2.c b/libgcc/libgcc2.c
index 6bc9a2f..0a716bf 100644
--- a/libgcc/libgcc2.c
+++ b/libgcc/libgcc2.c
@@ -2309,8 +2309,7 @@  SYMBOL__MAIN (void)
    must be in the bss/common section.
 
    Long term no port should use those extensions.  But many still do.  */
-#if !defined(__LIBGCC_INIT_SECTION_ASM_OP__) \
-    && !defined(CTOR_LISTS_DEFINED_EXTERNALLY)
+#if !defined(__LIBGCC_INIT_SECTION_ASM_OP__)
 #if defined (TARGET_ASM_CONSTRUCTOR) || defined (USE_COLLECT2)
 func_ptr __CTOR_LIST__[2] = {0, 0};
 func_ptr __DTOR_LIST__[2] = {0, 0};
@@ -2318,6 +2317,6 @@  func_ptr __DTOR_LIST__[2] = {0, 0};
 func_ptr __CTOR_LIST__[2];
 func_ptr __DTOR_LIST__[2];
 #endif
-#endif /* no __LIBGCC_INIT_SECTION_ASM_OP__ and not CTOR_LISTS_DEFINED_EXTERNALLY */
+#endif /* no __LIBGCC_INIT_SECTION_ASM_OP__ */
 #endif /* L_ctors */
 #endif /* LIBGCC2_UNITS_PER_WORD <= MIN_UNITS_PER_WORD */