aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-06-24 12:46:59 +0000
committerTom Tromey <tromey@gcc.gnu.org>2008-06-24 12:46:59 +0000
commitf02a84d9bea57d5ea8bc688a52c4ad568811d0e3 (patch)
tree354f09c5b595364bbe3a120012deb913cb611a72 /gcc/java/constants.c
parentf9993944a43c65e41b64d93b5a1cb9f2e9160a94 (diff)
downloadgcc-f02a84d9bea57d5ea8bc688a52c4ad568811d0e3.zip
gcc-f02a84d9bea57d5ea8bc688a52c4ad568811d0e3.tar.gz
gcc-f02a84d9bea57d5ea8bc688a52c4ad568811d0e3.tar.bz2
jcf-path.c (jcf_path_init): Don't name variable 'try'.
* jcf-path.c (jcf_path_init): Don't name variable 'try'. * expr.c (add_type_assertion): Rename argument. (build_java_arrayaccess): Don't name variable 'throw'. (ARRAY_NEW_MULTI): Don't name variable 'class'. * jcf-io.c (find_class): Don't name variable 'class'. * mangle.c (compression_table_add): Don't name variable 'new'. * constants.c (cpool_for_class): Rename argument. (alloc_constant_fieldref): Likewise. * jcf-parse.c (handle_innerclass_attribute): Don't name variable 'class'. (read_class): Likewise. (parse_zip_file_entries): Likewise. (process_zip_dir): Likewise. * decl.c (java_mark_class_local): Rename argument. * class.c (GEN_TABLE): Use type_name, not typename. (gen_indirect_dispatch_tables): Likewise. (add_field): Rename argument. (is_compiled_class): Likewise. (safe_layout_class): Likewise. (emit_assertion_table): Likewise. * typeck.c (has_method): Rename argument. From-SVN: r137069
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r--gcc/java/constants.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/java/constants.c b/gcc/java/constants.c
index f3436cf..265557e 100644
--- a/gcc/java/constants.c
+++ b/gcc/java/constants.c
@@ -1,6 +1,6 @@
/* Handle the constant pool of the Java(TM) Virtual Machine.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
- 2007 Free Software Foundation, Inc.
+ 2007, 2008 Free Software Foundation, Inc.
This file is part of GCC.
@@ -327,14 +327,14 @@ get_tag_node (int tag)
/* Given a class, return its constant pool, creating one if necessary. */
CPool *
-cpool_for_class (tree class)
+cpool_for_class (tree klass)
{
- CPool *cpool = TYPE_CPOOL (class);
+ CPool *cpool = TYPE_CPOOL (klass);
if (cpool == NULL)
{
cpool = GGC_CNEW (struct CPool);
- TYPE_CPOOL (class) = cpool;
+ TYPE_CPOOL (klass) = cpool;
}
return cpool;
}
@@ -370,13 +370,13 @@ find_name_and_type_constant_tree (CPool *cpool, tree name, tree type)
}
/* Look for a field ref that matches DECL in the constant pool of
- CLASS.
+ KLASS.
Return the index of the entry. */
int
-alloc_constant_fieldref (tree class, tree decl)
+alloc_constant_fieldref (tree klass, tree decl)
{
- CPool *outgoing_cpool = cpool_for_class (class);
+ CPool *outgoing_cpool = cpool_for_class (klass);
int class_index
= find_tree_constant (outgoing_cpool, CONSTANT_Class,
DECL_NAME (TYPE_NAME (DECL_CONTEXT (decl))));