[Bug middle-end/64111] [5.0 regression] ICE: conversion of register to a different size

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 1 10:30:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64111

--- Comment #18 from Richard Biener <rguenth at gcc dot gnu.org> ---
I've posted a patch for trunk.  The following patch for the 4.8 branch fixes
the testcase:

Index: gcc/tree.c
===================================================================
--- gcc/tree.c  (revision 218016)
+++ gcc/tree.c  (working copy)
@@ -1130,7 +1130,7 @@ int_cst_hash_hash (const void *x)
   const_tree const t = (const_tree) x;

   return (TREE_INT_CST_HIGH (t) ^ TREE_INT_CST_LOW (t)
-         ^ htab_hash_pointer (TREE_TYPE (t)));
+         ^ TYPE_UID (TREE_TYPE (t)));
 }

 /* Return nonzero if the value represented by *X (an INTEGER_CST tree node)



More information about the Gcc-bugs mailing list