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/ch | |
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/ch')
-rw-r--r-- | gcc/ch/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ch/grant.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index b1c048b..f8fe135 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,8 @@ +2001-08-09 Richard Henderson <rth@redhat.com> + + * grant.c (chill_finish_compile): Use target hooks instead of + assemble_constructor. + 2001-08-06 Richard Henderson <rth@redhat.com> * grant.c (chill_finish_compile): Pass a symbol_ref and priority diff --git a/gcc/ch/grant.c b/gcc/ch/grant.c index c10eb99..806c944 100644 --- a/gcc/ch/grant.c +++ b/gcc/ch/grant.c @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ #include "tasking.h" #include "toplev.h" #include "output.h" +#include "target.h" #define APPEND(X,Y) X = append (X, Y) #define PREPEND(X,Y) X = prepend (X, Y); @@ -3046,12 +3047,9 @@ chill_finish_compile () finish_chill_function (); - if (pass == 2) - { - assemble_constructor (XEXP (DECL_RTL (chill_init_function), 0), - DEFAULT_INIT_PRIORITY); - globalize_decl (chill_init_function); - } + if (pass == 2 && targetm.have_ctors_dtors) + (* targetm.asm_out.constructor) + (XEXP (DECL_RTL (chill_init_function), 0), DEFAULT_INIT_PRIORITY); /* ready now to link decls onto this list in pass 2. */ module_init_list = NULL_TREE; |