This sets target feature FeatureStrictAlign for both the Cortex-M0
and Cortex-M0+, because there is no support for unaligned accesses
on these Cortex-M0 processors.
It looks like we always pass target feature "+strict-align" from
clang, so this is not a user facing problem, but setting this
target feature looks more correct to me (unless I of course miss
something here).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This restriction is in the Armv6M architecture, so I think this should be done in ARMv6m, so it also applies to cortex-m1 and sc000, and I think this also applies to ARMv8mBaseline.
Comment Actions
This feature probably should be added as a subtarget of ARMv6m and I guess v8m.baseline too.
Comment Actions
Added tests, i.e. removed the strict-align attribute from some tests where we also pass cpu=cortex-m0 and m1, so this checks that build attribute:
.eabi_attribute 34, 0
is still set.