actually just do this on all x86 targets, it won't hurt

non-glibc ones.

llvm-svn: 69528
This commit is contained in:
Chris Lattner 2009-04-19 17:32:33 +00:00
parent 4997b8ef98
commit 6df41af7fb
1 changed files with 5 additions and 10 deletions

View File

@ -607,6 +607,11 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
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 @@ public:
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 @@ public:
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);
}
};