diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-02-08 23:57:21 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-02-08 23:57:21 +0000 |
commit | 71d5938381e8e5d0ff736121ff55a3c2ec9605da (patch) | |
tree | 6521631fb7c31b9b19c0acb2b2cb077de5d84613 /gcc/dwarf2out.c | |
parent | 62b6fce6c778ac904aa9ce08e7cd89539ca31914 (diff) | |
download | gcc-71d5938381e8e5d0ff736121ff55a3c2ec9605da.zip gcc-71d5938381e8e5d0ff736121ff55a3c2ec9605da.tar.gz gcc-71d5938381e8e5d0ff736121ff55a3c2ec9605da.tar.bz2 |
tree.def (CHAR_TYPE): Remove.
* tree.def (CHAR_TYPE): Remove.
* dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
* dwarf2out.c (base_type_die, is_base_type): Likewise.
(gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
(gen_string_type_die): Delete unreachable function.
* tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
* tree.c (build_int_cst_wide, type_contains_placeholder_1,
type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
* tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
* builtins.c (type_to_class): Likewise.
* fold-const.c (fold_convert, build_range_check,
merge_ranges): Likewise.
* expr.c (count_type_elements): Likewise.
* c-pretty-print.c (pp_c_type_specifier): Likewise.
* stor-layout.c (layout_type): Likewise.
* ipa-type-escape.c (type_to_consider): Likewise.
* gimplify.c (omp_firstprivatize_type_sizes,
gimplify_type_sizes): Likewise.
* explow.c (promote_mode): Likewise.
* tree-sra.c (is_sra_scalar_type): Likewise.
* varasm.c (output_constant): Likewise.
* tree-inline.c (remap_type_1): Likewise.
* convert.c (convert_to_pointer, convert_to_real,
convert_to_integer, convert_to_complex): Likewise.
From-SVN: r110775
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 06e835b..fc82d1a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -4146,7 +4146,6 @@ static void gen_inlined_subroutine_die (tree, dw_die_ref, int); static void gen_field_die (tree, dw_die_ref); static void gen_ptr_to_mbr_type_die (tree, dw_die_ref); static dw_die_ref gen_compile_unit_die (const char *); -static void gen_string_type_die (tree, dw_die_ref); static void gen_inheritance_die (tree, tree, dw_die_ref); static void gen_member_die (tree, dw_die_ref); static void gen_struct_or_union_type_die (tree, dw_die_ref); @@ -8105,7 +8104,6 @@ base_type_die (tree type) switch (TREE_CODE (type)) { - case CHAR_TYPE: case INTEGER_TYPE: if (TYPE_STRING_FLAG (type)) { @@ -8201,7 +8199,6 @@ is_base_type (tree type) case REAL_TYPE: case COMPLEX_TYPE: case BOOLEAN_TYPE: - case CHAR_TYPE: return 1; case ARRAY_TYPE: @@ -12187,24 +12184,6 @@ gen_compile_unit_die (const char *filename) return die; } -/* Generate a DIE for a string type. */ - -static void -gen_string_type_die (tree type, dw_die_ref context_die) -{ - dw_die_ref type_die - = new_die (DW_TAG_string_type, scope_die_for (type, context_die), type); - - equate_type_number_to_die (type, type_die); - - /* ??? Fudge the string length attribute for now. - TODO: add string length info. */ -#if 0 - string_length_attribute (TYPE_MAX_VALUE (TYPE_DOMAIN (type))); - bound_representation (upper_bound, 0, 'u'); -#endif -} - /* Generate the DIE for a base class. */ static void @@ -12506,13 +12485,7 @@ gen_type_die (tree type, dw_die_ref context_die) break; case ARRAY_TYPE: - if (TYPE_STRING_FLAG (type) && TREE_CODE (TREE_TYPE (type)) == CHAR_TYPE) - { - gen_type_die (TREE_TYPE (type), context_die); - gen_string_type_die (type, context_die); - } - else - gen_array_type_die (type, context_die); + gen_array_type_die (type, context_die); break; case VECTOR_TYPE: @@ -12567,7 +12540,6 @@ gen_type_die (tree type, dw_die_ref context_die) case REAL_TYPE: case COMPLEX_TYPE: case BOOLEAN_TYPE: - case CHAR_TYPE: /* No DIEs needed for fundamental types. */ break; |