From c1331fd4fb357ea3780d70a8c87b9b8d6bdd0dd7 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 16 Jul 2007 17:07:25 +0000 Subject: [PATCH] re PR target/32462 (Linking libgcj.so fails on Solaris 10/x86) PR target/32462 PR libgcj/32465 * class.c (hide): Wrap in HAVE_GAS_HIDDEN. From-SVN: r126684 --- gcc/java/ChangeLog | 6 ++++++ gcc/java/class.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index e05b4df365f..4b1c9ec65f6 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,9 @@ +2007-07-16 Rainer Orth + + PR target/32462 + PR libgcj/32465 + * class.c (hide): Wrap in HAVE_GAS_HIDDEN. + 2007-07-12 Richard Guenther * expr.c (expand_java_return): RETURN_EXPR has void type. diff --git a/gcc/java/class.c b/gcc/java/class.c index bbfe4f26993..90381211ed6 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