summaryrefslogtreecommitdiff
path: root/gcc/java/parse.h
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-12 18:19:04 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-12 18:19:04 +0000
commit9211ea9c58169927c60b0f9c0c0d73de56b877f0 (patch)
tree829080f77242a542fa4b3ead2a4d30e264856c16 /gcc/java/parse.h
parentf8688753666adb760e66c39e18fe8e2adf169942 (diff)
downloadgcc-9211ea9c58169927c60b0f9c0c0d73de56b877f0.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25733 138bc75d-0d04-0410-961f-82ee72b054a4
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 f917127577b..c78c5bb6807 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) \