aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
authorJulian Brown <julian@codesourcery.com>2008-07-17 14:03:50 +0000
committerJulian Brown <jules@gcc.gnu.org>2008-07-17 14:03:50 +0000
commit711b299844b8eb77451d96a360f4525fc005279e (patch)
tree227fab594ab803abac56d2e5bd12c689005f8eac /gcc/config/arm
parent0eae6babe5d9101e825cb8f32bba494642db45af (diff)
downloadgcc-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/arm')
-rw-r--r--gcc/config/arm/arm.c3
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