diff options
author | Nick Clifton <nickc@redhat.com> | 2004-07-01 08:47:16 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2004-07-01 08:47:16 +0000 |
commit | d59c7b4bdca296330783083e285ec0fab406df28 (patch) | |
tree | bc3cf975abb40ef9d243230199d2065263a4789e /gcc/doc | |
parent | ed63f99a3c6a15acd707795ec041f2ef0e9e74f3 (diff) | |
download | gcc-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/doc')
-rw-r--r-- | gcc/doc/tm.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 5f32581..a5455b0 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -8495,6 +8495,15 @@ This hook should return @code{true} if the element size should be stored in array cookies. The default is to return @code{false}. @end deftypefn +@deftypefn {Target Hook} int TARGET_CXX_IMPORT_EXPORT_CLASS (tree @var{type}, int @var{import_export}) +If defined by a backend this hook allows the decision made to export +class @var{type} to be overruled. Upon entry @var{import_export} +will contain 1 if the class is going to be exported, -1 if it is going +to be imported and 0 otherwise. This function should return the +modified value and perform any other actions necessary to support the +backend's targeted operating system. +@end deftypefn + @node Misc @section Miscellaneous Parameters @cindex parameters, miscellaneous |