This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]