]> granicus.if.org Git - llvm/commit
[AVR] Use 1-byte alignment for all data types
authorDylan McKay <me@dylanmckay.io>
Tue, 26 Sep 2017 00:45:27 +0000 (00:45 +0000)
committerDylan McKay <me@dylanmckay.io>
Tue, 26 Sep 2017 00:45:27 +0000 (00:45 +0000)
commit7f93769bed0016b5702be79b8c2f2cad26976f6d
tree5ef99f3b15f8982d50abac100777f442ce5aa4e8
parentab0b78f63420c41ee4c082df750163d99f3518a9
[AVR] Use 1-byte alignment for all data types

This was an oversight in the original backend data layout.

The AVR architecture does not have the concept of unaligned loads - all
loads/stores from all addresses are aligned to one byte.

Discovered in avr-rust issue #64
https://github.com/avr-rust/rust/issues/64

Patch By Gergo Erdi.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314179 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AVR/AVRTargetMachine.cpp