diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-07-30 04:54:24 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1992-07-30 04:54:24 +0000 |
commit | 58c17fd202ff23e0f93987b05ec8478ce4d3ead3 (patch) | |
tree | 2c4ff7c8660131febd1c7dc349c7d38b91d9c2b7 /gcc/config/svr3.h | |
parent | 78171a7029f8c6a0e6e622a72197056201acc498 (diff) | |
download | gcc-58c17fd202ff23e0f93987b05ec8478ce4d3ead3.tar.gz |
(BSS_SECTION_FUNCTION): New macro.
(CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Enable these.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1718 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/svr3.h')
-rw-r--r-- | gcc/config/svr3.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h index 61b0da1d3bd..bc648caa4d8 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. */ |