From 01d15dc570c9d303e03ad64a0f66a38f5ce4b8bd Mon Sep 17 00:00:00 2001 From: rth Date: Thu, 9 Aug 2001 22:33:35 +0000 Subject: Move constructor/destructor handling into target hooks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44747 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 d3f32faf9c7..3e9b46cb9d0 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.2.1