re PR c/70093 (Instancing function with VM return type cases internal compiler error...
authorMarek Polacek <polacek@redhat.com>
Wed, 16 Mar 2016 15:51:47 +0000 (15:51 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 16 Mar 2016 15:51:47 +0000 (15:51 +0000)
commitab4c578f0ce61491c694bea751323973fabf0f95
treeae34ca036a37457ea8c7f084769e76de4294edff
parentf5387e76b79440e3cb4d7392d7aea66037d375b8
re PR c/70093 (Instancing function with VM return type cases internal compiler error in 'assign_stack_temp_for_type'.)

PR c/70093
* c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
nested functions returning VM types.

* cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
function being thunked if the result type doesn't have fixed size.
* gimplify.c (gimplify_modify_expr): Also set LHS if the result type
doesn't have fixed size.

* gcc.dg/nested-func-10.c: New test.
* gcc.dg/nested-func-9.c: New test.

From-SVN: r234259
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cgraphunit.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/nested-func-10.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/nested-func-9.c [new file with mode: 0644]