From 42181fc58e18b3dcffc3ab0c090f649cc9dd6e9f Mon Sep 17 00:00:00 2001 From: tbsaunde 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228485 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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,5 +1,10 @@ 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 tree. (finalize_ssa_uses): Adjust. 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, -- 2.11.4.GIT