re PR middle-end/92384 (Empty class instances have different equal testing result...
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Nov 2019 10:52:50 +0000 (11:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Nov 2019 10:52:50 +0000 (11:52 +0100)
commitaea86742ce3963750a6becb4b45d3dd2fa11ecc4
tree16216c7b938f360a23b5b8c14c508f3029da2f5a
parentd8a4ce12d6681091b22baa8c0321c20f66213557
re PR middle-end/92384 (Empty class instances have different equal testing result among GCC versions)

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.

From-SVN: r277962
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr92384.C [new file with mode: 0644]