]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/107898 - ICE with -Walloca-larger-than
authorRichard Biener <rguenther@suse.de>
Tue, 29 Nov 2022 08:03:46 +0000 (09:03 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 12 Dec 2022 10:29:13 +0000 (11:29 +0100)
commit1a8af012222a8386fcda16a61dc17f11ba9cfbfd
treed0e2e904f405241ad06812c3d3a9c556b6e58d61
parent09469705318de7a0fe5f10f5d5b92870d3fada6e
tree-optimization/107898 - ICE with -Walloca-larger-than

The following avoids ICEing with a mismatched prototype for alloca
and -Walloca-larger-than using irange for checks which doesn't
like mismatched types.

PR tree-optimization/107898
* gimple-ssa-warn-alloca.cc (alloca_call_type): Check
the type of the alloca argument is compatible with size_t
before querying ranges.

(cherry picked from commit 9948daa4fd0f0ea0a9d56c2fefe1bca478554d27)
gcc/gimple-ssa-warn-alloca.cc
This page took 0.078373 seconds and 6 git commands to generate.