Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177735337
D61678.1795160031.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61678.1795160031.diff
View Options
diff --git a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h
--- a/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h
+++ b/contrib/llvm-project/clang/lib/Basic/Targets/PPC.h
@@ -478,7 +478,7 @@
LongDoubleFormat = &llvm::APFloat::IEEEdouble();
}
- if (Triple.isOSAIX() || Triple.isOSLinux())
+ if (Triple.isOSAIX() || Triple.isOSLinux() || Triple.isOSFreeBSD())
DataLayout += "-S128-v256:256:256-v512:512:512";
resetDataLayout(DataLayout);
diff --git a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
--- a/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/contrib/llvm-project/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -195,7 +195,9 @@
// Specify the vector alignment explicitly. For v256i1 and v512i1, the
// calculated alignment would be 256*alignment(i1) and 512*alignment(i1),
// which is 256 and 512 bytes - way over aligned.
- if (is64Bit && (T.isOSAIX() || T.isOSLinux()))
+ // FreeBSD uses the ELFv2 ABI and has the same 16-byte stack alignment as
+ // Linux.
+ if (is64Bit && (T.isOSAIX() || T.isOSLinux() || T.isOSFreeBSD()))
Ret += "-S128-v256:256:256-v512:512:512";
return Ret;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 20, 7:33 AM (22 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41861645
Default Alt Text
D61678.1795160031.diff (1 KB)
Attached To
Mode
D61678: Merge commit 5472aa0c1321 from llvm git (by Piotr Kubaj): [PowerPC] Use the 16-byte stack and vector alignment on FreeBSD
Attached
Detach File
Event Timeline