* [COMMITTED] bpf: use the default asm_named_section target hook
@ 2020-09-02 7:27 Jose E. Marchesi
0 siblings, 0 replies; only message in thread
From: Jose E. Marchesi @ 2020-09-02 7:27 UTC (permalink / raw)
To: gcc-patches
This patch makes the BPF backend to not provide its own implementation
of the asm_named_section hook; the default handler works perfectly
well.
2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
gcc/
* config/bpf/bpf.c (bpf_asm_named_section): Delete.
(TARGET_ASM_NAMED_SECTION): Likewise.
---
gcc/config/bpf/bpf.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/gcc/config/bpf/bpf.c b/gcc/config/bpf/bpf.c
index 84d17d4a27f..972a91adcd8 100644
--- a/gcc/config/bpf/bpf.c
+++ b/gcc/config/bpf/bpf.c
@@ -219,23 +219,6 @@ bpf_target_macros (cpp_reader *pfile)
}
}
-/* Output assembly directives to switch to section NAME. The section
- should have attributes as specified by FLAGS, which is a bit mask
- of the 'SECTION_*' flags defined in 'output.h'. If DECL is
- non-NULL, it is the 'VAR_DECL' or 'FUNCTION_DECL' with which this
- section is associated. */
-
-static void
-bpf_asm_named_section (const char *name,
- unsigned int flags ATTRIBUTE_UNUSED,
- tree decl ATTRIBUTE_UNUSED)
-{
- fprintf (asm_out_file, "\t.section\t%s\n", name);
-}
-
-#undef TARGET_ASM_NAMED_SECTION
-#define TARGET_ASM_NAMED_SECTION bpf_asm_named_section
-
/* Return an RTX representing the place where a function returns or
receives a value of data type RET_TYPE, a tree node representing a
data type. */
--
2.25.0.2.g232378479e
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-02 7:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-02 7:27 [COMMITTED] bpf: use the default asm_named_section target hook Jose E. Marchesi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).