tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Zeroing stack variables CValue


From: grischka
Subject: Re: [Tinycc-devel] Zeroing stack variables CValue
Date: Fri, 04 Apr 2014 20:29:28 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Michael Matz wrote:
Thanks. While it doesn't crash for me on x86-64 (with rev aa561d70, i.e. before your memset patch) I do see the wrong vset flowing into init_putv; it's unary(), case TOK_LAND, which does

        vset(&s->type, VT_CONST | VT_SYM, 0);
        vtop->sym = s;

Using
         vpushsym(&s->type, s);
instead of the two lines above seems to fix it.

Also I renamed the CValue member "void *ptr" to "addr_t ptr_offset"
and started to use that in some obvious places.  This could help
avoiding target size confusions.

Also: __attribute__ ((noreturn)): gnuism

http://repo.or.cz/w/tinycc.git/commitdiff/5879c854fb94f722a7ffdd4e895c9ce418548959

Thanks,

--- grischka

Ciao,
Michael.




reply via email to

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