setting BI operands

Frank Ch. Eigler fche@redhat.com
Mon Nov 6 08:01:00 GMT 2000


Hi -

On Mon, Nov 06, 2000 at 08:55:53AM +1100, Ben Elliston wrote:
: No, it doesn't work as expected.  If I set a BI to the value of newc, I get
: the 8-bit value of newc, not a 0 or a 1.  This leads to unpredictable
: results when later interrogating cbit.

In other words, it is the use of a BI variable as an rvalue that is the
problem.  Perhaps the right approach then is to forbid coercion from BI
to *INT, or to define it formally (such as "int foo = ! ! bar;").

- FChE
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6BtXcVZbdDOm/ZT0RAgjLAJ9JndvAeb/QNm5NcA+bQUcdJEkweQCeOi7X
eT4eccAwiq0mFdV6vkzbf4A=
=6DWz
-----END PGP SIGNATURE-----


More information about the Cgen mailing list