Commit 7d3d8206 by Markus Trippelsdorf Committed by Markus Trippelsdorf

Fix part of PR78555 - gcc/real.c:2890:25: runtime error: left shift of negative value -125

	PR ipa/78555
	* real.c (real_hash): Add cast to avoid left
	shifting of negative values.

From-SVN: r243012
parent 35323bd8
2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
PR ipa/78555
* real.c (real_hash): Add cast to avoid left
shifting of negative values.
2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/78362
......@@ -2887,7 +2887,7 @@ real_hash (const REAL_VALUE_TYPE *r)
return h;
case rvc_normal:
h |= REAL_EXP (r) << 3;
h |= (unsigned int)REAL_EXP (r) << 3;
break;
case rvc_nan:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment