tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Preprocessor performance tuning


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] Preprocessor performance tuning
Date: Tue, 19 Apr 2016 11:05:18 +0300

Hi Vladimir Vissoultchev
> Just comitted the patch to mob. Before that fixed the failing test and split
> the patch in two so that the allocators could easily be reversed if problems
> crop up.

Just discovered on tccboot-2.4.37. After "Reduce allocations overhead"
compilation
craches. Where is it in the tcc code -- don't know. Even with MEM_DEBUG there
is no help from tcc.

CC=i386-tcc -D__GNUC__=2 -D__GNUC_MINOR__=95 -fold-struct-init-code -bench

step 1: compile & link
*** glibc detected *** i386-tcc: realloc(): invalid pointer: 0xb7071fcc ***
======= Backtrace: =========
/lib/libc.so.6[0xb7681d0e]
/lib/libc.so.6(realloc+0x286)[0xb7684a26]
i386-tcc[0x8068116]
i386-tcc[0x804967b]
i386-tcc[0x80496d0]
i386-tcc[0x804971b]
i386-tcc[0x8065659]
i386-tcc[0x80659db]
i386-tcc[0x8059914]
i386-tcc[0x8058efd]
i386-tcc[0x805b4a0]
i386-tcc[0x805b691]
i386-tcc[0x8068fd6]
i386-tcc[0x8069a7e]
i386-tcc[0x8069c8b]
i386-tcc[0x806bfea]
/lib/libc.so.6(__libc_start_main+0xe4)[0xb7631ff4]
i386-tcc[0x80491d1]
======= Memory map: ========
08048000-08074000 r-xp 00000000 00:13 34         /usr/local/bin/i386-tcc
08074000-08075000 r--p 0002b000 00:13 34         /usr/local/bin/i386-tcc
08075000-08076000 rw-p 0002c000 00:13 34         /usr/local/bin/i386-tcc
08076000-08088000 rw-p 00000000 00:00 0
09a69000-09db7000 rw-p 00000000 00:00 0          [heap]
b6cae000-b6eaf000 rw-p 00000000 00:00 0
b6f97000-b6f9f000 r-xp 00000000 00:13 7939
/usr/lib/gcc/i486-pc-linux-gnu/3.4.6/libgcc_s.so.1
b6f9f000-b6fa0000 r--p 00007000 00:13 7939
/usr/lib/gcc/i486-pc-linux-gnu/3.4.6/libgcc_s.so.1
b6fa0000-b6fa1000 rw-p 00008000 00:13 7939
/usr/lib/gcc/i486-pc-linux-gnu/3.4.6/libgcc_s.so.1
b6fb0000-b6ff1000 rw-p 00000000 00:00 0
b6ff2000-b7073000 rw-p 00000000 00:00 0



reply via email to

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