diff options
author | Dylan McKay <me@dylanmckay.io> | 2017-09-28 09:16:45 +0300 |
---|---|---|
committer | Dylan McKay <me@dylanmckay.io> | 2017-09-28 09:16:45 +0300 |
commit | 749ebdf766673e6dfb7400a4b82298fd3fc97ad6 (patch) | |
tree | 38f0b778b884021c22076613402ce91a185e1a91 | |
parent | 0200f2bf648193f10eb53d413ed933ff03d96baf (diff) |
Merging r314179:
------------------------------------------------------------------------
r314179 | dylanmckay | 2017-09-26 13:45:27 +1300 (Tue, 26 Sep 2017) | 11 lines
[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.
------------------------------------------------------------------------
llvm-svn: 314379
-rw-r--r-- | llvm/lib/Target/AVR/AVRTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp index a9d61ffc952c..e698b6e694cf 100644 --- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp +++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp @@ -25,7 +25,7 @@ namespace llvm { -static const char *AVRDataLayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-n8"; +static const char *AVRDataLayout = "e-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"; /// Processes a CPU name. static StringRef getCPU(StringRef CPU) { |