aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-08-09 15:33:35 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-08-09 15:33:35 -0700
commit2cc07db4b089b8b3df05261f1d7acbc96d2e720a (patch)
treeddb2d5519f49bc33648c25225b8b8ba84df590b9 /gcc/target.h
parentef8d8b8922a034dfac5cff9d5fa781dc57c49ed0 (diff)
downloadgcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.zip
gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.tar.gz
gcc-2cc07db4b089b8b3df05261f1d7acbc96d2e720a.tar.bz2
Move constructor/destructor handling into target hooks.
From-SVN: r44747
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h10
1 files changed, 10 insertions, 0 deletions
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;