This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/70093] Instancing function with VM return type cases internal compiler error in 'assign_stack_temp_for_type'.
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Mar 2016 15:52:20 +0000
- Subject: [Bug c/70093] Instancing function with VM return type cases internal compiler error in 'assign_stack_temp_for_type'.
- Auto-submitted: auto-generated
- References: <bug-70093-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70093
--- Comment #13 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Mar 16 15:51:47 2016
New Revision: 234259
URL: https://gcc.gnu.org/viewcvs?rev=234259&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/nested-func-10.c
trunk/gcc/testsuite/gcc.dg/nested-func-9.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/cgraphunit.c
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog