Open spytheman opened 1 year ago
It seems working to me. Can you check it again?
yep, the problem remains with latest V 0.3.2 9b28a7a:
#0 20:14:17 ᛋ master /v/vclean❱./v version
V 0.3.2 9b28a7a
#0 20:14:23 ᛋ master /v/vclean❱./v -cc gcc run zz.v
[zz.v:16] app: &App{
aidx: 0
idx: 0
}
[zz.v:22] app: &App{
aidx: 1000000
idx: 669888
}
#0 20:14:28 ᛋ master /v/vclean❱
#0 20:14:28 ᛋ master /v/vclean❱./v -cc tcc run zz.v
[zz.v:16] app: &App{
aidx: 0
idx: 0
}
[zz.v:22] app: &App{
aidx: 921126
idx: 932339
}
#0 20:14:32 ᛋ master /v/vclean❱
tcc does not support atomic operations. it just parses it.
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg i.v
What did you expect to see?
The second dump should show
aidx: 1000000
with tcc too. It does with gcc and clang.What did you see instead?