This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] remove some usage of expr_list from read_rtx
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: tbsaunde+gcc at tbsaunde dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 13 Jul 2015 14:43:46 +0100
- Subject: Re: [PATCH] remove some usage of expr_list from read_rtx
- Authentication-results: sourceware.org; auth=none
- References: <1436749986-11513-1-git-send-email-tbsaunde+gcc at tbsaunde dot org>
Nice clean-up :-)
tbsaunde+gcc@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<rtx, 10> subrtxs;
> + if (!read_rtx (rtx_name, &subrtxs))
> + return;
Very minor, but many iterators are over powers of 2, so it seems unlikely
that 10 would be a good stack/heap cut-off point. How about 16 or 32
instead?
OK with that change, thanks.
Richard