From: Richard Kenner Date: Tue, 5 Mar 1996 23:51:38 +0000 (-0500) Subject: (ASM_OUTPUT_SECTION_NAME): New define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb1cb30dc4844d6cd80c2ac795075865b5dff1cf;p=gcc.git (ASM_OUTPUT_SECTION_NAME): New define. From-SVN: r11479 --- 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\""