]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/ChangeLog
re PR c++/43787 (memory copy of empty class (sizeof is one))
authorJason Merrill <jason@redhat.com>
Wed, 5 May 2010 16:32:20 +0000 (12:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 5 May 2010 16:32:20 +0000 (12:32 -0400)
commit6d729f282c059987f966fc3d9c98eb74e2d92839
tree76394a4dd6bd685ffee7f55fc84a357aecb19236
parenta2c9b836ba7e2781effde72da473534cb32743ee
re PR c++/43787 (memory copy of empty class (sizeof is one))

PR c++/43787
gcc:
* gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
returns GS_OK.
(gimplify_modify_expr_rhs): Return GS_OK if anything changed.
gcc/cp:
* cp-gimplify.c (cp_gimplify_expr): Remove copies of empty classes.
* call.c (build_over_call): Don't try to avoid INIT_EXPR copies here.

From-SVN: r159072
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-gimplify.c
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/empty1.C [new file with mode: 0644]
This page took 0.056395 seconds and 5 git commands to generate.