This is an archive of the discontinued LLVM Phabricator instance.

Emit diagnostic for -munaligned-access on v6m targets
ClosedPublic

Authored by bfoster on Jul 28 2014, 2:25 AM.

Details

Reviewers
t.p.northover
Summary

Rather than silently disabling unaligned accesses for v6m targets as in the previous patch to llvm, instead produce a warning saying that this architecture doesn't support unaligned accesses.

Diff Detail

Event Timeline

bfoster updated this revision to Diff 11939.Jul 28 2014, 2:25 AM
bfoster retitled this revision from to Don't allow unaligned accesses to be generated for V6-M.
bfoster updated this object.
bfoster edited the test plan for this revision. (Show Details)
bfoster added a project: deleted.
bfoster added a subscriber: Unknown Object (MLST).
bfoster updated this revision to Diff 11970.Jul 29 2014, 1:44 AM
bfoster retitled this revision from Don't allow unaligned accesses to be generated for V6-M to Emit diagnostic for -munaligned-access on v6m targets.
bfoster updated this object.
bfoster edited subscribers, added: Unknown Object (MLST); removed: Unknown Object (MLST).

As suggested by James, we catch this case in clang rather than silently disabling unaligned accesses in the backend.

Pinging for review.

Hi,

This seems fine to me. Sorry about the delay.

Tim.

t.p.northover accepted this revision.Aug 12 2014, 5:26 AM
t.p.northover added a reviewer: t.p.northover.
This revision is now accepted and ready to land.Aug 12 2014, 5:26 AM
olista01 closed this revision.Aug 13 2014, 2:27 AM
olista01 added a subscriber: olista01.

Committed revision 215531.

lib/Target/ARM/ARMSubtarget.cpp