From 2cc07db4b089b8b3df05261f1d7acbc96d2e720a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 9 Aug 2001 15:33:35 -0700 Subject: Move constructor/destructor handling into target hooks. From-SVN: r44747 --- gcc/target.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gcc/target.h') diff --git a/gcc/target.h b/gcc/target.h index d3f32fa..3e9b46c 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -72,6 +72,12 @@ struct gcc_target the section; 0 if the default should be used. */ void (* named_section) PARAMS ((const char *, unsigned int, unsigned int)); + + /* Output a constructor for a symbol with a given priority. */ + void (* constructor) PARAMS ((struct rtx_def *, int)); + + /* Output a destructor for a symbol with a given priority. */ + void (* destructor) PARAMS ((struct rtx_def *, int)); } asm_out; /* Given two decls, merge their attributes and return the result. */ @@ -120,6 +126,10 @@ struct gcc_target /* True if arbitrary sections are supported. */ bool have_named_sections; + + /* True if "native" constructors and destructors are supported, + false if we're using collect2 for the job. */ + bool have_ctors_dtors; }; extern struct gcc_target targetm; -- cgit v1.1