]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
darwin - backport r26355, remove unused target hook.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 26 Nov 2018 19:46:24 +0000 (19:46 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 26 Nov 2018 19:46:24 +0000 (19:46 +0000)
2018-11-26  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-15  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c
(darwin_function_switched_text_sections): Delete.
* gcc/config/darwin.h
(TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): Likewise.

From-SVN: r266477

gcc/ChangeLog
gcc/config/darwin.c
gcc/config/darwin.h

index f8b07ac3a123b1226e82bae74830cb807a762c52..8e19a157538e637276ba65284140a56eeecba3e9 100644 (file)
@@ -1,3 +1,13 @@
+2018-11-26  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline
+       2018-08-15  Iain Sandoe  <iain@sandoe.co.uk>
+       * 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  <krebbel@linux.ibm.com>
 
        Backport from mainline
index 8e6e25ab7f555d73d433607bf1ba67d155c76d0b..bafb1c541cdfb557599c70a94121e9283e11e8d0 100644 (file)
@@ -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"
index a8397cd2331875edf41dd45fd46cdf04bf73723d..fb8634f81c10417afec4cb22737ba2a111ebb64e 100644 (file)
@@ -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