summaryrefslogtreecommitdiff
path: root/gcc/tree-flow-inline.h
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 14:01:02 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 14:01:02 +0000
commit0af8b3215f7f533b70dadad48f54a9f4c16cc62e (patch)
tree8abddc3e21ff52977a1396773b8d854e87fe17ce /gcc/tree-flow-inline.h
parent6f91046da97e34c076997c0aab2c77e166bf0c46 (diff)
downloadgcc-0af8b3215f7f533b70dadad48f54a9f4c16cc62e.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102358 138bc75d-0d04-0410-961f-82ee72b054a4
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 30d13ab4ae4..7bcfefd1776 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;
}