This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Do not discard the constructors of empty structs [PR c++/64527]
- From: Jason Merrill <jason at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2015 10:32:18 -0400
- Subject: Re: [PATCH] Do not discard the constructors of empty structs [PR c++/64527]
- Authentication-results: sourceware.org; auth=none
- References: <1429146015-25249-1-git-send-email-patrick at parcs dot ath dot cx>
On 04/15/2015 09:00 PM, Patrick Palka wrote:
- if (!cleared || num_nonzero_elements > 0)
How about adding || TREE_SIDE_EFFECTS (TREE_OPERAND (*expr_p), 1) to
this test rather than removing it entirely?
Jason