romcc: Don't fail on function prototypes
Instead, ignore them. One is as non-standard as the other and ignoring is more convenient since we don't need to guard prototypes with #ifndef __ROMCC_ all the time. Change-Id: I7be93a2ed0966ba1a86f0294132a204e6c8bf24f Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/2424 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martin.roth@se-eng.com> Reviewed-by: Marc Jones <marcj303@gmail.com>
This commit is contained in:
parent
70c85eab83
commit
11a7db3b57
|
@ -13465,7 +13465,8 @@ static struct triple *do_decl(struct compile_state *state,
|
||||||
internal_error(state, 0, "Undefined storage class");
|
internal_error(state, 0, "Undefined storage class");
|
||||||
}
|
}
|
||||||
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
|
if ((type->type & TYPE_MASK) == TYPE_FUNCTION) {
|
||||||
error(state, 0, "Function prototypes not supported");
|
// ignore function prototypes
|
||||||
|
return def;
|
||||||
}
|
}
|
||||||
if (ident &&
|
if (ident &&
|
||||||
((type->type & TYPE_MASK) == TYPE_ARRAY) &&
|
((type->type & TYPE_MASK) == TYPE_ARRAY) &&
|
||||||
|
|
Loading…
Reference in New Issue