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/arm/aof.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/arm/aof.h')
-rw-r--r-- | gcc/config/arm/aof.h | 58 |
1 files changed, 1 insertions, 57 deletions
diff --git a/gcc/config/arm/aof.h b/gcc/config/arm/aof.h index 3b0baf57ac5..2721b8bbdeb 100644 --- a/gcc/config/arm/aof.h +++ b/gcc/config/arm/aof.h @@ -60,12 +60,10 @@ char *aof_text_section (); char *aof_data_section (); #define DATA_SECTION_ASM_OP aof_data_section () -#define EXTRA_SECTIONS in_zero_init, in_ctor, in_dtor, in_common +#define EXTRA_SECTIONS in_zero_init, in_common #define EXTRA_SECTION_FUNCTIONS \ ZERO_INIT_SECTION \ -CTOR_SECTION \ -DTOR_SECTION \ COMMON_SECTION #define ZERO_INIT_SECTION \ @@ -81,44 +79,6 @@ zero_init_section () \ } \ } -#define CTOR_SECTION \ -void \ -ctor_section () \ -{ \ - static int ctors_once = 0; \ - if (in_section != in_ctor) \ - { \ - if (ctors_once) \ - { \ - fprintf (stderr, \ - "Attempt to output more than one ctor section\n"); \ - abort (); \ - } \ - fprintf (asm_out_file, "%s\n", CTORS_SECTION_ASM_OP); \ - in_section = in_ctor; \ - ctors_once = 1; \ - } \ -} - -#define DTOR_SECTION \ -void \ -dtor_section () \ -{ \ - static int dtors_once = 0; \ - if (in_section != in_dtor) \ - { \ - if (dtors_once) \ - { \ - fprintf (stderr, \ - "Attempt to output more than one dtor section\n"); \ - abort (); \ - } \ - fprintf (asm_out_file, "%s\n", DTORS_SECTION_ASM_OP); \ - in_section = in_dtor; \ - dtors_once = 1; \ - } \ -} - /* Used by ASM_OUTPUT_COMMON (below) to tell varasm.c that we've changed areas. */ #define COMMON_SECTION \ @@ -364,22 +324,6 @@ do { \ #define CTORS_SECTION_ASM_OP "\tAREA\t|C$$gnu_ctorsvec|, DATA, READONLY" #define DTORS_SECTION_ASM_OP "\tAREA\t|C$$gnu_dtorsvec|, DATA, READONLY" -#define ASM_OUTPUT_CONSTRUCTOR(STREAM,NAME) \ -do { \ - ctor_section (); \ - fprintf ((STREAM), "\tDCD\t"); \ - assemble_name ((STREAM), (NAME)); \ - fputc ('\n', (STREAM)); \ -} while (0); - -#define ASM_OUTPUT_DESTRUCTOR(STREAM,NAME) \ -do { \ - dtor_section (); \ - fprintf ((STREAM), "\tDCD\t"); \ - assemble_name ((STREAM), (NAME)); \ - fputc ('\n', (STREAM)); \ -} while (0); - /* Output of Assembler Instructions */ #define REGISTER_NAMES \ |