From ce6e914727336e47ee2d336d13b1fc787342215d Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Thu, 13 May 1999 14:33:37 +0000 Subject: check-init.c (check_init): Removed code accepting to see things falling through default:, when doing xrefs. Thu May 13 13:23:38 1999 Alexandre Petit-Bianco * check-init.c (check_init): Removed code accepting to see things falling through default:, when doing xrefs. * java-tree.h (do_not_fold): New global variable, declared. * parse.y (do_not_fold): New global variable, defined. (java_complete_expand_method): Set `do_not_fold' to the value of `flag_emit_xref'. When doing xrefs: copy the thrown exceptions, and reinstall them after them have been purged; do not check for initializations; do not issue missing return errors. (java_complete_lhs): Do not attempt to patch INSTANCEOF_EXPR nodes when doing xrefs. (patch_binop): Skip the fold part when doing xrefs. (build_string_concatenation): Skip the concatenation part when doing xrefs. (patch_synchronized_statement): Do not generate a try-finally when doing xrefs. (patch_throw_statement): When doing xrefs, do not call BUILD_THROW and keep the location where the throw was seen. * typeck.c (convert): When `do_not_fold' is set, do not attempt any treatment on the converted node an simply return a NOP_EXPR of the targeted type. * xref.c (xref_get_data): New function, defined. * xref.h (xref_get_data): New function, declared. (XREF_GET_DATA): Use xref_get_data. From-SVN: r26926 --- gcc/java/xref.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/java/xref.h') diff --git a/gcc/java/xref.h b/gcc/java/xref.h index e3901fe..042122b 100644 --- a/gcc/java/xref.h +++ b/gcc/java/xref.h @@ -27,6 +27,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ int xref_flag_value PROTO ((char *)); void expand_xref PROTO ((tree)); void xref_set_data PROTO ((int, void *)); +void *xref_get_data PROTO ((int)); /* flag_emit_xref range of possible values. */ @@ -43,4 +44,4 @@ typedef struct { void *data; /* Placeholder for additional data */ } xref_flag_table; -#define XREF_GET_DATA(FLAG, T) ((T)xref_table [(FLAG)-1].data) +#define XREF_GET_DATA(FLAG, T) ((T)xref_get_data (FLAG)) -- cgit v1.1