tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] 111_conversion.c with bounds checking


From: Herman ten Brugge
Subject: [Tinycc-devel] 111_conversion.c with bounds checking
Date: Tue, 10 Dec 2019 08:36:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

I still have one small problem with testcase 111_conversion.c

The problem is that it fails on i386.c (linux) when compiling with:
tcc 111_conversion.c -o 111_conversion -b
./111_conversion

I fixed this (and commited it in git) with the following patch in tccgen.c:

                if ((p->r2 & VT_VALMASK) < VT_CONST) {
                    size *= 2;
                    align *= 2;
                }

This is probably not correct and should be fixed some where else.
Can someone who understands tcc better help me with this.

Thanks,

    Herman



reply via email to

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