]> granicus.if.org Git - clang/commitdiff
Bump suitable alignment on darwin ppc 32/64 and x86-32 to 16 bytes. I don't
authorNick Lewycky <nicholas@mxc.ca>
Wed, 21 Dec 2011 04:25:47 +0000 (04:25 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 21 Dec 2011 04:25:47 +0000 (04:25 +0000)
actually know about the other OSes on X86-32 besides Linux...

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147034 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 34ae1d3b16ca1dc5f62f7cfa6b0d28e74dbe2ca3..b9f505c86bbb469e281b2445da839dfdc3366a5a 100644 (file)
@@ -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";