aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/svr3.h
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-30 04:54:24 +0000
committerRichard Stallman <rms@gnu.org>1992-07-30 04:54:24 +0000
commit66c377f0bcbef7f6262b7c8a42c5c45b7cc9dbdf (patch)
tree2c4ff7c8660131febd1c7dc349c7d38b91d9c2b7 /gcc/config/svr3.h
parent5be232214dd62b13e1cb0df79469146e7a4c520c (diff)
downloadgcc-66c377f0bcbef7f6262b7c8a42c5c45b7cc9dbdf.zip
gcc-66c377f0bcbef7f6262b7c8a42c5c45b7cc9dbdf.tar.gz
gcc-66c377f0bcbef7f6262b7c8a42c5c45b7cc9dbdf.tar.bz2
(BSS_SECTION_FUNCTION): New macro.
(CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Enable these. From-SVN: r1718
Diffstat (limited to 'gcc/config/svr3.h')
-rw-r--r--gcc/config/svr3.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h
index 61b0da1..bc648ca 100644
--- a/gcc/config/svr3.h
+++ b/gcc/config/svr3.h
@@ -255,9 +255,20 @@ do { \
INIT_SECTION_FUNCTION \
FINI_SECTION_FUNCTION
+#define BSS_SECTION_FUNCTION \
+void \
+bss_section () \
+{ \
+ if (in_section != in_bss) \
+ { \
+ fprintf (asm_out_file, "\t%s\n", BSS_SECTION_ASM_OP); \
+ in_section = in_bss; \
+ } \
+}
+
#define INIT_SECTION_FUNCTION \
void \
-init_section () \
+init_section () \
{ \
if (in_section != in_init) \
{ \
@@ -293,7 +304,9 @@ const_section () \
} \
}
-#if 0
+/* The ctors and dtors sections are not normally put into use
+ by EXTRA_SECTIONS and EXTRA_SECTION_FUNCTIONS as defined in svr3.h,
+ but it can't hurt to define these macros for whatever systems use them. */
#define CTORS_SECTION_FUNCTION \
void \
ctors_section () \
@@ -315,7 +328,6 @@ dtors_section () \
in_section = in_dtors; \
} \
}
-#endif
/* This is machine-dependent
because it needs to push something on the stack. */