aboutsummaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-10-13 15:56:07 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-10-13 15:56:07 +0200
commite4fb38bd17c0df57ba0dde795cf31279e51e186c (patch)
treeee8539b8137186405c31fc7594e83afce4f4f338 /gcc/cselib.c
parentab6218f150a207398a27d1e8bbc0249ac8c03466 (diff)
downloadgcc-e4fb38bd17c0df57ba0dde795cf31279e51e186c.zip
gcc-e4fb38bd17c0df57ba0dde795cf31279e51e186c.tar.gz
gcc-e4fb38bd17c0df57ba0dde795cf31279e51e186c.tar.bz2
re PR target/41693 (RTL Check Failure in expand_debug_expr, at cfgexpand.c:2371)
PR target/41693 * rtl.h (DEBUG_EXPR_TREE_DECL): Define. * sched-vis.c (print_value): Use it. * cselib.c (cselib_hash_rtx): Likewise. * print-rtl.c (print_rtx): Likewise. * cfgexpand.c (expand_debug_rtx): Likewise. * var-tracking.c (vt_expand_loc_callback): Likewise. From-SVN: r152707
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index c26742d..2bf4662 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -705,7 +705,8 @@ cselib_hash_rtx (rtx x, int create)
return e->value;
case DEBUG_EXPR:
- hash += ((unsigned) DEBUG_EXPR << 7) + DEBUG_TEMP_UID (XTREE (x, 0));
+ hash += ((unsigned) DEBUG_EXPR << 7)
+ + DEBUG_TEMP_UID (DEBUG_EXPR_TREE_DECL (x));
return hash ? hash : (unsigned int) DEBUG_EXPR;
case CONST_INT: