This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][mem-ref2] Fix bootstrap
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Apr 2010 14:14:56 +0200 (CEST)
- Subject: [PATCH][mem-ref2] Fix bootstrap
Bootstrapped on x86_64-unknown-linux-gnu, committed.
Richard.
2010-04-08 Richard Guenther <rguenther@suse.de>
* tree-vrp.c (check_array_ref): Handle MEM_REF.
Index: gcc/tree-vrp.c
===================================================================
--- gcc/tree-vrp.c (revision 158115)
+++ gcc/tree-vrp.c (working copy)
@@ -5016,7 +5016,8 @@ check_array_ref (location_t location, tr
beyond the types array bounds. */
base = get_base_address (ref);
if (base
- && INDIRECT_REF_P (base))
+ && (INDIRECT_REF_P (base)
+ || TREE_CODE (base) == MEM_REF))
{
tree cref, next = NULL_TREE;