diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-05 23:51:38 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-03-05 23:51:38 +0000 |
commit | 513138fefe6262a9621d1a53cc5bf47c8e987cc5 (patch) | |
tree | 2f6c3ab48ceb79eb439dcf613d737821fc2ffb33 /gcc/config/m68k/coff.h | |
parent | b1c04502a5c8f50334ef935c569cc7c35f10e41f (diff) |
(ASM_OUTPUT_SECTION_NAME): New define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/m68k/coff.h')
-rw-r--r-- | gcc/config/m68k/coff.h | 8 |
1 files changed, 8 insertions, 0 deletions
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\"" |