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/ia64 | |
parent | ef8d8b8922a034dfac5cff9d5fa781dc57c49ed0 (diff) | |
download | gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.zip gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.tar.gz gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.tar.bz2 |
Move constructor/destructor handling into target hooks.
From-SVN: r44747
Diffstat (limited to 'gcc/config/ia64')
-rw-r--r-- | gcc/config/ia64/sysv4.h | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/gcc/config/ia64/sysv4.h b/gcc/config/ia64/sysv4.h index ea9eb2f..3902072 100644 --- a/gcc/config/ia64/sysv4.h +++ b/gcc/config/ia64/sysv4.h @@ -83,46 +83,6 @@ do { \ #define INIT_SECTION_ASM_OP "\t.section\t.init,\"ax\",\"progbits\"" #undef FINI_SECTION_ASM_OP #define FINI_SECTION_ASM_OP "\t.section\t.fini,\"ax\",\"progbits\"" -#undef CTORS_SECTION_ASM_OP -#define CTORS_SECTION_ASM_OP "\t.section\t.ctors,\"aw\",\"progbits\"" -#undef DTORS_SECTION_ASM_OP -#define DTORS_SECTION_ASM_OP "\t.section\t.dtors,\"aw\",\"progbits\"" - -/* A C statement (sans semicolon) to output an element in the table of - global constructors. */ -/* Must override this to get @fptr relocation. */ -#undef ASM_OUTPUT_CONSTRUCTOR -#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \ - do { \ - ctors_section (); \ - if (TARGET_NO_PIC || TARGET_AUTO_PIC) \ - fputs ("\tdata8\t ", FILE); \ - else \ - fputs ("\tdata8\t @fptr(", FILE); \ - assemble_name (FILE, NAME); \ - if (TARGET_NO_PIC || TARGET_AUTO_PIC) \ - fputs ("\n", FILE); \ - else \ - fputs (")\n", FILE); \ - } while (0) - -/* A C statement (sans semicolon) to output an element in the table of - global destructors. */ -/* Must override this to get @fptr relocation. */ -#undef ASM_OUTPUT_DESTRUCTOR -#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \ - do { \ - dtors_section (); \ - if (TARGET_NO_PIC || TARGET_AUTO_PIC) \ - fputs ("\tdata8\t ", FILE); \ - else \ - fputs ("\tdata8\t @fptr(", FILE); \ - assemble_name (FILE, NAME); \ - if (TARGET_NO_PIC || TARGET_AUTO_PIC) \ - fputs ("\n", FILE); \ - else \ - fputs (")\n", FILE); \ - } while (0) /* svr4.h undefines this, so we need to define it here. */ #define DBX_REGISTER_NUMBER(REGNO) \ @@ -238,13 +198,11 @@ extern unsigned int ia64_section_threshold; } #undef EXTRA_SECTIONS -#define EXTRA_SECTIONS in_const, in_ctors, in_dtors, in_sdata, in_sbss +#define EXTRA_SECTIONS in_const, in_sdata, in_sbss #undef EXTRA_SECTION_FUNCTIONS #define EXTRA_SECTION_FUNCTIONS \ CONST_SECTION_FUNCTION \ - CTORS_SECTION_FUNCTION \ - DTORS_SECTION_FUNCTION \ SDATA_SECTION_FUNCTION \ SBSS_SECTION_FUNCTION |