From 505970fc3324e2a0c00f5d82d66f62bae133e282 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 1 Sep 2004 03:45:30 +0000 Subject: 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 --- gcc/doc/tm.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/doc/tm.texi') diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index d1e59cf..bba444c 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -8538,6 +8538,14 @@ some variants of the ABI, an inline function can never be the key method. The default is to return @code{true}. @end deftypefn +@deftypefn {Target Hook} bool TARGET_CXX_EXPORT_CLASS_DATA (void) +If this hook returns false (the default), then virtual tables and RTTI +data structures will have the ELF visibility of their containing +class. If this hook returns true, then these data structures will +have ELF ``default'' visibility, independently of the visibility of +the containing class. +@end deftypefn + @node Misc @section Miscellaneous Parameters @cindex parameters, miscellaneous -- cgit v1.1