https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90648
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Guenther <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1105cf8163f635ac4e4a3357d8b16a73fb6aced5 commit r10-6448-g1105cf8163f635ac4e4a3357d8b16a73fb6aced5 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.