aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index bbfe4f2..9038121 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -691,10 +691,12 @@ build_java_method_type (tree fntype, tree this_class, int access_flags)
}
static void
-hide (tree decl)
+hide (tree decl ATTRIBUTE_UNUSED)
{
+#ifdef HAVE_GAS_HIDDEN
DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
DECL_VISIBILITY_SPECIFIED (decl) = 1;
+#endif
}
tree