aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-02-27 00:56:35 +0000
committerDale Johannesen <dalej@apple.com>2009-02-27 00:56:35 +0000
commitded2b20e7e5399c90ee7cb560e70ab92ba620dcd (patch)
treefe8622e8e11339e9b70927d8a2d150311893a6c7
parent98f122fc40b297d95f4ddddc29cc0a057c8f19e9 (diff)
Alignment values for i64 and f64 on ppc64 were wrong,
possibly for the reason suggested by the comment. No wonder it didn't work very well. This unblocks bootstrap with assertions on ppc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65601 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index bb29d44950..d268a7d9b7 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -108,7 +108,9 @@ public:
/// getTargetDataString - Return the pointer size and type alignment
/// properties of this subtarget.
const char *getTargetDataString() const {
- return isPPC64() ? "E-p:64:64-f64:32:64-i64:32:64-f128:64:128"
+ // Note, the alignment values for f64 and i64 on ppc64 in Darwin
+ // documentation are wrong; these are correct (i.e. "what gcc does").
+ return isPPC64() ? "E-p:64:64-f64:64:64-i64:64:64-f128:64:128"
: "E-p:32:32-f64:32:64-i64:32:64-f128:64:128";
}