https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92384

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 21 17:17:20 2019
New Revision: 278582

URL: https://gcc.gnu.org/viewcvs?rev=278582&root=gcc&view=rev
Log:
        Backported from mainline
        2019-11-08  Jakub Jelinek  <ja...@redhat.com>

        PR c++/92384
        * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
        copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
        slot.
        (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
        force creation of a unique data.stack_parm slot.

        * g++.dg/torture/pr92384.C: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/g++.dg/torture/pr92384.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/function.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to