remove gimple_location_ptr ()
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2015 13:54:33 +0000 (13:54 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2015 13:54:33 +0000 (13:54 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228485 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimple.h
gcc/tree-vrp.c

index 754668d..c831924 100644 (file)
@@ -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.
index 30b1041..cfd8d2c 100644 (file)
@@ -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
index 3bc3b03..ef5ef10 100644 (file)
@@ -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,