[Bug tree-optimization/69047] memcpy is not as optimized as union is

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Tue Aug 30 12:17:00 GMT 2016


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

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 30 Aug 2016, mwahab at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69047
> 
> mwahab at gcc dot gnu.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |mwahab at gcc dot gnu.org
> 
> --- Comment #9 from mwahab at gcc dot gnu.org ---
> The new test gcc.dg/pr69047.c fails on big-endian aarch64 (aarch64_be-none-elf)
> because the expected output isn't generated.
> 
> For big-endian aarch64, the expression in the cddce1 file is
> ----
>   _2 = BIT_FIELD_REF <b_6(D), 8, 0>;
> ----
> 
> For little-endian aarch64, the expression is as expected:
> ----
>   _2 = (unsigned char) b_6(D);
> ----

Fixed this with r239857 I think


More information about the Gcc-bugs mailing list