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/target.h | |
parent | be6b7965bba925cee48dfe2af6c9a40e85c744c1 (diff) | |
download | ppe42-gcc-01d15dc570c9d303e03ad64a0f66a38f5ce4b8bd.tar.gz ppe42-gcc-01d15dc570c9d303e03ad64a0f66a38f5ce4b8bd.zip |
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/target.h')
-rw-r--r-- | gcc/target.h | 10 |
1 files changed, 10 insertions, 0 deletions
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; |