tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] VLAs broken on mob branch


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] VLAs broken on mob branch
Date: Sat, 25 Apr 2015 07:39:53 +0300

Hi,
on x86 Linux a similar patch of the gfunc_call (i386-gen.c) leads to
the hang on the test3.
It looks that

@@ -5458,6 +5459,7 @@ static void decl_initializer(CType *type,
Section *sec, unsigned long c,

         vla_runtime_type_size(type, &a);
         gen_vla_alloc(type, a);
+        vla_sp_save();
         vset(type, VT_LOCAL|VT_LVAL, c);
         vswap();
         vstore();

is enough to fix a problem.  All other changes are to simplify a code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]