diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-09 22:33:35 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-09 22:33:35 +0000 |
commit | 01d15dc570c9d303e03ad64a0f66a38f5ce4b8bd (patch) | |
tree | ddb2d5519f49bc33648c25225b8b8ba84df590b9 /gcc/config/nextstep.h | |
parent | be6b7965bba925cee48dfe2af6c9a40e85c744c1 (diff) | |
download | gcc-01d15dc570c9d303e03ad64a0f66a38f5ce4b8bd.tar.gz |
Move constructor/destructor handling into target hooks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44747 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/nextstep.h')
-rw-r--r-- | gcc/config/nextstep.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/gcc/config/nextstep.h b/gcc/config/nextstep.h index d32675cfc5e..7bb96814634 100644 --- a/gcc/config/nextstep.h +++ b/gcc/config/nextstep.h @@ -212,25 +212,10 @@ Boston, MA 02111-1307, USA. */ #define INIT_SECTION_ASM_OP #undef INVOKE__main -#undef ASM_OUTPUT_CONSTRUCTOR -#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \ - do { constructor_section (); \ - ASM_OUTPUT_ALIGN (FILE, 1); \ - fprintf (FILE, "\t.long "); \ - assemble_name (FILE, NAME); \ - fprintf (FILE, "\n"); \ - fprintf (FILE, ".reference .constructors_used\n"); \ - } while (0) - -#undef ASM_OUTPUT_DESTRUCTOR -#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \ - do { destructor_section (); \ - ASM_OUTPUT_ALIGN (FILE, 1); \ - fprintf (FILE, "\t.long "); \ - assemble_name (FILE, NAME); \ - fprintf (FILE, "\n"); \ - fprintf (FILE, ".reference .destructors_used\n"); \ - } while (0) +#define TARGET_ASM_CONSTRUCTOR nextstep_asm_out_constructor +#define TARGET_ASM_DESTRUCTOR nextstep_asm_out_destructor +extern void nextstep_asm_out_constructor PARAMS ((struct rtx_def *, int)); +extern void nextstep_asm_out_destructor PARAMS ((struct rtx_def *, int)); /* ??? Should be changed to EH_FRAME_SECTION_NAME, but that requires named section support. Based on this definition, it seems clear |