This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: remove dead code from gcj
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: GCJ-patches <java-patches at gcc dot gnu dot org>
- Date: Sat, 15 Sep 2007 09:02:35 -0600
- Subject: Patch: FYI: remove dead code from gcj
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in.
This removes some unused code from gcj.
Tom
ChangeLog:
2007-09-14 Tom Tromey <tromey@redhat.com>
* java-tree.h (struct lang_decl_func) <function_decl_body>:
Remove.
<init_final>: Likewise.
* lang.c (java_dump_tree): Update.
* java-tree.h (DECL_FUNCTION_BODY): Remove.
Index: lang.c
===================================================================
--- lang.c (revision 128478)
+++ lang.c (working copy)
@@ -836,8 +836,6 @@
dump_string (di, "extern");
else
dump_string (di, "static");
- if (DECL_LANG_SPECIFIC (t))
- dump_child ("body", DECL_FUNCTION_BODY (t));
if (DECL_LANG_SPECIFIC (t) && !dump_flag (di, TDF_SLIM, t))
dump_child ("inline body", DECL_SAVED_TREE (t));
return true;
Index: java-tree.h
===================================================================
--- java-tree.h (revision 128478)
+++ java-tree.h (working copy)
@@ -722,10 +722,6 @@
/* List of checked thrown exceptions, as specified with the `throws'
keyword */
#define DECL_FUNCTION_THROWS(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.throws_list)
-/* Pointer to the function's current's COMPOUND_EXPR tree (while
- completing its body) or the function's block */
-#define DECL_FUNCTION_BODY(DECL) \
- (DECL_LANG_SPECIFIC(DECL)->u.f.function_decl_body)
/* For each function decl, init_test_table contains a hash table whose
entries are keyed on class names, and whose values are local
boolean decls. The variables are intended to be TRUE when the
@@ -801,7 +797,6 @@
only a source_location if USE_MAPPED_LOCATION. FIXME. */
source_location last_line; /* End line number for a function decl */
tree throws_list; /* Exception specified by `throws' */
- tree function_decl_body; /* Hold all function's statements */
/* Class initialization test variables */
htab_t GTY ((param_is (struct treetreehash_entry))) init_test_table;
@@ -810,7 +805,6 @@
htab_t GTY ((param_is (union tree_node))) ict;
unsigned int native : 1; /* Nonzero if this is a native method */
- unsigned int init_final : 1; /* Nonzero all finals are initialized */
unsigned int strictfp : 1;
unsigned int invisible : 1; /* Set for methods we generate
internally but which shouldn't be