]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/tree.c
Merge with trunk.
[thirdparty/gcc.git] / gcc / cp / tree.c
index cb05633b24d7743ff2f2bea1ed87e80cea44c953..c3f57d1a2c2b99d69121ffb95a634d355641c6dc 100644 (file)
@@ -36,6 +36,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "hash-table.h"
 #include "gimple-expr.h"
 #include "gimplify.h"
+#include "wide-int.h"
 
 static tree bot_manip (tree *, int *, void *);
 static tree bot_replace (tree *, int *, void *);
@@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2)
   switch (code1)
     {
     case INTEGER_CST:
-      return TREE_INT_CST_LOW (t1) == TREE_INT_CST_LOW (t2)
-       && TREE_INT_CST_HIGH (t1) == TREE_INT_CST_HIGH (t2);
+      return wi::to_widest (t1) == wi::to_widest (t2);
 
     case REAL_CST:
       return REAL_VALUES_EQUAL (TREE_REAL_CST (t1), TREE_REAL_CST (t2));