From: Iain Sandoe Date: Mon, 26 Nov 2018 19:46:24 +0000 (+0000) Subject: darwin - backport r26355, remove unused target hook. X-Git-Tag: releases/gcc-7.4.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f961737767bb0d8ed7bad1f6a94de02d525fea1;p=thirdparty%2Fgcc.git darwin - backport r26355, remove unused target hook. 2018-11-26 Iain Sandoe Backport from mainline 2018-08-15 Iain Sandoe * config/darwin.c (darwin_function_switched_text_sections): Delete. * gcc/config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): Likewise. From-SVN: r266477 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f8b07ac3a123..8e19a157538e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2018-11-26 Iain Sandoe + + Backport from mainline + 2018-08-15 Iain Sandoe + + * config/darwin.c + (darwin_function_switched_text_sections): Delete. + * gcc/config/darwin.h + (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): Likewise. + 2018-11-26 Andreas Krebbel Backport from mainline diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 8e6e25ab7f55..bafb1c541cdf 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -3674,21 +3674,4 @@ default_function_sections: : text_section; } -/* When a function is partitioned between sections, we need to insert a label - at the start of each new chunk - so that it may become a valid 'atom' for - eh and debug purposes. Without this the linker will emit warnings if one - tries to add line location information (since the switched fragment will - be anonymous). */ - -void -darwin_function_switched_text_sections (FILE *fp, tree decl, bool new_is_cold) -{ - char buf[128]; - snprintf (buf, 128, "%s%s",new_is_cold?"__cold_sect_of_":"__hot_sect_of_", - IDENTIFIER_POINTER (DECL_NAME (decl))); - /* Make sure we pick up all the relevant quotes etc. */ - assemble_name_raw (fp, (const char *) buf); - fputs (":\n", fp); -} - #include "gt-darwin.h" diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index a8397cd23318..fb8634f81c10 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -705,10 +705,6 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS]; #undef TARGET_ASM_FUNCTION_SECTION #define TARGET_ASM_FUNCTION_SECTION darwin_function_section -#undef TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS -#define TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS \ - darwin_function_switched_text_sections - #undef TARGET_ASM_SELECT_RTX_SECTION #define TARGET_ASM_SELECT_RTX_SECTION machopic_select_rtx_section #undef TARGET_ASM_UNIQUE_SECTION