(ASM_OUTPUT_SECTION_NAME): New define.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 5 Mar 1996 23:51:38 +0000 (18:51 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 5 Mar 1996 23:51:38 +0000 (18:51 -0500)
From-SVN: r11479

gcc/config/m68k/coff.h

index f31587dd103fc568b85142f99952c95ee5a346a9..35556c91d290991935f66178d49595ddd5930e96 100644 (file)
@@ -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\""