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: Steffen Nurpmeso
Subject: Re: [Tinycc-devel] tcc(1) from current [mob] doesn't recognize "const" attribute suffix
Date: Thu, 24 Mar 2016 17:05:27 +0100
User-agent: s-nail v14.8.6-171-gc05ee4b

Hallo,

Michael Matz <address@hidden> wrote:
 |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.

Cool!  Yes i can confirm!

 |> And then [mob] crashes with
 |> 
 |>   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 --
you likely need to adjust some make variables on top of the mk.mk
file, i've placed all in question at the top of this file.
I still see

  address@hidden redux-4-tcc]$ make build
  make[1]: Entering directory '/home/sdaoden/src/x/redux-4-tcc'
  Building..
  . CC      : /home/sdaoden/usr/opt/tcc-mob/bin/tcc
  . CFLAGS  : -Wall -Wextra -pedantic -b -g  
  . INCS    : -I/home/sdaoden/usr/include -I/usr/local/include -I/usr/include 
  . LIBS    : -L/home/sdaoden/usr/lib -L/lib -L/usr/local/lib -L/usr/lib -lssl 
-lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lcurses 
    CC tty.c
  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
  mk.mk:108: recipe for target 'tty.o' failed
  make[1]: *** [tty.o] Error 134
  make[1]: Leaving directory '/home/sdaoden/src/x/redux-4-tcc'
  makefile:15: recipe for target 'build' failed
  make: *** [build] Error 2
  address@hidden redux-4-tcc]$ 

 |Ciao,

Ya.. Ciao! ^.^

--steffen

Attachment: redux-4-tcc.tar.xz
Description: Binary data


reply via email to

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