tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Tinycc-devel Digest, Vol 134, Issue 18


From: jiang
Subject: Re: [Tinycc-devel] Tinycc-devel Digest, Vol 134, Issue 18
Date: Mon, 23 Jun 2014 01:43:08 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

revert vstore()
commit f26fdaefd8b35489f26462992010b9ecd76d8fe3

Thank grischka for letting me know the error

hello grischka

jiang    Let init_putz one-time generation
http://repo.or.cz/w/tinycc.git/commitdiff/d316836008f4738d5a020b28aa33e96a82a81aca
- may crash the compiler (see gcc warning)
- too risky, anyway
Please advise, how do you analyze, test source it?


jiang

于 2014年06月23日 00:00, address@hidden 写道:
jiang wrote:
/* bitfield store handling */
+ SValue tmp;
+ tmp = vtop[0];
[...]
+ vtop--;
+ vpushv(&tmp);


This is still not a solution. See

#include <stdio.h>
int main(int argc, char **argv)
{
struct {
unsigned a:9, b:5, c:7;
} _s, *s = &_s;
int n = 250;

s->a = s->b = s->c = n + 4;
printf("--> %d / %d / %d\n", s->a, s->b, s->c);
return 0;
}
--> 432 / 16 / 126

gcc & msvc:
--> 30 / 30 / 126
tcc release_0_9_26
--> 254 / 30 / 126

FWIW, the line above is the reason why I'm trying to investigate
this. Let's see if Mr. jiang can come up with something useful
(and how long it will take).

-- gr


reply via email to

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