This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix expansion of TREE_ADDRESSABLE bitwise copies (PR c++/69851)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Bernd Schmidt <bschmidt at redhat dot com>, Eric Botcazou <ebotcazou at adacore dot com>, "jason at redhat dot com" <jason at redhat dot com>
- Date: Fri, 19 Feb 2016 21:08:42 +0100
- Subject: Re: [PATCH] Fix expansion of TREE_ADDRESSABLE bitwise copies (PR c++/69851)
- Authentication-results: sourceware.org; auth=none
- References: <HE1PR07MB09059275EE2C48C99026F453E4A00 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com> <20160219190447 dot GX3017 at tucnak dot redhat dot com> <HE1PR07MB09058787595F6611848CA63DE4A00 at HE1PR07MB0905 dot eurprd07 dot prod dot outlook dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Feb 19, 2016 at 08:04:39PM +0000, Bernd Edlinger wrote:
> but you are just adding another term to this expression:
> !(TREE_CODE (exp) == CONSTRUCTOR
> && bitsize % BITS_PER_UNIT == 0)
No. Please read the code again. I'm adding another case
after this one.
> so the result should look like
> !(TREE_CODE (exp) == CONSTRUCTOR
> && bitsize % BITS_PER_UNIT == 0
> && (!TREE_ADDRESSABLE ...
> || TREE_CODE () ...
> ...
> || (compare_tree_int ...
> != 0)))
Jakub