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
This commit is contained in:
Rainer Orth 2007-07-16 17:07:25 +00:00 committed by Rainer Orth
parent 04a4998306
commit c1331fd4fb
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR target/32462
PR libgcj/32465
* class.c (hide): Wrap in HAVE_GAS_HIDDEN.
2007-07-12 Richard Guenther <rguenther@suse.de>
* expr.c (expand_java_return): RETURN_EXPR has void type.

View File

@ -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