Catch non-static arrays in romcc. Not allowed.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5230 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
8e96ba2978
commit
8483b70ebf
|
@ -13473,6 +13473,10 @@ static struct triple *do_decl(struct compile_state *state,
|
||||||
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
|
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
|
||||||
error(state, 0, "Function prototypes not supported");
|
error(state, 0, "Function prototypes not supported");
|
||||||
}
|
}
|
||||||
|
if (ident &&
|
||||||
|
((type->type & TYPE_MASK) == TYPE_ARRAY) &&
|
||||||
|
((type->type & STOR_MASK) != STOR_STATIC))
|
||||||
|
error(state, 0, "non static arrays not supported");
|
||||||
if (ident &&
|
if (ident &&
|
||||||
((type->type & STOR_MASK) == STOR_STATIC) &&
|
((type->type & STOR_MASK) == STOR_STATIC) &&
|
||||||
((type->type & QUAL_CONST) == 0)) {
|
((type->type & QUAL_CONST) == 0)) {
|
||||||
|
|
Loading…
Reference in New Issue