gcc/ChangeLog:
2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* gimple.h (gimple_location_ptr): Remove.
* tree-vrp.c (check_all_array_refs): Adjust.
From-SVN: r228485
+2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
+
+ * gimple.h (gimple_location_ptr): Remove.
+ * tree-vrp.c (check_all_array_refs): Adjust.
+
2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree-ssa-operands.c (build_uses): store tree * instead of
return g ? gimple_location (g) : UNKNOWN_LOCATION;
}
-/* Return pointer to location information for statement G. */
-
-static inline const location_t *
-gimple_location_ptr (const gimple *g)
-{
- return &g->location;
-}
-
-
/* Set location information for statement G. */
static inline void
continue;
memset (&wi, 0, sizeof (wi));
- wi.info = CONST_CAST (void *, (const void *)
- gimple_location_ptr (stmt));
+
+ location_t loc = gimple_location (stmt);
+ wi.info = &loc;
walk_gimple_op (gsi_stmt (si),
check_array_bounds,