diff options
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 18e3a4adb74..9c54015f1e8 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -581,8 +581,7 @@ hash_rtx (x, mode, create) the integers representing the constant. */ hash += (unsigned) code + (unsigned) GET_MODE (x); if (GET_MODE (x) != VOIDmode) - for (i = 2; i < GET_RTX_LENGTH (CONST_DOUBLE); i++) - hash += XWINT (x, i); + hash += real_hash (CONST_DOUBLE_REAL_VALUE (x)); else hash += ((unsigned) CONST_DOUBLE_LOW (x) + (unsigned) CONST_DOUBLE_HIGH (x)); |