mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 21:09:47 +08:00
tree.def (FILE_TYPE): Removed.
gcc: * tree.def (FILE_TYPE): Removed. * typeclass.h (enum type_class): Removed file_type_class. * dwarf2out.c (is_base_type): Updated. (gen_type_die): Likewise. * dbxout.c (dbxout_type): Updated. * builtins.c (type_to_class): Updated. * tree.c (type_contains_placeholder_1): Updated. * config/sparc/sparc.c (sparc_type_code): Updated. * config/ia64/ia64.c (hfa_element_mode): Updated. * expr.c (count_type_elements): Updated. * stor-layout.c (layout_type): Updated. * tree-inline.c (remap_type): Updated. * tree-pretty-print.c (dump_generic_node): Updated. gcc/java: * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE. From-SVN: r97282
This commit is contained in:
parent
b131a44e3d
commit
5662a50dd8
@ -1,3 +1,19 @@
|
||||
2005-03-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* tree.def (FILE_TYPE): Removed.
|
||||
* typeclass.h (enum type_class): Removed file_type_class.
|
||||
* dwarf2out.c (is_base_type): Updated.
|
||||
(gen_type_die): Likewise.
|
||||
* dbxout.c (dbxout_type): Updated.
|
||||
* builtins.c (type_to_class): Updated.
|
||||
* tree.c (type_contains_placeholder_1): Updated.
|
||||
* config/sparc/sparc.c (sparc_type_code): Updated.
|
||||
* config/ia64/ia64.c (hfa_element_mode): Updated.
|
||||
* expr.c (count_type_elements): Updated.
|
||||
* stor-layout.c (layout_type): Updated.
|
||||
* tree-inline.c (remap_type): Updated.
|
||||
* tree-pretty-print.c (dump_generic_node): Updated.
|
||||
|
||||
2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
|
||||
|
||||
* builtins.c (expand_builtin_powi): Fix mode of
|
||||
|
@ -1,3 +1,7 @@
|
||||
2005-03-30 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
|
||||
|
||||
2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
|
||||
|
||||
* adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
|
||||
|
@ -6402,7 +6402,6 @@ gnat_substitute_in_type (tree t, tree f, tree r)
|
||||
|
||||
case OFFSET_TYPE:
|
||||
case METHOD_TYPE:
|
||||
case FILE_TYPE:
|
||||
case FUNCTION_TYPE:
|
||||
case LANG_TYPE:
|
||||
/* Don't know how to do these yet. */
|
||||
|
@ -1478,7 +1478,6 @@ type_to_class (tree type)
|
||||
case QUAL_UNION_TYPE: return union_type_class;
|
||||
case ARRAY_TYPE: return (TYPE_STRING_FLAG (type)
|
||||
? string_type_class : array_type_class);
|
||||
case FILE_TYPE: return file_type_class;
|
||||
case LANG_TYPE: return lang_type_class;
|
||||
default: return no_type_class;
|
||||
}
|
||||
|
@ -3348,7 +3348,7 @@ hfa_element_mode (tree type, bool nested)
|
||||
case VOID_TYPE: case INTEGER_TYPE: case ENUMERAL_TYPE:
|
||||
case BOOLEAN_TYPE: case CHAR_TYPE: case POINTER_TYPE:
|
||||
case OFFSET_TYPE: case REFERENCE_TYPE: case METHOD_TYPE:
|
||||
case FILE_TYPE: case LANG_TYPE: case FUNCTION_TYPE:
|
||||
case LANG_TYPE: case FUNCTION_TYPE:
|
||||
return VOIDmode;
|
||||
|
||||
/* Fortran complex types are supposed to be HFAs, so we need to handle
|
||||
|
@ -7727,7 +7727,6 @@ sparc_type_code (register tree type)
|
||||
case VECTOR_TYPE:
|
||||
case CHAR_TYPE: /* GNU Pascal CHAR type. Not used in C. */
|
||||
case BOOLEAN_TYPE: /* GNU Fortran BOOLEAN type. */
|
||||
case FILE_TYPE: /* GNU Pascal FILE type. */
|
||||
case LANG_TYPE: /* ? */
|
||||
return qualifiers;
|
||||
|
||||
|
@ -1932,11 +1932,6 @@ dbxout_type (tree type, int full)
|
||||
stabstr_S ("eFalse:0,True:1,;");
|
||||
break;
|
||||
|
||||
case FILE_TYPE:
|
||||
stabstr_C ('d');
|
||||
dbxout_type (TREE_TYPE (type), 0);
|
||||
break;
|
||||
|
||||
case COMPLEX_TYPE:
|
||||
/* Differs from the REAL_TYPE by its new data type number.
|
||||
R3 is NF_COMPLEX. We don't try to use any of the other NF_*
|
||||
|
@ -8016,7 +8016,6 @@ is_base_type (tree type)
|
||||
case METHOD_TYPE:
|
||||
case POINTER_TYPE:
|
||||
case REFERENCE_TYPE:
|
||||
case FILE_TYPE:
|
||||
case OFFSET_TYPE:
|
||||
case LANG_TYPE:
|
||||
case VECTOR_TYPE:
|
||||
@ -12110,12 +12109,6 @@ gen_type_die (tree type, dw_die_ref context_die)
|
||||
gen_ptr_to_mbr_type_die (type, context_die);
|
||||
break;
|
||||
|
||||
case FILE_TYPE:
|
||||
gen_type_die (TREE_TYPE (type), context_die);
|
||||
/* No way to represent these in Dwarf yet! */
|
||||
gcc_unreachable ();
|
||||
break;
|
||||
|
||||
case FUNCTION_TYPE:
|
||||
/* Force out return type (in case it wasn't forced out already). */
|
||||
gen_type_die (TREE_TYPE (type), context_die);
|
||||
|
@ -4522,7 +4522,6 @@ count_type_elements (tree type)
|
||||
|
||||
case VOID_TYPE:
|
||||
case METHOD_TYPE:
|
||||
case FILE_TYPE:
|
||||
case FUNCTION_TYPE:
|
||||
case LANG_TYPE:
|
||||
default:
|
||||
|
@ -1759,14 +1759,6 @@ layout_type (tree type)
|
||||
}
|
||||
break;
|
||||
|
||||
case FILE_TYPE:
|
||||
/* The size may vary in different languages, so the language front end
|
||||
should fill in the size. */
|
||||
TYPE_ALIGN (type) = BIGGEST_ALIGNMENT;
|
||||
TYPE_USER_ALIGN (type) = 0;
|
||||
TYPE_MODE (type) = BLKmode;
|
||||
break;
|
||||
|
||||
default:
|
||||
gcc_unreachable ();
|
||||
}
|
||||
|
@ -321,7 +321,6 @@ remap_type (tree type, inline_data *id)
|
||||
walk_tree (&TYPE_FIELDS (new), copy_body_r, id, NULL);
|
||||
break;
|
||||
|
||||
case FILE_TYPE:
|
||||
case OFFSET_TYPE:
|
||||
default:
|
||||
/* Shouldn't have been thought variable sized. */
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Pretty formatting of GENERIC trees in C syntax.
|
||||
Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
Adapted from c-pretty-print.c by Diego Novillo <dnovillo@redhat.com>
|
||||
|
||||
This file is part of GCC.
|
||||
@ -441,10 +441,6 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags,
|
||||
pp_string (buffer, "::");
|
||||
break;
|
||||
|
||||
case FILE_TYPE:
|
||||
NIY;
|
||||
break;
|
||||
|
||||
case ARRAY_TYPE:
|
||||
{
|
||||
tree tmp;
|
||||
|
@ -1908,7 +1908,6 @@ type_contains_placeholder_1 (tree type)
|
||||
case OFFSET_TYPE:
|
||||
case REFERENCE_TYPE:
|
||||
case METHOD_TYPE:
|
||||
case FILE_TYPE:
|
||||
case FUNCTION_TYPE:
|
||||
case VECTOR_TYPE:
|
||||
return false;
|
||||
|
@ -254,9 +254,6 @@ DEFTREECODE (FUNCTION_TYPE, "function_type", tcc_type, 0)
|
||||
includes the hidden argument for "self". */
|
||||
DEFTREECODE (METHOD_TYPE, "method_type", tcc_type, 0)
|
||||
|
||||
/* Used for Pascal; details not determined right now. */
|
||||
DEFTREECODE (FILE_TYPE, "file_type", tcc_type, 0)
|
||||
|
||||
/* This is a language-specific kind of type.
|
||||
Its meaning is defined by the language front end.
|
||||
layout_type does not know how to lay this out,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Type class enum
|
||||
Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GCC.
|
||||
|
||||
@ -39,7 +39,7 @@ enum type_class
|
||||
real_type_class, complex_type_class,
|
||||
function_type_class, method_type_class,
|
||||
record_type_class, union_type_class,
|
||||
array_type_class, string_type_class, file_type_class,
|
||||
array_type_class, string_type_class,
|
||||
lang_type_class
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user