aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.h
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-07-07 06:36:14 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-07-06 23:36:14 -0700
commit0c2b81459e5e8aa3d34f5deb4cc150a1ee8ee779 (patch)
tree9c3743be4380c260fc213732a10aaa7f6976cf6f /gcc/java/parse.h
parent98a52c2ccf0f7c28c910a2bc17d0e97ff9f28bdb (diff)
downloadgcc-0c2b81459e5e8aa3d34f5deb4cc150a1ee8ee779.zip
gcc-0c2b81459e5e8aa3d34f5deb4cc150a1ee8ee779.tar.gz
gcc-0c2b81459e5e8aa3d34f5deb4cc150a1ee8ee779.tar.bz2
[multiple changes]
2000-07-06 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (BUILD_PTR_FROM_NAME): Surround with a do/while construct. * parse.y (find_as_inner_class): Fixed typo. (do_resolve_class): Explore enclosing contexts when searching for innerclasses. Removed curly brackets around BUILD_PTR_FROM_NAME. (check_inner_class_access): Check `decl' which can be null in case of previous errors. 2000-07-05 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h (java_debug_context): Declared `extern.' (safe_layout_class): Likewise. * parse.y (resolve_field_access): Field must be `static' in order to be replaced by its initial value. Added comments. (find_applicable_accessible_methods_list): Fixed typo. (find_most_specific_methods_list): Methods found in innerclasses take over methods founds in the enclosing contexts. (java_complete_tree): Loosen restrictions on the type of DECLs that can be replaced by their initialization values. (valid_ref_assignconv_cast_p): Removed call to `enclosing_context_p.' (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00184.html) From-SVN: r34895
Diffstat (limited to 'gcc/java/parse.h')
-rw-r--r--gcc/java/parse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/parse.h b/gcc/java/parse.h
index 45573fb..687dc95 100644
--- a/gcc/java/parse.h
+++ b/gcc/java/parse.h
@@ -156,10 +156,10 @@ extern tree stabilize_reference PARAMS ((tree));
/* Quickly build a temporary pointer on hypothetical type NAME. */
#define BUILD_PTR_FROM_NAME(ptr, name) \
- { \
+ do { \
ptr = build (POINTER_TYPE, NULL_TREE); \
TYPE_NAME (ptr) = name; \
- }
+ } while (0)
#define INCOMPLETE_TYPE_P(NODE) \
((TREE_CODE (NODE) == POINTER_TYPE) \