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: Vladimir Vissoultchev
Subject: Re: [Tinycc-devel] tcc(1) from current [mob] doesn't recognize "const" attribute suffix
Date: Wed, 16 Mar 2016 16:32:42 +0200

>   -   if ((ccp->cc_pass = urlp->url_pass).s != NULL)
>  +   ccp->cc_pass = urlp->url_pass;
>  +   if (ccp->cc_pass.s != NULL)
>         goto jleave;

This must be have been fixed in mob (at some point) as I used to get "lvalue
expected" with 0.9.25 on similar failing snippet

#include <stdio.h>

typedef struct IRType1 { uint8_t irt; } IRType1;
typedef union IRIns { IRType1 t; } IRIns;

void main() {
    IRIns a = { { 123 } };
    IRIns b = { { 45 } };
    uint8_t irt = (a.t = b.t).irt;             <--- here
    printf("%d %d %d\n", a.t.irt, b.t.irt, irt);
}

Result: 45 45 45

. . . but mob compiles it ok and produces correct results.

cheers,
</wqw>




reply via email to

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