aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-07-25 14:01:02 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-07-25 14:01:02 +0000
commit5c97e2de43942fc14fdae03b062465e04b82e6d1 (patch)
tree8abddc3e21ff52977a1396773b8d854e87fe17ce /gcc/tree-flow-inline.h
parent7fefc172f162bd38fd5e8de65ea645b418cf256f (diff)
downloadgcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.zip
gcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.tar.gz
gcc-5c97e2de43942fc14fdae03b062465e04b82e6d1.tar.bz2
tree-dfa.c (mark_new_vars_to_rename): Protect against calling with a PHI_NODE argument.
2005-07-25 Richard Guenther <rguenther@suse.de> * tree-dfa.c (mark_new_vars_to_rename): Protect against calling with a PHI_NODE argument. * tree-flow-inline.h (overlap_subvar): Protect against possible overflow. From-SVN: r102358
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r--gcc/tree-flow-inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h
index 30d13ab..7bcfefd 100644
--- a/gcc/tree-flow-inline.h
+++ b/gcc/tree-flow-inline.h
@@ -1518,7 +1518,7 @@ overlap_subvar (unsigned HOST_WIDE_INT offset, unsigned HOST_WIDE_INT size,
{
return true;
}
- else if (offset < sv->offset && (offset + size > sv->offset))
+ else if (offset < sv->offset && (size > sv->offset - offset))
{
return true;
}