From b2b91e8533114fa1388ff41781a9cd98efef33b0 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Mon, 5 Oct 2015 13:54:33 +0000 Subject: [PATCH] remove gimple_location_ptr () gcc/ChangeLog: 2015-10-05 Trevor Saunders * gimple.h (gimple_location_ptr): Remove. * tree-vrp.c (check_all_array_refs): Adjust. From-SVN: r228485 --- gcc/ChangeLog | 5 +++++ gcc/gimple.h | 9 --------- gcc/tree-vrp.c | 5 +++-- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 754668dd6a7..c831924e40e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-05 Trevor Saunders + + * gimple.h (gimple_location_ptr): Remove. + * tree-vrp.c (check_all_array_refs): Adjust. + 2015-10-05 Trevor Saunders * tree-ssa-operands.c (build_uses): store tree * instead of diff --git a/gcc/gimple.h b/gcc/gimple.h index 30b10416630..cfd8d2c0a38 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -1734,15 +1734,6 @@ gimple_location_safe (const gimple *g) 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 diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 3bc3b03e6a7..ef5ef100958 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -6717,8 +6717,9 @@ check_all_array_refs (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,