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:
parent
35323bd865
commit
7d3d820693
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user