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