Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit a63561d

Browse files
committed
[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 avr-rust/rust-legacy-fork#64 Patch By Gergo Erdi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314179 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent aaefb7d commit a63561d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AVR/AVRTargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace llvm {
2727

28-
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";
28+
static const char *AVRDataLayout = "e-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8";
2929

3030
/// Processes a CPU name.
3131
static StringRef getCPU(StringRef CPU) {

0 commit comments

Comments
 (0)