various small layout corrections

This commit is contained in:
erikb
1986-04-28 09:56:33 +00:00
parent 4173e3c487
commit dd5b8dfabf
4 changed files with 28 additions and 22 deletions

View File

@@ -99,6 +99,11 @@ array_subscript(expr)
expr->VL_VALUE = (arith)1;
}
else
if (size == 0) {
warning("empty array declaration");
expr->VL_VALUE = (arith)-1;
}
else
if (size & ~max_unsigned) { /* absolute ridiculous */
expr_error(expr, "overflow in array size");
expr->VL_VALUE = (arith)1;