OSDN Git Service

(ASM_OUTPUT_SECTION_NAME): New define.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 1996 23:51:38 +0000 (23:51 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 1996 23:51:38 +0000 (23:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11479 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/m68k/coff.h

index f31587d..35556c9 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\""