aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2003-08-04 19:06:24 +0000
committerTom Tromey <tromey@gcc.gnu.org>2003-08-04 19:06:24 +0000
commit0e0464535ed47016fb22a3fc5a75a517545fb737 (patch)
tree742e7e6dcafb151fd98c735a76dfb8bc97a7405d
parent27a6ded9806552f11c14d7ee3207ce888dd95551 (diff)
downloadgcc-0e0464535ed47016fb22a3fc5a75a517545fb737.zip
gcc-0e0464535ed47016fb22a3fc5a75a517545fb737.tar.gz
gcc-0e0464535ed47016fb22a3fc5a75a517545fb737.tar.bz2
java-tree.h (METHOD_TRANSIENT): Removed.
* java-tree.h (METHOD_TRANSIENT): Removed. * decl.c (pushdecl): Removed some dead code. * class.c (get_access_flags_from_decl): Can't have transient method. (add_method_1): Can't have a transient method. From-SVN: r70152
-rw-r--r--gcc/java/ChangeLog8
-rw-r--r--gcc/java/class.c3
-rw-r--r--gcc/java/decl.c9
-rw-r--r--gcc/java/java-tree.h4
4 files changed, 9 insertions, 15 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index fba8cd5..7525d50 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,11 @@
+2003-08-03 Tom Tromey <tromey@redhat.com>
+
+ * java-tree.h (METHOD_TRANSIENT): Removed.
+ * decl.c (pushdecl): Removed some dead code.
+ * class.c (get_access_flags_from_decl): Can't have transient
+ method.
+ (add_method_1): Can't have a transient method.
+
2003-07-28 Andreas Jaeger <aj@suse.de>
* jvspec.c: Convert to ISO C90 prototypes.
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 582183d..fbec8d0 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -617,7 +617,6 @@ add_method_1 (tree this_class, int access_flags, tree name, tree function_type)
METHOD_FINAL (fndecl) = DECL_INLINE (fndecl) = 1;
if (access_flags & ACC_SYNCHRONIZED) METHOD_SYNCHRONIZED (fndecl) = 1;
if (access_flags & ACC_ABSTRACT) METHOD_ABSTRACT (fndecl) = 1;
- if (access_flags & ACC_TRANSIENT) METHOD_TRANSIENT (fndecl) = 1;
if (access_flags & ACC_STRICT) METHOD_STRICTFP (fndecl) = 1;
return fndecl;
}
@@ -1033,8 +1032,6 @@ get_access_flags_from_decl (tree decl)
access_flags |= ACC_NATIVE;
if (METHOD_ABSTRACT (decl))
access_flags |= ACC_ABSTRACT;
- if (METHOD_TRANSIENT (decl))
- access_flags |= ACC_TRANSIENT;
if (METHOD_STRICTFP (decl))
access_flags |= ACC_STRICT;
return access_flags;
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index a447d24..c1cebd8 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1014,9 +1014,6 @@ pushdecl (tree x)
DECL_CONTEXT (x) = current_function_decl;
if (name)
{
- const char *file;
- int line;
-
t = lookup_name_current_level (name);
if (t != 0 && t == error_mark_node)
/* error_mark_node is 0 for a while during initialization! */
@@ -1026,12 +1023,6 @@ pushdecl (tree x)
&DECL_SOURCE_LOCATION (x), x);
}
- if (t != 0)
- {
- file = DECL_SOURCE_FILE (t);
- line = DECL_SOURCE_LINE (t);
- }
-
/* If we're naming a hitherto-unnamed type, set its TYPE_NAME
to point to the TYPE_DECL.
Since Java does not have typedefs, a type can only have
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h
index 0c7cf75..be591d9 100644
--- a/gcc/java/java-tree.h
+++ b/gcc/java/java-tree.h
@@ -109,8 +109,7 @@ struct JCF;
LABEL_IS_SUBR_START (in LABEL_DECL)
CLASS_ABSTRACT (in TYPE_DECL)
FIELD_TRANSIENT (in FIELD_DECL)
- 6: METHOD_TRANSIENT (in FUNCTION_DECL)
- LABEL_CHANGED (in LABEL_DECL)
+ 6: LABEL_CHANGED (in LABEL_DECL)
CLASS_SUPER (in TYPE_DECL, ACC_SUPER flag)
FIELD_LOCAL_ALIAS (in FIELD_DECL)
7: DECL_CONSTRUCTOR_P (in FUNCTION_DECL).
@@ -1308,7 +1307,6 @@ extern void init_resource_processing (void);
#define METHOD_SYNCHRONIZED(DECL) DECL_LANG_FLAG_4 (DECL)
#define METHOD_NATIVE(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.native)
#define METHOD_ABSTRACT(DECL) DECL_LANG_FLAG_5 (DECL)
-#define METHOD_TRANSIENT(DECL) DECL_LANG_FLAG_6 (DECL)
#define METHOD_STRICTFP(DECL) (DECL_LANG_SPECIFIC (DECL)->u.f.strictfp)
#define JAVA_FILE_P(NODE) TREE_LANG_FLAG_2 (NODE)