aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index beb88af..a4897f6 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;