diff options
author | Julian Brown <julian@codesourcery.com> | 2008-07-17 14:03:50 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2008-07-17 14:03:50 +0000 |
commit | 711b299844b8eb77451d96a360f4525fc005279e (patch) | |
tree | 227fab594ab803abac56d2e5bd12c689005f8eac /gcc/config | |
parent | 0eae6babe5d9101e825cb8f32bba494642db45af (diff) | |
download | gcc-711b299844b8eb77451d96a360f4525fc005279e.zip gcc-711b299844b8eb77451d96a360f4525fc005279e.tar.gz gcc-711b299844b8eb77451d96a360f4525fc005279e.tar.bz2 |
decl2.c (determine_visibility): Allow target to override visibility of class data.
gcc/cp/
* decl2.c (determine_visibility): Allow target to override
visibility of class data.
gcc/
* config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
no-op for targets which don't use DLLs.
gcc/testsuite/
* g++.dg/ext/visibility/arm3.C: Add explanatory text. Skip on
non-DLL targets.
* g++.dg/ext/visibility/arm1.C: Skip on non-DLL targets.
Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r137922
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 0ce531bb..d64b6fd 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -18318,7 +18318,8 @@ arm_cxx_key_method_may_be_inline (void) static void arm_cxx_determine_class_data_visibility (tree decl) { - if (!TARGET_AAPCS_BASED) + if (!TARGET_AAPCS_BASED + || !TARGET_DLLIMPORT_DECL_ATTRIBUTES) return; /* In general, \S 3.2.5.5 of the ARM EABI requires that class data |