diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-25 14:01:02 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-25 14:01:02 +0000 |
commit | 0af8b3215f7f533b70dadad48f54a9f4c16cc62e (patch) | |
tree | 8abddc3e21ff52977a1396773b8d854e87fe17ce /gcc/tree-flow-inline.h | |
parent | 6f91046da97e34c076997c0aab2c77e166bf0c46 (diff) | |
download | gcc-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.h | 2 |
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; } |