tinycc-devel
[Top][All Lists]
Advanced

[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: Thu, 24 Mar 2016 15:48:24 +0100 (CET)
User-agent: Alpine 2.20 (LSU 67 2015-01-07)

Hi,

On Wed, 16 Mar 2016, Steffen Nurpmeso wrote:

> So now with [mob] i face the problem that the "const" attribute
> results in "unknown struct/union/enum" error when used in the way
> i do, the uncommon suffix way, i.e., TYPE ATTRIBUTE PTR/REF NAME,
> as in "char const *myname", rather following Stroustrup i guess,
> defining the pointer to a constant type.  So we have
> 
>      struct htmlflt_tag const *hf_ign_tag;
> 
>   In file included from accmacvar.c:40:
>   nail.h:1598: error: unknown struct/union/enum

Fixed in mob.

>   struct htmlflt_tag;
>   ...
>      struct htmlflt_tag const *hf_ign_tag;
> 
> And then [mob] crashes with
> 
>   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: 20505 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

Can't reproduce, please provide a testcase.


Ciao,
Michael.



reply via email to

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