Gcc and msvc are correct.

-----Original Message-----
From: tinycc-devel-bounces+michael=theessentialexchange....@nongnu.org 
[mailto:tinycc-devel-bounces+michael=theessentialexchange....@nongnu.org] On 
Behalf Of jiang
Sent: Monday, July 28, 2014 9:37 PM
To: Thomas Preud'homme
Cc: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] 回复: tcc grammar problems

I am sorry, I do not have expressed good I mean. I want you sure, is tcc 
correct or gcc msvc correctly. If the gcc msvc correct, I want to fix it.

Best regards
Jiang

Thomas Preud'homme <robo...@celest.fr>编写:

>Le dimanche 13 juillet 2014, 22:12:39 jiang a écrit :
>> Hello everyone!
>> 
>> (s->a = (s->b = (s->c = n + 4)));
>> 
>> 
>> gcc & msvc:
>> --> 30 / 30 / 126 // Because the return value is left
>> 
>> 
>> tcc
>> --> 254 / 30 / 126 // Because the return is the right value
>
>Since it works for the last two values I don't think it's that. It 
>simply looks like tcc compute n + 4 (254) and then tries to store it in 
>each field independently. It's a folding issue. Tcc records 254 in a 
>CValue associated with the SValue for n + 4. The problem is how this is 
>propagated (folded) to the three field access.
>
>> 
>> Shall tcc assignment modify what? Same with gcc&msvc.
>
>Yes, gcc and msvc are definitely right here.
>
>Best regards,
>
>Thomas
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to