I was not using the -mno-unaligned- access flag. That flag also prevents the compiler from generating the incorrect inline code.
I was not aware the -mno-unaligned- access flag existed. Sorry for the trouble. I will be using this flag from now on.
Regards,
Roger
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Prakhar Bahuguna
Sent: Monday, March 06, 2017 2:32 AM
To: Roger Cover
Subject: [Bug 1669879] Re: The built-in memcpy uses unaligned reads/writes and this crashes my ARM-A5 processor.
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.
Title:
The built-in memcpy uses unaligned reads/writes and this crashes my
ARM-A5 processor.
Status in GNU ARM Embedded Toolchain:
New
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.
Greetings,
I was not using the -mno-unaligned- access flag. That flag also prevents the compiler from generating the incorrect inline code.
I was not aware the -mno-unaligned- access flag existed. Sorry for the trouble. I will be using this flag from now on.
Regards,
Roger
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Prakhar Bahuguna
Sent: Monday, March 06, 2017 2:32 AM
To: Roger Cover
Subject: [Bug 1669879] Re: The built-in memcpy uses unaligned reads/writes and this crashes my ARM-A5 processor.
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.
-- /bugs.launchpad .net/bugs/ 1669879
You received this bug notification because you are subscribed to the bug report.
https:/
Title:
The built-in memcpy uses unaligned reads/writes and this crashes my
ARM-A5 processor.
Status in GNU ARM Embedded Toolchain:
New
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.
To manage notifications about this bug go to: /bugs.launchpad .net/gcc- arm-embedded/ +bug/1669879/ +subscriptions
https:/
-- VOTING- LINKS ------- ------- ------- ------- ------- ------- -----
BEGIN-ANTISPAM-
-------
Teach Security Manager | Anti-spam if this mail (ID 0bSQxF58J) is spam: /antispam. roaringpenguin. com/canit/ b.php?c= s&i=0bSQxF58J& m=e315a78642bf& rlm=specinst- com&t=20170306 /antispam. roaringpenguin. com/canit/ b.php?c= n&i=0bSQxF58J& m=e315a78642bf& rlm=specinst- com&t=20170306 /antispam. roaringpenguin. com/canit/ b.php?c= f&i=0bSQxF58J& m=e315a78642bf& rlm=specinst- com&t=20170306 ------- ------- ------- ------- ------- ------- ----- VOTING- LINKS
Spam: https:/
Not spam: https:/
Forget vote: https:/
-------
END-ANTISPAM-