diff options
author | Martin Liska <mliska@suse.cz> | 2017-07-14 09:44:33 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-07-14 07:44:33 +0000 |
commit | ed5cd5bc7132cd6d32f0e370d91ee6b380389c82 (patch) | |
tree | 2aa13fe489f32bbc342e80eaac83befdc9753e24 /gcc/tree.c | |
parent | 4f4b35a0a61ce83891b26ace7794b3213fef96a7 (diff) | |
download | gcc-ed5cd5bc7132cd6d32f0e370d91ee6b380389c82.zip gcc-ed5cd5bc7132cd6d32f0e370d91ee6b380389c82.tar.gz gcc-ed5cd5bc7132cd6d32f0e370d91ee6b380389c82.tar.bz2 |
Remove Java references in source code.
2017-07-14 Martin Liska <mliska@suse.cz>
* cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
* dwarf2out.c (is_java): Remove the function.
(output_pubname): Remove usage of the function.
(lower_bound_default): Remove usage of DW_LANG_Java.
(gen_compile_unit_die): Likewise.
* gcc.c: Remove compiler defaults for .java and .zip files.
* gimple-expr.c (remove_suffix): Change as there's no longer
extension than 4-letter one.
* gimplify.c (mostly_copy_tree_r): Remove Java-special part.
(gimplify_save_expr): Likewise.
* ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
as it's possible even for other languages than Java.
* langhooks.h (struct lang_hooks): Remove Java from a comment.
* lto-opts.c (lto_write_options): Remove reference to Java.
* opts.c (strip_off_ending): Update file extension handling.
* tree-cfg.c (verify_gimple_call): Remove comment with Java.
* tree-eh.c (lower_resx): Likewise.
* tree.c (free_lang_data_in_type): Remove dead code.
(find_decls_types_r): Likewise.
(build_common_builtin_nodes): Remove Java from a comment.
(verify_type): Remove dead code.
* varasm.c (assemble_external): Remove Java from a comment.
From-SVN: r250199
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 48 |
1 files changed, 2 insertions, 46 deletions
@@ -5162,8 +5162,6 @@ free_lang_data_in_type (tree type) /* C++ FE uses TREE_PURPOSE to store initial values. */ TREE_PURPOSE (p) = NULL; } - /* Java uses TYPE_MINVAL for TYPE_ARGUMENT_SIGNATURE. */ - TYPE_MINVAL (type) = NULL; } if (TREE_CODE (type) == METHOD_TYPE) { @@ -5174,8 +5172,6 @@ free_lang_data_in_type (tree type) /* C++ FE uses TREE_PURPOSE to store initial values. */ TREE_PURPOSE (p) = NULL; } - /* Java uses TYPE_MINVAL for TYPE_ARGUMENT_SIGNATURE. */ - TYPE_MINVAL (type) = NULL; } /* Remove members that are not actually FIELD_DECLs from the field @@ -5661,16 +5657,7 @@ find_decls_types_r (tree *tp, int *ws, void *data) tree tem; FOR_EACH_VEC_ELT (*BINFO_BASE_BINFOS (TYPE_BINFO (t)), i, tem) fld_worklist_push (TREE_TYPE (tem), fld); - tem = BINFO_VIRTUALS (TYPE_BINFO (t)); - if (tem - /* The Java FE overloads BINFO_VIRTUALS for its own purpose. */ - && TREE_CODE (tem) == TREE_LIST) - do - { - fld_worklist_push (TREE_VALUE (tem), fld); - tem = TREE_CHAIN (tem); - } - while (tem); + fld_worklist_push (BINFO_VIRTUALS (TYPE_BINFO (t)), fld); } if (RECORD_OR_UNION_TYPE_P (t)) { @@ -10799,7 +10786,7 @@ build_common_builtin_nodes (void) ECF_PURE | ECF_NOTHROW | ECF_LEAF); /* If there's a possibility that we might use the ARM EABI, build the - alternate __cxa_end_cleanup node used to resume from C++ and Java. */ + alternate __cxa_end_cleanup node used to resume from C++. */ if (targetm.arm_eabi_unwinder) { ftype = build_function_type_list (void_type_node, NULL_TREE); @@ -14029,15 +14016,6 @@ verify_type (const_tree t) TREE_TYPE (TYPE_MIN_VALUE (t)) but does not for C sizetypes in LTO. */ } - /* Java uses TYPE_MINVAL for TYPE_ARGUMENT_SIGNATURE. */ - else if (TYPE_MINVAL (t) - && ((TREE_CODE (t) != METHOD_TYPE && TREE_CODE (t) != FUNCTION_TYPE) - || in_lto_p)) - { - error ("TYPE_MINVAL non-NULL"); - debug_tree (TYPE_MINVAL (t)); - error_found = true; - } /* Check various uses of TYPE_MAXVAL. */ if (RECORD_OR_UNION_TYPE_P (t)) @@ -14109,14 +14087,6 @@ verify_type (const_tree t) debug_tree (TYPE_BINFO (t)); error_found = true; } - /* FIXME: Java builds invalid empty binfos that do not have - TREE_TYPE set. */ - else if (TREE_TYPE (TYPE_BINFO (t)) != TYPE_MAIN_VARIANT (t) && 0) - { - error ("TYPE_BINFO type is not TYPE_MAIN_VARIANT"); - debug_tree (TREE_TYPE (TYPE_BINFO (t))); - error_found = true; - } } else if (TYPE_LANG_SLOT_1 (t) && in_lto_p) { @@ -14271,20 +14241,6 @@ verify_type (const_tree t) error ("TYPE_STRING_FLAG is set on wrong type code"); error_found = true; } - else if (TYPE_STRING_FLAG (t)) - { - const_tree b = t; - if (TREE_CODE (b) == ARRAY_TYPE) - b = TREE_TYPE (t); - /* Java builds arrays with TYPE_STRING_FLAG of promoted_char_type - that is 32bits. */ - if (TREE_CODE (b) != INTEGER_TYPE) - { - error ("TYPE_STRING_FLAG is set on type that does not look like " - "char nor array of chars"); - error_found = true; - } - } /* ipa-devirt makes an assumption that TYPE_METHOD_BASETYPE is always TYPE_MAIN_VARIANT and it would be odd to add methods only to variatns |