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

Chris Lattner sabre at nondot.org
Sun Apr 19 10:32:33 PDT 2009


Author: lattner
Date: Sun Apr 19 12:32:33 2009
New Revision: 69528

URL: http://llvm.org/viewvc/llvm-project?rev=69528&view=rev
Log:
actually just do this on all x86 targets, it won't hurt
non-glibc ones.

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=69528&r1=69527&r2=69528&view=diff

==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sun Apr 19 12:32:33 2009
@@ -607,6 +607,11 @@
   Define(Defs, "__tune_nocona__");
   Define(Defs, "__REGISTER_PREFIX__", "");
 
+  // Define __NO_MATH_INLINES on linux/x86 so that we don't get inline
+  // functions in glibc header files that use FP Stack inline asm which the
+  // backend can't deal with (PR879).
+  Define(Defs, "__NO_MATH_INLINES");
+  
   // Each case falls through to the previous one here.
   switch (SSELevel) {
   case SSE42:
@@ -786,11 +791,6 @@
                                 std::vector<char> &Defines) const {
     X86_32TargetInfo::getTargetDefines(Opts, Defines);
     getLinuxDefines(Opts, Defines);
-    
-    // Define __NO_MATH_INLINES on linux/x86 so that we don't get inline
-    // functions in glibc header files that use FP Stack inline asm which the
-    // backend can't deal with (PR879).
-    Define(Defines, "__NO_MATH_INLINES");
   }
 };
 } // end anonymous namespace
@@ -870,11 +870,6 @@
   virtual void getTargetDefines(const LangOptions &Opts,
                                 std::vector<char> &Defines) const {
     X86_64TargetInfo::getTargetDefines(Opts, Defines);
-    // Define __NO_MATH_INLINES on linux/x86 so that we don't get inline
-    // functions in glibc header files that use FP Stack inline asm which the
-    // backend can't deal with (PR879).
-    Define(Defines, "__NO_MATH_INLINES");
-    
     getLinuxDefines(Opts, Defines);
   }
 };





More information about the cfe-commits mailing list