This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 0/4] gimple accessor const correctness fixes
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 4 Oct 2015 20:25:23 -0400
- Subject: [PATCH 0/4] gimple accessor const correctness fixes
- Authentication-results: sourceware.org; auth=none
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
Hi,
the first patch is just some cleanup I ran into along the way, but the rest of
this series fixes const correctness for all of the gimple_x_ptr () functions.
I was able to just remove a couple of them, but unfortunately most ar needed
for either tree walking, or the use def data structures which store pointers
into gimple statements.
patches individually bootstrapped + regtested on x86_64-gnu-linux, ok?
Trev
Trevor Saunders (4):
make build_uses store tree * instead of tree
remove gimple_location_ptr ()
remove unused gasm accessors
make more gimple_x_ptr accessors const correct
gcc/gimple.h | 107 ++++++++++++++++++------------------------------
gcc/tree-ssa-operands.c | 30 +++++++-------
gcc/tree-vrp.c | 5 ++-
3 files changed, 58 insertions(+), 84 deletions(-)
--
2.4.0