diff --git a/tccgen.c b/tccgen.c index beb88af1..a4897f66 100644 --- a/tccgen.c +++ b/tccgen.c @@ -4863,6 +4863,7 @@ static void decl_initializer(CType *type, Section *sec, unsigned long c, CType *t1; if (type->t & VT_VLA) { +#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64 int a; CValue retcval; @@ -4877,6 +4878,9 @@ static void decl_initializer(CType *type, Section *sec, unsigned long c, vswap(); vstore(); vpop(); +#else + error("variable length arrays unsupported for this target"); +#endif } else if (type->t & VT_ARRAY) { s = type->ref; n = s->c;