summaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-01 08:47:16 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-01 08:47:16 +0000
commit52d6bee4af7c047290440bcef095b2b11b5280f4 (patch)
treebc3cf975abb40ef9d243230199d2065263a4789e /gcc/cp/decl2.c
parentda5bcf43ce3d4265b85c9acaa27f6f1bdd7ef86d (diff)
downloadgcc-52d6bee4af7c047290440bcef095b2b11b5280f4.tar.gz
* target.h (struct gcc_target): Add new field to struct cxx: import_export_class.
* target-def.h (TARGET_CXX): Initialise the new field. (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for the new field. * doc/tm.texi: Document the new target hook. * decl2.c (import_export_class): Invoke the import_export_class field in the gcc_target structure if it is not empty. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83964 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index f3ecc3e5dcc..191888e1b87 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -1510,6 +1510,10 @@ import_export_class (tree ctype)
import_export = 0;
#endif
+ /* Allow backends the chance to overrule the decision. */
+ if (targetm.cxx.import_export_class)
+ import_export = targetm.cxx.import_export_class (ctype, import_export);
+
if (import_export)
{
SET_CLASSTYPE_INTERFACE_KNOWN (ctype);