diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-03-07 11:25:27 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2015-03-07 17:32:39 +0000 |
| commit | ac70e6b84040dc24a065013cdf30ff44d98cc670 (patch) | |
| tree | c3a6654bda699e940172a64a04d0f9bb5d0bcb6b /tests/tests2/61_undefined_enum.c | |
| parent | 916339347642b7b22d3cfa18bf5058ffbfe74679 (diff) | |
| download | tinycc-ac70e6b84040dc24a065013cdf30ff44d98cc670.tar.gz tinycc-ac70e6b84040dc24a065013cdf30ff44d98cc670.tar.bz2 | |
tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1.
More precisely, treat (0 << x) and so on as constant expressions, but
not if const_wanted as we do not want to allow "case (x*0):", ...
Do not optimise (0 / x) and (0 % x) here as x might be zero, though
for an architecture that does not generate an exception for division
by zero the back end might choose to optimise those.
Diffstat (limited to 'tests/tests2/61_undefined_enum.c')
0 files changed, 0 insertions, 0 deletions
