On 22.05.2025 17:29, Herman ten Brugge via Tinycc-devel wrote:
On 5/11/25 23:11, Lino Mastrodomenico wrote:
Hi all,

TCC semantics for the __attribute__((cleanup)) implementation are
different from GCC and Clang.
[...]

I pushed a fix for this.

     Herman

I'd think we better don't switch those statements

    leave_scope(root_scope);
    if (b)
        gfunc_return(&func_vt);

and instead save only the cleanup symbol, specifically if it is
a SValue on vstack. See
https://repo.or.cz/tinycc.git/commitdiff/83de532563c6d922c6262dea757a22cb90d06101

--- gr

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to