ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for Arm and AArch64 embedded targets.
Apache License 2.0
419 stars 98 forks source link

Add Armv7a NO FP -mno-unaligned-access library variants #553

Open simpal01 opened 1 week ago

simpal01 commented 1 week ago

This adds the following library:

ostannard commented 1 week ago

strictly_aligned

I think it would be better to keep this as one word with no underscores, so that it is clearer how these parse. exn_rtti doesn't follow that, but it could be considered two separate features, and a rtti variant without exceptions could exist in future (not that I think it should).

Since we are eventually going to want strict-aligned variants for most architectures, would it make more sense to handle it like we do for exn_rtti and expand the library variants inside add_library_variants_for_cpu, instead of adding more calls to it? That will need an extra parameter for now to only enable the new variants for architectures where they work, but will avoid a lot of duplication in the long run, especially when we add big-endian variants which would double everything again if done in the same way.