aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2018-08-15 11:16:12 +0000
committerIain Sandoe <iains@gcc.gnu.org>2018-08-15 11:16:12 +0000
commit05c1e87adbc09a2c90155d5d5d05cf866d39c9e2 (patch)
treeca98ee58cf165540645e4d275e12b9ecb7ba3b3c /gcc/config/darwin.c
parent25b030b85a03c86a010c1d2e4bc8db25958b0515 (diff)
downloadgcc-05c1e87adbc09a2c90155d5d5d05cf866d39c9e2.zip
gcc-05c1e87adbc09a2c90155d5d5d05cf866d39c9e2.tar.gz
gcc-05c1e87adbc09a2c90155d5d5d05cf866d39c9e2.tar.bz2
Darwin - remove unnecessary target hook
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
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 3a08aea..a31cb08 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -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"