summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2008-01-23 23:00:39 +0000
committerDavid Daney <daney@gcc.gnu.org>2008-01-23 23:00:39 +0000
commit3e603aef40cb6ac7e1e900ab8d2d74ce71cb6595 (patch)
treec5724340e6d582282ffea2d456a266bb7efcdf72 /gcc/java/class.c
parent6c660aeb0e8079ee3267af0dc3682ce9cdc91385 (diff)
downloadgcc-3e603aef40cb6ac7e1e900ab8d2d74ce71cb6595.tar.gz
2008-01-23 David Daney <ddaney@avtrex.com>
* class.c (hide) Rename to... (java_hide_decl) ... this throughout, and make public. * resource.c (Jr_count): Remove. (compile_resource_data): Call java_mangle_resource_name to generate decl name. Make resource decl public and hidden. * mangle.c (java_mangle_resource_name): New function. * java-tree.h (java_hide_decl, java_mangle_resource_name): Declare functions. From-SVN: r131767
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 029d9ac68b1..2aec3a5addf 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -742,8 +742,8 @@ build_java_method_type (tree fntype, tree this_class, int access_flags)
return fntype;
}
-static void
-hide (tree decl ATTRIBUTE_UNUSED)
+void
+java_hide_decl (tree decl ATTRIBUTE_UNUSED)
{
#ifdef HAVE_GAS_HIDDEN
DECL_VISIBILITY (decl) = VISIBILITY_HIDDEN;
@@ -872,7 +872,7 @@ add_field (tree class, tree name, tree field_type, int flags)
/* Hide everything that shouldn't be visible outside a DSO. */
if (flag_indirect_classes
|| (FIELD_PRIVATE (field)))
- hide (field);
+ java_hide_decl (field);
/* Considered external unless we are compiling it into this
object file. */
DECL_EXTERNAL (field) = (is_compiled_class (class) != 2);
@@ -1031,7 +1031,7 @@ build_static_class_ref (tree type)
{
TREE_PUBLIC (decl) = 1;
if (CLASS_PRIVATE (TYPE_NAME (type)))
- hide (decl);
+ java_hide_decl (decl);
}
DECL_IGNORED_P (decl) = 1;
DECL_ARTIFICIAL (decl) = 1;
@@ -1071,7 +1071,7 @@ build_classdollar_field (tree type)
TREE_CONSTANT (decl) = 1;
TREE_READONLY (decl) = 1;
TREE_PUBLIC (decl) = 1;
- hide (decl);
+ java_hide_decl (decl);
DECL_IGNORED_P (decl) = 1;
DECL_ARTIFICIAL (decl) = 1;
MAYBE_CREATE_VAR_LANG_DECL_SPECIFIC (decl);
@@ -1760,7 +1760,7 @@ make_class_data (tree type)
/* The only dispatch table exported from a DSO is the dispatch
table for java.lang.Class. */
if (DECL_NAME (type_decl) != id_class)
- hide (dtable_decl);
+ java_hide_decl (dtable_decl);
if (! flag_indirect_classes)
rest_of_decl_compilation (dtable_decl, 1, 0);
/* Maybe we're compiling Class as the first class. If so, set
@@ -2613,7 +2613,7 @@ layout_class_method (tree this_class, tree super_class,
|| (METHOD_PRIVATE (method_decl) && METHOD_STATIC (method_decl)
&& ! METHOD_NATIVE (method_decl)
&& ! special_method_p (method_decl)))
- hide (method_decl);
+ java_hide_decl (method_decl);
/* Considered external unless it is being compiled into this object
file, or it was already flagged as external. */