OSDN Git Service

PR target/32462
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jul 2007 17:07:25 +0000 (17:07 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Jul 2007 17:07:25 +0000 (17:07 +0000)
PR libgcj/32465
* class.c (hide): Wrap in HAVE_GAS_HIDDEN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126684 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/class.c

index e05b4df..4b1c9ec 100644 (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.
index bbfe4f2..9038121 100644 (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