Re: [PATCH] remove some usage of expr_list from read_rtx

2015-07-15 Thread Trevor Saunders
On Mon, Jul 13, 2015 at 02:43:46PM +0100, Richard Sandiford wrote: > Nice clean-up :-) > > tbsaunde+...@tbsaunde.org writes: > > @@ -2248,11 +2249,14 @@ process_define_subst (void) > > static void > > rtx_handle_directive (int lineno, const char *rtx_name) > > { > > - rtx queue, x; > > + auto

Re: [PATCH] remove some usage of expr_list from read_rtx

2015-07-13 Thread Richard Sandiford
Nice clean-up :-) tbsaunde+...@tbsaunde.org writes: > @@ -2248,11 +2249,14 @@ process_define_subst (void) > static void > rtx_handle_directive (int lineno, const char *rtx_name) > { > - rtx queue, x; > + auto_vec subrtxs; > + if (!read_rtx (rtx_name, &subrtxs)) > +return; Very minor, bu

[PATCH] remove some usage of expr_list from read_rtx

2015-07-12 Thread tbsaunde+gcc
From: Trevor Saunders Hi, It seems much simpler for read_rtx to just add rtxs to a vector than to deal with a bunch of expr list rtxen. bootstrapped + regtested on x86_64-linux-gnu, ok? Trev gcc/ChangeLog: 2015-07-12 Trevor Saunders * gensupport.c (rtx_handle_directive): Adjust.