Your code change made the bounds-checking code 30% slower.
The __bound_local_new/__bound_local_delete is now called for every function.
There was an optimization to call it only when lbounds_section was used in a function.

Regards,

    Herman


On 2020-01-19 12:06, grischka wrote:
Herman ten Brugge wrote:
I need only 1. I modified the code. See attached patch.

I don't think so.

Basically, in tinycc, before you add new code, always try if you
can solve the problem by just removing old code first.

(Also, please don't make changes to existing code without any
comments, unless really obvious for everybody).

Anyway, should work now. See
https://repo.or.cz/tinycc.git/commitdiff/d79e1dee

Btw, there seems to be a bug in the sym-version code that crashes
tcc when it tries to link with a .so, for example:

    echo "void f() {}" | tcc - -shared -o a.so
    echo "main() {}" | tcc - a.so
    <segmentation fault>

I cannot reproduce this. I checkout a fresh copy and see no problem.
I use Fedora 31 with all updates.

see for example
  https://gitlab.com/giomasce/tinycc/-/jobs/408014593

 +./a.exe: error while loading shared libraries: ./a1.so: unsupported version
   25960 of Verneed record

--- grischka


Regards,

    Herman



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

Reply via email to