From eb1cb30dc4844d6cd80c2ac795075865b5dff1cf Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 5 Mar 1996 18:51:38 -0500 Subject: [PATCH] (ASM_OUTPUT_SECTION_NAME): New define. From-SVN: r11479 --- gcc/config/m68k/coff.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/config/m68k/coff.h b/gcc/config/m68k/coff.h index f31587dd103..35556c91d29 100644 --- a/gcc/config/m68k/coff.h +++ b/gcc/config/m68k/coff.h @@ -94,6 +94,14 @@ Boston, MA 02111-1307, USA. */ #define ASM_OUTPUT_ALIGNED_BSS(FILE, NAME, SIZE, ALIGN) \ asm_output_aligned_bss ((FILE), (NAME), (SIZE), (ALIGN)) +/* Support generic sections */ + +#undef ASM_OUTPUT_SECTION_NAME +#define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME) \ + fprintf((FILE), ".section\t%s,\"%c\"\n", (NAME), \ + TREE_CODE (DECL) == FUNCTION_DECL || \ + TREE_READONLY (DECL) ? 'x' : 'd') + /* Support the ctors and dtors sections for g++. */ #define CTORS_SECTION_ASM_OP ".section\t.ctors,\"x\"" -- 2.30.2