Darwin - remove unnecessary target hook
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 15 Aug 2018 11:16:12 +0000 (11:16 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 15 Aug 2018 11:16:12 +0000 (11:16 +0000)
gcc/

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: r263555

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

index 16d89d4abe15a084f08611c3512bb5a4f68a751d..38716931274d0cf308cecdae7144cf915a3d2dfc 100644 (file)
@@ -1,3 +1,10 @@
+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-08-15  Iain Sandoe  <iain@sandoe.co.uk>
 
        PR target/81685
index 3a08aea07be048cd2e40ebddbfbe77ee255c31c2..a31cb08b60500094de8b74c4deab95f3b3dd9c5d 100644 (file)
@@ -3711,19 +3711,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)
-{
-  /* Make sure we pick up all the relevant quotes etc.  */
-  assemble_name_raw (fp, new_is_cold ? "__cold_sect_of_" : "__hot_sect_of_");
-  assemble_name_raw (fp, IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
-  fputs (":\n", fp);
-}
-
 #include "gt-darwin.h"
index f27c077b8eaf462c257bed8437ee8797d7d645b6..166c3c7718ca094d2003849d58f4d60272025c3f 100644 (file)
@@ -717,10 +717,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