diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-09 15:33:35 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-08-09 15:33:35 -0700 |
commit | 2cc07db4b089b8b3df05261f1d7acbc96d2e720a (patch) | |
tree | ddb2d5519f49bc33648c25225b8b8ba84df590b9 /gcc/config/darwin.h | |
parent | ef8d8b8922a034dfac5cff9d5fa781dc57c49ed0 (diff) | |
download | gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.tar.gz |
Move constructor/destructor handling into target hooks.
From-SVN: r44747
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 5cebd58b7e7..193a523be7a 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -158,33 +158,8 @@ do { text_section (); \ #undef INVOKE__main -#undef ASM_OUTPUT_CONSTRUCTOR -#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \ - do { if (flag_pic) \ - mod_init_section (); \ - else \ - constructor_section (); \ - ASM_OUTPUT_ALIGN (FILE, 1); \ - fprintf (FILE, "\t.long "); \ - assemble_name (FILE, NAME); \ - fprintf (FILE, "\n"); \ - if (!flag_pic) \ - fprintf (FILE, ".reference .constructors_used\n"); \ - } while (0) - -#undef ASM_OUTPUT_DESTRUCTOR -#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \ - do { if (flag_pic) \ - mod_term_section (); \ - else \ - destructor_section (); \ - ASM_OUTPUT_ALIGN (FILE, 1); \ - fprintf (FILE, "\t.long "); \ - assemble_name (FILE, NAME); \ - fprintf (FILE, "\n"); \ - if (!flag_pic) \ - fprintf (FILE, ".reference .destructors_used\n"); \ - } while (0) +#define TARGET_ASM_CONSTRUCTOR machopic_asm_out_constructor +#define TARGET_ASM_DESTRUCTOR machopic_asm_out_destructor /* Don't output a .file directive. That is only used by the assembler for |