This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/70093] Instancing function with VM return type cases internal compiler error in 'assign_stack_temp_for_type'.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]