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
This commit is contained in:
Markus Trippelsdorf 2016-11-30 12:22:55 +00:00 committed by Markus Trippelsdorf
parent 35323bd865
commit 7d3d820693
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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: