[PATCH] [ARM] Produce an error message if -arm-no-strict-align is specified with the v6M arch.

Renato Golin renato.golin at linaro.org
Thu Oct 23 04:12:31 PDT 2014


Hi Charlie,

I'd expect Clang to get that first (you know how it has deep knowledge
of architectures...), but I think having this error here also makes
sense, for other front-ends.

I've looked around that the use of fatal_error in ARM code is not so
often, wasn't there a hook on the driver to report errors a bit more
friendly?

cheers,
--renato

On 23 October 2014 11:04, Charlie Turner <charlie.turner at arm.com> wrote:
> Hi,
>
>
>
> The command,
>
>
>
> llc empty.ll -mtriple=thumb-none-linux-gnueabi -arm-no-strict-align
> -mcpu=cortex-m0
>
>
>
> should produce an error message explaining that the cortex-m0 (a v6M CPU)
> does not support unaligned data accesses. The attached patch implements this
> behavior.
>
>
>
> Please find the patch attached.
>
>
>
> Kind regards,
>
> Charlie.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list