[cfe-commits] r51948 - /cfe/trunk/lib/Basic/Targets.cpp

Eli Friedman eli.friedman at gmail.com
Wed Jun 4 10:01:45 PDT 2008


Author: efriedma
Date: Wed Jun  4 12:01:45 2008
New Revision: 51948

URL: http://llvm.org/viewvc/llvm-project?rev=51948&view=rev
Log:
Make the width and alignment for long double consistent with the 
hardcoded data layout in getTargetDescription.  Hopefully fixes a test 
failure.

Of course, this should be fixed properly, but that's a bigger fix.


Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=51948&r1=51947&r2=51948&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Jun  4 12:01:45 2008
@@ -703,8 +703,8 @@
 public:
   DarwinI386TargetInfo(const std::string& triple) : DarwinTargetInfo(triple) {
     DoubleAlign = LongLongAlign = 32;
-    LongDoubleWidth = 96;
-    LongDoubleAlign = 32;
+    LongDoubleWidth = 128;
+    LongDoubleAlign = 128;
     LongDoubleFormat = &llvm::APFloat::x87DoubleExtended;
   }
 





More information about the cfe-commits mailing list