Commit 0e046453 by Tom Tromey Committed by Tom Tromey

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
parent 27a6ded9
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> 2003-07-28 Andreas Jaeger <aj@suse.de>
* jvspec.c: Convert to ISO C90 prototypes. * jvspec.c: Convert to ISO C90 prototypes.
......
...@@ -617,7 +617,6 @@ add_method_1 (tree this_class, int access_flags, tree name, tree function_type) ...@@ -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; METHOD_FINAL (fndecl) = DECL_INLINE (fndecl) = 1;
if (access_flags & ACC_SYNCHRONIZED) METHOD_SYNCHRONIZED (fndecl) = 1; if (access_flags & ACC_SYNCHRONIZED) METHOD_SYNCHRONIZED (fndecl) = 1;
if (access_flags & ACC_ABSTRACT) METHOD_ABSTRACT (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; if (access_flags & ACC_STRICT) METHOD_STRICTFP (fndecl) = 1;
return fndecl; return fndecl;
} }
...@@ -1033,8 +1032,6 @@ get_access_flags_from_decl (tree decl) ...@@ -1033,8 +1032,6 @@ get_access_flags_from_decl (tree decl)
access_flags |= ACC_NATIVE; access_flags |= ACC_NATIVE;
if (METHOD_ABSTRACT (decl)) if (METHOD_ABSTRACT (decl))
access_flags |= ACC_ABSTRACT; access_flags |= ACC_ABSTRACT;
if (METHOD_TRANSIENT (decl))
access_flags |= ACC_TRANSIENT;
if (METHOD_STRICTFP (decl)) if (METHOD_STRICTFP (decl))
access_flags |= ACC_STRICT; access_flags |= ACC_STRICT;
return access_flags; return access_flags;
......
...@@ -1014,9 +1014,6 @@ pushdecl (tree x) ...@@ -1014,9 +1014,6 @@ pushdecl (tree x)
DECL_CONTEXT (x) = current_function_decl; DECL_CONTEXT (x) = current_function_decl;
if (name) if (name)
{ {
const char *file;
int line;
t = lookup_name_current_level (name); t = lookup_name_current_level (name);
if (t != 0 && t == error_mark_node) if (t != 0 && t == error_mark_node)
/* error_mark_node is 0 for a while during initialization! */ /* error_mark_node is 0 for a while during initialization! */
...@@ -1026,12 +1023,6 @@ pushdecl (tree x) ...@@ -1026,12 +1023,6 @@ pushdecl (tree x)
&DECL_SOURCE_LOCATION (x), 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 /* If we're naming a hitherto-unnamed type, set its TYPE_NAME
to point to the TYPE_DECL. to point to the TYPE_DECL.
Since Java does not have typedefs, a type can only have Since Java does not have typedefs, a type can only have
......
...@@ -109,8 +109,7 @@ struct JCF; ...@@ -109,8 +109,7 @@ struct JCF;
LABEL_IS_SUBR_START (in LABEL_DECL) LABEL_IS_SUBR_START (in LABEL_DECL)
CLASS_ABSTRACT (in TYPE_DECL) CLASS_ABSTRACT (in TYPE_DECL)
FIELD_TRANSIENT (in FIELD_DECL) FIELD_TRANSIENT (in FIELD_DECL)
6: METHOD_TRANSIENT (in FUNCTION_DECL) 6: LABEL_CHANGED (in LABEL_DECL)
LABEL_CHANGED (in LABEL_DECL)
CLASS_SUPER (in TYPE_DECL, ACC_SUPER flag) CLASS_SUPER (in TYPE_DECL, ACC_SUPER flag)
FIELD_LOCAL_ALIAS (in FIELD_DECL) FIELD_LOCAL_ALIAS (in FIELD_DECL)
7: DECL_CONSTRUCTOR_P (in FUNCTION_DECL). 7: DECL_CONSTRUCTOR_P (in FUNCTION_DECL).
...@@ -1308,7 +1307,6 @@ extern void init_resource_processing (void); ...@@ -1308,7 +1307,6 @@ extern void init_resource_processing (void);
#define METHOD_SYNCHRONIZED(DECL) DECL_LANG_FLAG_4 (DECL) #define METHOD_SYNCHRONIZED(DECL) DECL_LANG_FLAG_4 (DECL)
#define METHOD_NATIVE(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.native) #define METHOD_NATIVE(DECL) (DECL_LANG_SPECIFIC(DECL)->u.f.native)
#define METHOD_ABSTRACT(DECL) DECL_LANG_FLAG_5 (DECL) #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 METHOD_STRICTFP(DECL) (DECL_LANG_SPECIFIC (DECL)->u.f.strictfp)
#define JAVA_FILE_P(NODE) TREE_LANG_FLAG_2 (NODE) #define JAVA_FILE_P(NODE) TREE_LANG_FLAG_2 (NODE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment