|
From: | jiang |
Subject: | Re: [Tinycc-devel] State of the tcc project |
Date: | Thu, 19 Jun 2014 12:37:28 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
jiang int main()index fcd1b8c..0451d9f 100644 --- a/tccgen.c +++ b/tccgen.c @@ -2690,6 +2690,8 @@ void vstore(void) } /* leave source on stack */ } else if (ft & VT_BITFIELD) { + SValue tmp; + tmp = vtop[-1]; /* bitfield store handling */ bit_pos = (ft >> VT_STRUCT_SHIFT) & 0x3f; bit_size = (ft >> (VT_STRUCT_SHIFT + 6)) & 0x3f; @@ -2727,6 +2729,7 @@ void vstore(void) gen_op('|'); /* store result */ vstore(); + vtop[0] = tmp; } else { #ifdef CONFIG_TCC_BCHECK /* bound check case */ Thank you, tell me bug This patch can solve the problem address@hidden:~/test$ ./tcct -run c3.c 3 / 3 / 3 To add compiler directives, did not write clearlyjiang restore 2dd8587c2f32d17a2cd0443a60a614a3fa9bbe29 jiang |
[Prev in Thread] | Current Thread | [Next in Thread] |