summaryrefslogtreecommitdiff
path: root/gcc/config/svr3.h
diff options
context:
space:
mode:
authorTom Wood <wood@gnu.org>1992-03-19 20:41:45 +0000
committerTom Wood <wood@gnu.org>1992-03-19 20:41:45 +0000
commitb335c2ccab1de6da9e2a0a3b4253408036feec36 (patch)
tree835f283d52c10e4198adffd60d81eb776bc62c10 /gcc/config/svr3.h
parentd742f26c5bb11a55364d269688ae8bb69f35c4c2 (diff)
downloadgcc-b335c2ccab1de6da9e2a0a3b4253408036feec36.tar.gz
*** empty log message ***
From-SVN: r526
Diffstat (limited to 'gcc/config/svr3.h')
-rw-r--r--gcc/config/svr3.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h
index 112f8c21854..9e871537a2f 100644
--- a/gcc/config/svr3.h
+++ b/gcc/config/svr3.h
@@ -172,25 +172,25 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
unless the specific tm.h file turns it on by defining
USE_CONST_SECTION as 1. */
-/* The support for constructors and destructors depends on two
- machine-specific macros that the individual tm.h file has to define:
+/* Define a few machine-specific details of the implementation of
+ constructors.
- CTORS_SECTION_ASM_OP should be defined to concatenate
- the macro INIT_SECTION_ASM_OP, a newline, and a push instruction
- to push a word containing 0 (or some equivalent of that).
+ The __CTORS_LIST__ goes in the .init section. Define CTOR_LIST_BEGIN
+ and CTOR_LIST_END to contribute to the .init section an instruction to
+ push a word containing 0 (or some equivalent of that).
- ASM_OUTPUT_CONSTRUCTOR should be defined
- to push the address of the constructor. */
+ Define ASM_OUTPUT_CONSTRUCTOR to push the address of the constructor. */
#define USE_CONST_SECTION 0
#define INIT_SECTION_ASM_OP ".section\t.init"
#define FINI_SECTION_ASM_OP ".section .fini,\"x\""
#define CONST_SECTION_ASM_OP ".section\t.rodata, \"x\""
-
+#define CTORS_SECTION_ASM_OP INIT_SECTION_ASM_OP
#define DTORS_SECTION_ASM_OP FINI_SECTION_ASM_OP
-/* CTORS_SECTION_ASM_OP is machine-dependent
- because it pushes on the stack. */
+
+/* CTOR_LIST_BEGIN and CTOR_LIST_END are machine-dependent
+ because they push on the stack. */
#define DO_GLOBAL_CTORS_BODY \
do { \