This patch kit strengthens various parameters in emit-rtl.h/c from rtx to rtx_insn *, eliminating 14 "as_a"/"safe_as_a" casts from emit-rtl.c (though requiring a few new ones elsewhere).
It's effectively one patch; I've split it up for ease of review. Nearly all of it is trivial, and would be covered by the pre-approval here: https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01310.html However, some of the sh.c changes appear to need review. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Successfully built "cc1" binaries on all 198 configurations in contrib/config-list.mk. OK for trunk? David Malcolm (5): emit-rtl.c: more typesafety arc: update for emit-rtl.h change bfin: update for emit-rtl.h changes c6x: update for emit-rtl.h changes sh: update for emit-rtl.h changes gcc/config/arc/arc.c | 4 +-- gcc/config/bfin/bfin.c | 4 +-- gcc/config/c6x/c6x.c | 6 ++-- gcc/config/sh/sh-protos.h | 2 +- gcc/config/sh/sh.c | 30 ++++++++++------- gcc/emit-rtl.c | 84 +++++++++++++++++++++-------------------------- gcc/rtl.h | 41 ++++++++++++----------- 7 files changed, 84 insertions(+), 87 deletions(-) -- 1.8.5.3