diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2007-07-16 17:07:25 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2007-07-16 17:07:25 +0000 |
commit | c1331fd4fb357ea3780d70a8c87b9b8d6bdd0dd7 (patch) | |
tree | c4a4eeb9753ad81cbabe2866c3a6b329949e5e93 /gcc/java/class.c | |
parent | 04a4998306680c0c981035cbe888c548d4c1f418 (diff) | |
download | gcc-c1331fd4fb357ea3780d70a8c87b9b8d6bdd0dd7.zip gcc-c1331fd4fb357ea3780d70a8c87b9b8d6bdd0dd7.tar.gz gcc-c1331fd4fb357ea3780d70a8c87b9b8d6bdd0dd7.tar.bz2 |
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
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 4 |
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 |