aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/check-init.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1999-05-13 14:33:37 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>1999-05-13 07:33:37 -0700
commitce6e914727336e47ee2d336d13b1fc787342215d (patch)
tree8b33779181f3c705df69fddd4b380a96ae56cb2b /gcc/java/check-init.c
parent19ba816140b04fd28edfb4d25c5618f4fdec89bc (diff)
downloadgcc-ce6e914727336e47ee2d336d13b1fc787342215d.zip
gcc-ce6e914727336e47ee2d336d13b1fc787342215d.tar.gz
gcc-ce6e914727336e47ee2d336d13b1fc787342215d.tar.bz2
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 <apbianco@cygnus.com> * 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
Diffstat (limited to 'gcc/java/check-init.c')
-rw-r--r--gcc/java/check-init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c
index 33e7be0..071faf7 100644
--- a/gcc/java/check-init.c
+++ b/gcc/java/check-init.c
@@ -700,9 +700,6 @@ check_init (exp, before)
break;
default:
- /* It's OK to see that when doing xrefs. */
- if (TREE_CODE (exp) == TYPE_DECL && flag_emit_xref)
- break;
fatal ("internal error in check-init: tree code not implemented: %s",
tree_code_name [(int) TREE_CODE (exp)]);
}