aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-03-05 18:51:38 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-03-05 18:51:38 -0500
commiteb1cb30dc4844d6cd80c2ac795075865b5dff1cf (patch)
tree2f6c3ab48ceb79eb439dcf613d737821fc2ffb33
parentfe4fcb3eda6a5a1aba8b6e23babd91517108b78c (diff)
downloadgcc-eb1cb30dc4844d6cd80c2ac795075865b5dff1cf.zip
gcc-eb1cb30dc4844d6cd80c2ac795075865b5dff1cf.tar.gz
gcc-eb1cb30dc4844d6cd80c2ac795075865b5dff1cf.tar.bz2
(ASM_OUTPUT_SECTION_NAME): New define.
From-SVN: r11479
-rw-r--r--gcc/config/m68k/coff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/m68k/coff.h b/gcc/config/m68k/coff.h
index f31587d..35556c9 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\""