diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2018-08-15 11:16:12 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2018-08-15 11:16:12 +0000 |
commit | 05c1e87adbc09a2c90155d5d5d05cf866d39c9e2 (patch) | |
tree | ca98ee58cf165540645e4d275e12b9ecb7ba3b3c /gcc | |
parent | 25b030b85a03c86a010c1d2e4bc8db25958b0515 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/darwin.c | 15 | ||||
-rw-r--r-- | gcc/config/darwin.h | 4 |
3 files changed, 7 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16d89d4..3871693 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 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 * config/darwin.h: (DEBUG_STR_OFFSETS_SECTION, DEBUG_LOCLISTS_SECTION, DEBUG_RNGLISTS_SECTION) new macros. (DEBUG_PUBNAMES_SECTION, 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" diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index f27c077..166c3c7 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -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 |