From ed5cd5bc7132cd6d32f0e370d91ee6b380389c82 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 14 Jul 2017 09:44:33 +0200 Subject: Remove Java references in source code. 2017-07-14 Martin Liska * 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 --- gcc/dwarf2out.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index ea50380..72d2c58 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -5049,16 +5049,6 @@ is_cxx (const_tree decl) return is_cxx (); } -/* Return TRUE if the language is Java. */ - -static inline bool -is_java (void) -{ - unsigned int lang = get_AT_unsigned (comp_unit_die (), DW_AT_language); - - return lang == DW_LANG_Java; -} - /* Return TRUE if the language is Fortran. */ static inline bool @@ -10756,8 +10746,8 @@ output_pubname (dw_offset die_offset, pubname_entry *entry) case DW_TAG_enumerator: GDB_INDEX_SYMBOL_KIND_SET_VALUE(flags, GDB_INDEX_SYMBOL_KIND_VARIABLE); - if (!is_cxx () && !is_java ()) - GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, 1); + if (!is_cxx ()) + GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, 1); break; case DW_TAG_subprogram: GDB_INDEX_SYMBOL_KIND_SET_VALUE(flags, @@ -10785,7 +10775,7 @@ output_pubname (dw_offset die_offset, pubname_entry *entry) case DW_TAG_union_type: case DW_TAG_enumeration_type: GDB_INDEX_SYMBOL_KIND_SET_VALUE(flags, GDB_INDEX_SYMBOL_KIND_TYPE); - if (!is_cxx () && !is_java ()) + if (!is_cxx ()) GDB_INDEX_SYMBOL_STATIC_SET_VALUE(flags, 1); break; default: @@ -19830,7 +19820,6 @@ lower_bound_default (void) case DW_LANG_C_plus_plus_14: case DW_LANG_ObjC: case DW_LANG_ObjC_plus_plus: - case DW_LANG_Java: return 0; case DW_LANG_Fortran77: case DW_LANG_Fortran90: @@ -23550,8 +23539,6 @@ gen_compile_unit_die (const char *filename) language = DW_LANG_Fortran08; } } - else if (strcmp (language_string, "GNU Java") == 0) - language = DW_LANG_Java; else if (strcmp (language_string, "GNU Objective-C") == 0) language = DW_LANG_ObjC; else if (strcmp (language_string, "GNU Objective-C++") == 0) -- cgit v1.1