re PR debug/51746 (Segfault in cselib_preserved_value_p)

PR debug/51746
* cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.

From-SVN: r182963
This commit is contained in:
Alexandre Oliva 2012-01-06 20:20:55 +00:00 committed by Alexandre Oliva
parent 09228fefca
commit 7483eef82a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-01-06 Alexandre Oliva <aoliva@redhat.com>
PR debug/51746
* cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
2012-01-06 Arnaud Charlet <charlet@adacore.com>
* c-decl.c (ext_block): Moved up.

View File

@ -1020,6 +1020,10 @@ cselib_hash_rtx (rtx x, int create, enum machine_mode memmode)
switch (code)
{
case VALUE:
e = CSELIB_VAL_PTR (x);
return e->hash;
case MEM:
case REG:
e = cselib_lookup (x, GET_MODE (x), create, memmode);