Bug Description

I am using an Atmel SAMA5D35 processor. It is an ARM Cortex-A5. The unaligned reads and writes inserted by the compiler for memcpy() calls are not supported by this processor. The processor experiences a memory access fault as a result.
I have worked around the problem by using the -fno-builtin-memcpy argument on the command line. I wanted to report the problem so it can be fixed, however.

Hi Roger, can I confirm if you're compiling with the -mno-unaligned-access flag? By default GCC only disallows unaligned memory accesses for pre-ARMv6, all ARMv6-M and for ARMv8-M Baseline architectures, so in the case of your Cortex-A5 it may generate unaligned accesses unless you explicitly disable it.

If the issue persists even with the -mno-unaligned-access flag being specified, we will look into this.

Hi Roger, can I confirm if you're compiling with the -mno-unaligned- access flag? By default GCC only disallows unaligned memory accesses for pre-ARMv6, all ARMv6-M and for ARMv8-M Baseline architectures, so in the case of your Cortex-A5 it may generate unaligned accesses unless you explicitly disable it.

If the issue persists even with the -mno-unaligned-access flag being specified, we will look into this.

Bug description:
I am using an Atmel SAMA5D35 processor. It is an ARM Cortex-A5. The unaligned reads and writes inserted by the compiler for memcpy() calls are not supported by this processor. The processor experiences a memory access fault as a result.
I have worked around the problem by using the -fno-builtin-memcpy argument on the command line. I wanted to report the problem so it can be fixed, however.