X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gcc%2Fgimple-array-bounds.h;h=d0e665eff11ad352961d2f2b7449477db9a36787;hb=9a27acc30a34b7854db32eac562306cebac6fa1e;hp=fa64262777d661b93a2b8d70b9d585e370d944e4;hpb=435f90187eb4b6ddd66df692320057f303841ed6;p=thirdparty%2Fgcc.git diff --git a/gcc/gimple-array-bounds.h b/gcc/gimple-array-bounds.h index fa64262777d6..d0e665eff11a 100644 --- a/gcc/gimple-array-bounds.h +++ b/gcc/gimple-array-bounds.h @@ -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