Allow a target to skip an unnecssary register return value for a struct return.
authorBernd Schmidt <bernds@codesourcery.com>
Wed, 5 Nov 2014 12:14:36 +0000 (12:14 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 5 Nov 2014 12:14:36 +0000 (12:14 +0000)
commite0d14c396aaa626e054284cf96a250c7aaf907e4
tree6ae355ca6def23b0f0cf6593b092c139fcd2f95a
parenta50fa76a9d8e3690ea563ff75d8d9cebb07208f7
Allow a target to skip an unnecssary register return value for a struct return.

* target.def (omit_struct_return_reg): New data hook.
* doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
* doc/tm.texi: Regenerate.
* function.c (expand_function_end): Use it.

From-SVN: r217123
gcc/ChangeLog
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/function.c
gcc/target.def