aboutsummaryrefslogtreecommitdiff
path: root/gcc/target-def.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-07-01 08:47:16 +0000
committerNick Clifton <nickc@gcc.gnu.org>2004-07-01 08:47:16 +0000
commitd59c7b4bdca296330783083e285ec0fab406df28 (patch)
treebc3cf975abb40ef9d243230199d2065263a4789e /gcc/target-def.h
parented63f99a3c6a15acd707795ec041f2ef0e9e74f3 (diff)
downloadgcc-d59c7b4bdca296330783083e285ec0fab406df28.zip
gcc-d59c7b4bdca296330783083e285ec0fab406df28.tar.gz
gcc-d59c7b4bdca296330783083e285ec0fab406df28.tar.bz2
target.h (struct gcc_target): Add new field to struct cxx: import_export_class.
* 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. From-SVN: r83964
Diffstat (limited to 'gcc/target-def.h')
-rw-r--r--gcc/target-def.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/target-def.h b/gcc/target-def.h
index fbc84b6..9058794 100644
--- a/gcc/target-def.h
+++ b/gcc/target-def.h
@@ -410,12 +410,17 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define TARGET_CXX_COOKIE_HAS_SIZE hook_bool_void_false
#endif
+#ifndef TARGET_CXX_IMPORT_EXPORT_CLASS
+#define TARGET_CXX_IMPORT_EXPORT_CLASS NULL
+#endif
+
#define TARGET_CXX \
{ \
TARGET_CXX_GUARD_TYPE, \
TARGET_CXX_GUARD_MASK_BIT, \
TARGET_CXX_GET_COOKIE_SIZE, \
- TARGET_CXX_COOKIE_HAS_SIZE \
+ TARGET_CXX_COOKIE_HAS_SIZE, \
+ TARGET_CXX_IMPORT_EXPORT_CLASS \
}
/* The whole shebang. */