[PATCH] Fix unaligned TARGET_MEM_REF expansion (PR 91615)

Richard Biener rguenther@suse.de
Thu Sep 5 13:27:00 GMT 2019


On Thu, 5 Sep 2019, Bernd Edlinger wrote:

> Hi,
> 
> it turns out the TARGET_MEM_REF causes ICEs in armeb-none-linux-gnueabihf,
> a big-endian cross compiler.  See PR 91615.
> 
> All of them are caused by an unaligned TARGET_MEM_REF for which there is
> no movmisalign optab, as it seems.
> 
> Fixed by adding extract_bit_field if that happens.
> 
> 
> Bootstrapped and reg-tested on x86_64-pc-linux-gnu and used
> an armeb cross compiler to check that each of the mentioned test cases
> are fixed at -O3 and -Ofast.
> 
> Is it OK for trunk?

OK.

Richard.



More information about the Gcc-patches mailing list