[PR 91853] Prevent IPA-SRA ICEs on type-mismatched calls
authorMartin Jambor <mjambor@suse.cz>
Mon, 30 Sep 2019 08:18:59 +0000 (10:18 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 30 Sep 2019 08:18:59 +0000 (10:18 +0200)
commitbe525d9221f61c17e0fa34823ffd1624b0f8518a
tree8674735d0491388b7801692da4d645704aa61b17
parent15bbad92434a184a0baac0c93c7111e6e7fcd9c2
[PR 91853] Prevent IPA-SRA ICEs on type-mismatched calls

2019-09-30  Martin Jambor  <mjambor@suse.cz>

PR ipa/91853
* tree-inline.c (force_value_to_type): New function.
(setup_one_parameter): Use force_value_to_type to convert type.
* tree-inline.c (force_value_to_type): Declare.
* ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
with register type mismatches.

testsuite/
* gcc.dg/ipa/pr91853.c: New test.

From-SVN: r276296
gcc/ChangeLog
gcc/ipa-param-manipulation.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/pr91853.c [new file with mode: 0644]
gcc/tree-inline.c
gcc/tree-inline.h