Handle POLY_INT_CSTs in declare_return_value
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 8 Nov 2019 09:06:50 +0000 (09:06 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 8 Nov 2019 09:06:50 +0000 (09:06 +0000)
commitbe5f7eccf766a4c3a59b821f77ce320001df838f
treeee509b6f5eec1502b7562e6c72ec021a316b84fc
parentf1e1ed3314b7c6308f64cbbcf6d1916e239c8e35
Handle POLY_INT_CSTs in declare_return_value

SVE allows variable-length vectors to be returned by value,
which tripped the assert in declare_return_variable.

2019-11-08  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-inline.c (declare_return_variable): Check for poly_int_tree_p
instead of INTEGER_CST.

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general/inline_1.c: New test.

From-SVN: r277956
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/acle/general/inline_1.c [new file with mode: 0644]
gcc/tree-inline.c