aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-09-01 03:45:30 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-09-01 03:45:30 +0000
commit505970fc3324e2a0c00f5d82d66f62bae133e282 (patch)
treeec2aef636de8abf10479855a1221a1b908fabff6 /gcc/target.h
parentbe8fff8104f223a0eaa5ea36f385982d09d9731e (diff)
downloadgcc-505970fc3324e2a0c00f5d82d66f62bae133e282.zip
gcc-505970fc3324e2a0c00f5d82d66f62bae133e282.tar.gz
gcc-505970fc3324e2a0c00f5d82d66f62bae133e282.tar.bz2
target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
* target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA. * target.h (cxx): Add export_class_data. * config/arm/arm.c (arm_cxx_export_class_data): New function. (TARGET_CXX_EXPORT_CLASS_DATA): Use it. * testsuite/g++.dg/ext/visibility/arm1.C: New test. * cp-tree.h (DECL_CONSTRUCTION_VTABLE_P): New macro. * class.c (build_ctor_vtbl_group): Set DECL_CONSTRUCTION_VTABLE_P. * decl2.c (determine_visibility): Honor TARGET_CXX_EXPORT_CLASS_DATA. * g++.dg/ext/visibility/arm1.C: New test. From-SVN: r86867
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 57b38cf..035aeed 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -521,6 +521,10 @@ struct gcc_target
itself. Returning true is the behavior required by the Itanium
C++ ABI. */
bool (*key_method_may_be_inline) (void);
+ /* Returns true if all class data (virtual tables, type info,
+ etc.) should be exported from the current DLL, even when the
+ associated class is not exported. */
+ bool (*export_class_data) (void);
} cxx;
/* Leave the boolean fields at the end. */