[Top][All Lists]

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

Re: [Tinycc-devel] tcc: x86_64-gen.c:452 assertion

From: Herman ten Brugge
Subject: Re: [Tinycc-devel] tcc: x86_64-gen.c:452 assertion
Date: Sat, 8 Aug 2020 18:07:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

To make the test code work some more things needed to change (see attachment).
There are test failures. I still have to figure out why these happen.


On 2020-08-08 15:55, Herman ten Brugge wrote:
Can you try tcc patch below.
I also had to add some libraries to radare2. See patch below.


diff --git a/tccgen.c b/tccgen.c
index cd236fd..d0448ce 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2093,7 +2093,7 @@ static int adjust_bf(SValue *sv, int bit_pos, int bit_size)
         return 0;
     t = sv->type.ref->auxtype;
     if (t != -1 && t != VT_STRUCT) {
-        sv->type.t = (sv->type.t & ~VT_BTYPE) | t;
+        sv->type.t = (sv->type.t & ~(VT_BTYPE | VT_LONG)) | t;
         sv->r |= VT_LVAL;
     return t;

diff --git a/libr/bin/Makefile b/libr/bin/Makefile
index 4a30278e7..d88a333cf 100644
--- a/libr/bin/Makefile
+++ b/libr/bin/Makefile
@@ -2,7 +2,7 @@ include ../config.mk
 include ../../global.mk

-R2DEPS=r_util r_io r_socket r_magic r_hash r_syscall
+R2DEPS=r_util r_io r_socket r_magic r_hash r_syscall r_cons

 .PHONY: pre

diff --git a/libr/egg/Makefile b/libr/egg/Makefile
index e38169c07..67d288ebf 100644
--- a/libr/egg/Makefile
+++ b/libr/egg/Makefile
@@ -1,7 +1,7 @@
 include ../config.mk

-R2DEPS=r_asm r_syscall r_util r_parse r_reg
+R2DEPS=r_asm r_syscall r_util r_parse r_reg r_lang
 R2DEPS+=r_flag r_cons

 OBJS=egg.o egg_lang.o
diff --git a/libr/fs/Makefile b/libr/fs/Makefile
index d57e5a207..92dc0dcbb 100644
--- a/libr/fs/Makefile
+++ b/libr/fs/Makefile
@@ -1,5 +1,5 @@
-R2DEPS=r_util r_io
+R2DEPS=r_util r_io r_cons r_socket
 CFLAGS+=-DR2_PLUGIN_INCORE -Iarch/include -Iarch


On 2020-08-08 11:35, XVilka Haos of System wrote:
Dear tcc developers,
we are trying to build radare2 with a recent tcc from git and get this error:

tcc: x86_64-gen.c:452: load: Assertion `((ft & VT_BTYPE) == VT_INT) ||
((ft & VT_BTYPE) == VT_LLONG) || ((ft & VT_BTYPE) == VT_PTR) || ((ft &
VT_BTYPE) == VT_FUNC)' failed.

See the corresponding  PR in our repository

See full log here

Please take a look.

Kind regards,

Attachment: patch
Description: Text document

reply via email to

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