Re: [PATCH 1/5] emit-rtl.c: more typesafety

2018-06-13 Thread David Malcolm
On Tue, 2018-06-12 at 15:23 -0600, Jeff Law wrote: > On 06/12/2018 03:16 PM, David Malcolm wrote: > > On Tue, 2018-06-12 at 14:50 -0600, Jeff Law wrote: > > > > Ultimately these boil down to: > > > > gcc_checking_assert (INSN_P (rt) > > || NOTE_P (rt) > >

Re: [PATCH 1/5] emit-rtl.c: more typesafety

2018-06-12 Thread Jeff Law
On 06/12/2018 03:16 PM, David Malcolm wrote: > On Tue, 2018-06-12 at 14:50 -0600, Jeff Law wrote: > > Ultimately these boil down to: > > gcc_checking_assert (INSN_P (rt) > || NOTE_P (rt) > || JUMP_TABLE_DATA_P (rt) > || BARRIER_P

Re: [PATCH 1/5] emit-rtl.c: more typesafety

2018-06-12 Thread David Malcolm
On Tue, 2018-06-12 at 14:50 -0600, Jeff Law wrote: > On 06/12/2018 12:54 PM, David Malcolm wrote: > > This patch converts various rtx to rtx_insn * (or rtx_code_label > > *). > > It also convert the various "_loc" params from int to location_t > > > > gcc/ChangeLog: > > * emit-rtl.c

Re: [PATCH 1/5] emit-rtl.c: more typesafety

2018-06-12 Thread Jeff Law
On 06/12/2018 12:54 PM, David Malcolm wrote: > This patch converts various rtx to rtx_insn * (or rtx_code_label *). > It also convert the various "_loc" params from int to location_t > > gcc/ChangeLog: > * emit-rtl.c (next_real_insn): Strengthen param from "rtx" > to "rtx_insn *". >