aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-02-05 14:04:29 +0100
committerRichard Biener <rguenther@suse.de>2020-02-05 14:06:40 +0100
commit1105cf8163f635ac4e4a3357d8b16a73fb6aced5 (patch)
treebeb7961773473aa15a76c9261cda280e556e7e02 /gcc/recog.c
parent5f44a4341cf9793ccfb28cb0ab6876174c0d89dc (diff)
downloadgcc-1105cf8163f635ac4e4a3357d8b16a73fb6aced5.zip
gcc-1105cf8163f635ac4e4a3357d8b16a73fb6aced5.tar.gz
gcc-1105cf8163f635ac4e4a3357d8b16a73fb6aced5.tar.bz2
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 <rguenther@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.
Diffstat (limited to 'gcc/recog.c')
0 files changed, 0 insertions, 0 deletions