*** empty log message ***

From-SVN: r879
This commit is contained in:
Richard Stallman 1992-05-04 03:04:19 +00:00
parent dce838e17d
commit 0e51ef9b6a
1 changed files with 3 additions and 1 deletions

View File

@ -1147,7 +1147,6 @@ build_array_ref (array, index)
{
tree rval, type;
index = default_conversion (index);
if (index != error_mark_node
&& TREE_CODE (TREE_TYPE (index)) != INTEGER_TYPE)
{
@ -1165,6 +1164,9 @@ build_array_ref (array, index)
&& TYPE_MAIN_VARIANT (TREE_TYPE (index)) == char_type_node)
warning ("array subscript has type `char'");
/* Apply default promotions *after* noticing character types. */
index = default_conversion (index);
/* An array that is indexed by a non-constant
cannot be stored in a register; we must be able to do
address arithmetic on its address.