tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*


From: Edmund Grimley Evans
Subject: Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1.
Date: Fri, 6 Mar 2015 10:38:11 +0000

> On which archs "sizeof(long long) < sizeof(int)" ?

None, but that's not the point. In general it is not allowed to write
to one union member then read from another and I don't know of an
exception that covers this particular case. However, I think it is
allowed to memset a union to zero and read any integer from that
union. If you have access to the C standard you can perhaps
investigate further.



reply via email to

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