diff options
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index e313df9..4d09b2c 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -4007,7 +4007,9 @@ verify_gimple_assign_binary (gassign *stmt) { if (!POINTER_TYPE_P (rhs1_type) || !POINTER_TYPE_P (rhs2_type) - || !types_compatible_p (rhs1_type, rhs2_type) + /* Because we special-case pointers to void we allow difference + of arbitrary pointers with the same mode. */ + || TYPE_MODE (rhs1_type) != TYPE_MODE (rhs2_type) || TREE_CODE (lhs_type) != INTEGER_TYPE || TYPE_UNSIGNED (lhs_type) || TYPE_PRECISION (lhs_type) != TYPE_PRECISION (rhs1_type)) |