diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2015-10-05 13:54:33 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-10-05 13:54:33 +0000 |
commit | b2b91e8533114fa1388ff41781a9cd98efef33b0 (patch) | |
tree | 36fa7fb13732c47d828dc4e870685ce8b280fb0c /gcc | |
parent | 572d790ac101905081acb56881a00fa7fd6d0847 (diff) | |
download | gcc-b2b91e8533114fa1388ff41781a9cd98efef33b0.zip gcc-b2b91e8533114fa1388ff41781a9cd98efef33b0.tar.gz gcc-b2b91e8533114fa1388ff41781a9cd98efef33b0.tar.bz2 |
remove gimple_location_ptr ()
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gimple.h | 9 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 5 |
3 files changed, 8 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 754668d..c831924 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 tree. (finalize_ssa_uses): Adjust. diff --git a/gcc/gimple.h b/gcc/gimple.h index 30b1041..cfd8d2c 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 3bc3b03..ef5ef10 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, |