]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gimple-array-bounds.h
Make full use of context-sensitive ranges in access warnings.
[thirdparty/gcc.git] / gcc / gimple-array-bounds.h
index fa64262777d661b93a2b8d70b9d585e370d944e4..d0e665eff11ad352961d2f2b7449477db9a36787 100644 (file)
@@ -31,13 +31,17 @@ public:
 
 private:
   static tree check_array_bounds (tree *tp, int *walk_subtree, void *data);
-  bool check_array_ref (location_t, tree, bool ignore_off_by_one);
+  bool check_array_ref (location_t, tree, gimple *, bool ignore_off_by_one);
   bool check_mem_ref (location_t, tree, bool ignore_off_by_one);
-  void check_addr_expr (location_t, tree);
-  const value_range *get_value_range (const_tree op);
+  void check_addr_expr (location_t, tree, gimple *);
+  const value_range *get_value_range (const_tree op, gimple *);
 
+  /* Current function.  */
   struct function *fun;
+  /* Ranger instance.  */
   range_query *ranges;
+  /* Current statement.  */
+  gimple *m_stmt;
 };
 
 #endif // GCC_GIMPLE_ARRAY_BOUNDS_H