aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.h
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-03-12 10:19:04 -0800
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-03-12 10:19:04 -0800
commit2aa11e9772e5ffc892a8e5f9a169555fa5af1bef (patch)
tree829080f77242a542fa4b3ead2a4d30e264856c16 /gcc/java/parse.h
parent8084bf81c782ec5d2831db7fa576089ccb0c5d49 (diff)
downloadgcc-2aa11e9772e5ffc892a8e5f9a169555fa5af1bef.zip
gcc-2aa11e9772e5ffc892a8e5f9a169555fa5af1bef.tar.gz
gcc-2aa11e9772e5ffc892a8e5f9a169555fa5af1bef.tar.bz2
parse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR.
1999-03-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.y (java_stabilize_reference): Return NODE when patching a COMPOUND_EXPR. (java_complete_lhs): Put parenthesis around truth values. 1999-03-12 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (layout_class_method): Don't make rtl for interface methods. * parse.h (GET_TYPE_NAME): New macro. * parse.y (if_then_statement:): Fixed indentation. (if_then_else_statement:): Likewise. (for_statement:): Fixed spacing. (try_statement:): Fixed indentation. (create_interface): Don't force interfaces to be abstract. (method_header): Abstract methods are OK in interfaces. (declare_local_variables): Fixed typo in comment. (java_complete_expand_method): Fixed indentation. (resolve_qualified_expression_name): Use GET_TYPE_NAME to report non accessible fields. (java_stabilize_reference): New function. (java_complete_lhs): Fixed indentation. Use java_stabilize_reference in compound assignement. Insert the cast. If not processing `+' fix string constants before processing binop. From-SVN: r25733
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r--gcc/java/parse.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h
index f917127..c78c5bb 100644
--- a/gcc/java/parse.h
+++ b/gcc/java/parse.h
@@ -129,6 +129,13 @@ extern tree stabilize_reference PROTO ((tree));
(TREE_CODE (DECL_NAME (METHOD)) == EXPR_WITH_FILE_LOCATION ? \
EXPR_WFL_NODE (DECL_NAME (METHOD)) : DECL_NAME (METHOD))
+/* Get TYPE name string, regardless whether TYPE is a class or an
+ array. */
+#define GET_TYPE_NAME(TYPE) \
+ (TREE_CODE (TYPE_NAME (TYPE)) == IDENTIFIER_NODE ? \
+ IDENTIFIER_POINTER (TYPE_NAME (TYPE)) : \
+ IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (TYPE))))
+
/* Pedantic warning on obsolete modifiers. Note: when cl is NULL,
flags was set artificially, such as for a interface method */
#define OBSOLETE_MODIFIER_WARNING(cl, flags, modifier, format, arg) \