r218977 - in /trunk/gcc: jit/ChangeLog jit/jit-...

dmalcolm@gcc.gnu.org dmalcolm@gcc.gnu.org
Fri Dec 19 20:34:00 GMT 2014


Author: dmalcolm
Date: Fri Dec 19 20:34:39 2014
New Revision: 218977

URL: https://gcc.gnu.org/viewcvs?rev=218977&root=gcc&view=rev
Log:
Fix casting non-"int" to bool.

gcc/jit/ChangeLog:
	* jit-playback.c (gcc::jit::playback::context::build_cast): In
	case BOOLEAN_TYPE, don't assume that the source expression is
	of type "int".

gcc/testsuite/ChangeLog:
	* jit.dg/test-expressions.c (make_tests_of_casts): Add tests of
	casting between "long" and "bool".
	(verify_casts): Verify these new test cases.


Modified:
    trunk/gcc/jit/ChangeLog
    trunk/gcc/jit/jit-playback.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/jit.dg/test-expressions.c



More information about the Gcc-cvs mailing list