[PATCH] Emit diagnostic for -munaligned-access on v6m

Charlie Turner charlie.turner at arm.com
Mon Oct 6 09:27:36 PDT 2014


Hi,

The following command correctly produces a diagnostic that specifying
-munaligned-access for a v6M core is an error,

clang -c -target thumbv6m-none-linux-eabi -mcpu=cortex-m0 -munaligned-access
empty.c

But the next command does not,

clang -c -target thumb-none-linux-eabi -mcpu=cortex-m0 -munaligned-access
empty.c

In the second command, "thumv6m" has been replaced with "thumb". 

This patch causes the second command to issue the same diagnostic as the
first.

Please find the patch attached.

Thanks,
Charlie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Diagnostic-for-munaligned-access-on-v6M-targets.patch
Type: application/octet-stream
Size: 2317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141006/b6851a05/attachment.obj>


More information about the cfe-commits mailing list