ipa/97673 - fix input_location leak
authorRichard Biener <rguenther@suse.de>
Tue, 19 Jan 2021 11:29:18 +0000 (12:29 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Jan 2021 12:22:40 +0000 (13:22 +0100)
commit7d6f7e92c3b737736a2d8ff97a71af9f230c2f88
tree0981bc255a108b38012d7f55bbd81ea18eed2496
parent049bfd186fae9fb764a3ec04acb20d3eaacda7a3
ipa/97673 - fix input_location leak

This fixes input_location leaking with an invalid BLOCK from
expand_call_inline to tree_function_versioning via clone
materialization.

2021-01-19  Richard Biener  <rguenther@suse.de>

PR ipa/97673
* tree-inline.c (tree_function_versioning): Set input_location
to UNKNOWN_LOCATION throughout the function.

* gfortran.dg/pr97673.f90: New testcase.
gcc/testsuite/gfortran.dg/pr97673.f90 [new file with mode: 0644]
gcc/tree-inline.c