From: Andrea Corallo Date: Fri, 15 Sep 2023 08:23:02 +0000 (+0200) Subject: recog: Support space in "[ cons" X-Git-Tag: basepoints/gcc-15~5763 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d31045b21324166c3997d603961d99e3c4c357d;p=thirdparty%2Fgcc.git recog: Support space in "[ cons" Hi all, this is to allow for spaces before "cons:" in the definitions of patterns using the new compact syntax, ex: (define_insn "aarch64_simd_dup" [(set (match_operand:VDQ_I 0 "register_operand") (vec_duplicate:VDQ_I (match_operand: 1 "register_operand")))] "TARGET_SIMD" {@ [ cons: =0 , 1 ; attrs: type ] [ w , w ; neon_dup ] dup\t%0., %1.[0] [ w , ?r ; neon_from_gp ] dup\t%0., %1 } ) gcc/Changelog 2023-09-20 Andrea Corallo * gensupport.cc (convert_syntax): Skip spaces before "cons:" in new compact pattern syntax. --- diff --git a/gcc/gensupport.cc b/gcc/gensupport.cc index 7e125e3d8dbd..dd920d673b45 100644 --- a/gcc/gensupport.cc +++ b/gcc/gensupport.cc @@ -894,6 +894,8 @@ convert_syntax (rtx x, file_location loc) if (!expect_char (&templ, '[')) fatal_at (loc, "expecing `[' to begin section list"); + skip_spaces (&templ); + parse_section_layout (loc, &templ, "cons:", tconvec, true); if (*templ != ']')