diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-21 04:25:47 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-21 04:25:47 +0000 |
commit | f243e0df95dcd0bfb81263f9c39c397202cb8d8e (patch) | |
tree | c11b0a1f652a396b65a6408098c3c14506ff4883 /clang/lib/Basic | |
parent | 0ffc16cef32d43a5b02cebae964426f6c19a0fd4 (diff) | |
download | bcm5719-llvm-f243e0df95dcd0bfb81263f9c39c397202cb8d8e.tar.gz bcm5719-llvm-f243e0df95dcd0bfb81263f9c39c397202cb8d8e.zip |
Bump suitable alignment on darwin ppc 32/64 and x86-32 to 16 bytes. I don't
actually know about the other OSes on X86-32 besides Linux...
llvm-svn: 147034
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 34ae1d3b16c..b9f505c86bb 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -880,6 +880,7 @@ public: : DarwinTargetInfo<PPC32TargetInfo>(triple) { HasAlignMac68kSupport = true; BoolWidth = BoolAlign = 32; //XXX support -mone-byte-bool? + SuitableAlign = 128; } virtual const char *getVAListDeclaration() const { return "typedef char* __builtin_va_list;"; @@ -892,6 +893,7 @@ public: DarwinPPC64TargetInfo(const std::string& triple) : DarwinTargetInfo<PPC64TargetInfo>(triple) { HasAlignMac68kSupport = true; + SuitableAlign = 128; } }; } // end anonymous namespace. @@ -2067,7 +2069,7 @@ public: DoubleAlign = LongLongAlign = 32; LongDoubleWidth = 96; LongDoubleAlign = 32; - SuitableAlign = 32; + SuitableAlign = 128; DescriptionString = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-" "i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-" "a0:0:64-f80:32:32-n8:16:32-S128"; |