[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tcc(1) from current [mob] doesn't recognize "const" a
From: |
Michael Matz |
Subject: |
Re: [Tinycc-devel] tcc(1) from current [mob] doesn't recognize "const" attribute suffix |
Date: |
Sat, 26 Mar 2016 18:00:41 +0100 (CET) |
User-agent: |
Alpine 2.20 (LSU 67 2015-01-07) |
Hi,
On Thu, 24 Mar 2016, Steffen Nurpmeso wrote:
|> tcc: x86_64-gen.c:421: load: Assertion `((ft & VT_BTYPE) == VT_IN\
|> T) || ((ft & VT_BTYPE) == VT_LLONG) || ((ft & VT_BTYPE) == VT_PTR\
|> ) || ((ft & VT_BTYPE) == VT_ENUM) || ((ft & VT_BTYPE) == VT_FUNC)\
|> ' failed.
|> /bin/sh: line 3: 20505 Aborted (core dumped) /hom\
|> e/sdaoden/usr/opt/tcc-mob/bin/tcc -Wall -Wextra -pedantic -b -g -\
|> I/home/sdaoden/usr/include -I/usr/local/include -I/usr/include -c tty.c
|
|Can't reproduce, please provide a testcase.
I still can. I'll attach a heavily vaporised variant of the
source in question, just run "make build" and it should happen --
...
tcc: x86_64-gen.c:421: load: Assertion `((ft & VT_BTYPE) == VT_INT) || ((ft & VT_BTYPE) ==
VT_LLONG) || ((ft & VT_BTYPE) == VT_PTR) || ((ft & VT_BTYPE) == VT_ENUM) || ((ft &
VT_BTYPE) == VT_FUNC)' failed.
/bin/sh: line 3: 22918 Aborted (core dumped)
/home/sdaoden/usr/opt/tcc-mob/bin/tcc -Wall -Wextra -pedantic -b -g
-I/home/sdaoden/usr/include -I/usr/local/include -I/usr/include -c tty.c
Thanks for the testcase. The problem is ideosyncratic use of volatile:
char c;
char volatile vc;
vc = c;
Here volatile doesn't make much sense, but tripped TCCs assertions.
Fixed in mob. Thanks again for the report.
Ciao,
Michael.