* error.c (dump_type): Be more helpful about VECTOR_TYPE.
From-SVN: r49505
This commit is contained in:
parent
2c79137a49
commit
d8a6f584c5
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-02-05 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* error.c (dump_type): Be more helpful about VECTOR_TYPE.
|
||||||
|
|
||||||
2002-02-04 Jakub Jelinek <jakub@redhat.com>
|
2002-02-04 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
|
* semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
|
||||||
|
|
|
@ -382,7 +382,14 @@ dump_type (t, flags)
|
||||||
|
|
||||||
case VECTOR_TYPE:
|
case VECTOR_TYPE:
|
||||||
output_add_string (scratch_buffer, "vector ");
|
output_add_string (scratch_buffer, "vector ");
|
||||||
dump_type (TREE_TYPE (t), flags);
|
{
|
||||||
|
/* The subtype of a VECTOR_TYPE is something like intQI_type_node,
|
||||||
|
which has no name and is not very useful for diagnostics. So
|
||||||
|
look up the equivalent C type and print its name. */
|
||||||
|
tree elt = TREE_TYPE (t);
|
||||||
|
elt = type_for_mode (TYPE_MODE (elt), TREE_UNSIGNED (elt));
|
||||||
|
dump_type (elt, flags);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case INTEGER_TYPE:
|
case INTEGER_TYPE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue