https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90648
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Richard Guenther <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:b8c42b4d0a2595fb6806473f816b94cc1b222cb1 commit r9-8236-gb8c42b4d0a2595fb6806473f816b94cc1b222cb1 Author: Richard Biener <rguent...@suse.de> Date: Wed Feb 5 14:04:29 2020 +0100 middle-end/90648 fend off builtin calls with not enough arguments from match This adds guards to genmatch generated code before accessing call expression or stmt arguments that might be out of bounds when the user provided bogus prototypes for what we consider builtins. 2020-02-05 Richard Biener <rguent...@suse.de> PR middle-end/90648 * genmatch.c (dt_node::gen_kids_1): Emit number of argument checks before matching calls. * gcc.dg/pr90648.c: New testcase.