diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2014-10-13 09:00:12 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2014-10-13 09:00:12 +0200 |
commit | 1915258c8b2cd2e171bbce93658047a765232bc9 (patch) | |
tree | 2f4e5d6acf77a0bc30c9816394a65f868c39a6c0 /Makefile | |
parent | 8d2a0c12b27e82c67acc2693ecd6f1e2fede3b88 (diff) | |
download | compcert-1915258c8b2cd2e171bbce93658047a765232bc9.tar.gz compcert-1915258c8b2cd2e171bbce93658047a765232bc9.zip |
Revised translation of '&&' and '||' to Clight.
The previous translation (in SimplExpr) produced references to the
same temporary variable with two different types (bool and int),
which is not nice if we want to typecheck the generated Clight.
The new translation avoids this and also gets rid of the double
cast to bool then to int. The trick is to change Eparen
(in CompCert C expressions) to take two types: the type to which the
argument must be converted, and the type with which the resulting
expression is seen.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions