-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Enable exp10 libcall on linux #68736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
673d2eb
ffb411a
ed38fb5
c23b6a5
cfb9f6b
866dafe
ea765fe
107e372
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -557,17 +557,10 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, | |
} | ||
break; | ||
case Triple::Linux: | ||
// exp10, exp10f, exp10l is available on Linux (GLIBC) but are extremely | ||
// buggy prior to glibc version 2.18. Until this version is widely deployed | ||
// or we have a reasonable detection strategy, we cannot use exp10 reliably | ||
// on Linux. | ||
// | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would leave some kind of historical note There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh okay, thanks again! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just update the "Until this version is widely deployed or we have a reasonable detection strategy, we cannot use exp10 reliably" part to something about how this is so old it doesn't matter There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "As this version is so old, we don't really need to worry about using exp10 until we find more good ways to detect it." Does this look fine? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "until we find more good ways to detect it." reads off. Can drop it or rephrase There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I will drop this. |
||
// Fall through to disable all of them. | ||
[[fallthrough]]; | ||
default: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change here caused a quite noisy warning from GCC:
(and so on for all OSes known by So ideally we'd keep the default case to silence this compiler warning (or not enable |
||
TLI.setUnavailable(LibFunc_exp10); | ||
TLI.setUnavailable(LibFunc_exp10f); | ||
TLI.setUnavailable(LibFunc_exp10l); | ||
TLI.setAvailableWithName(LibFunc_exp10, "__exp10"); | ||
TLI.setAvailableWithName(LibFunc_exp10f, "__exp10f"); | ||
arsenm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
TLI.setAvailableWithName(LibFunc_exp10l, "__exp10l"); | ||
break; | ||
} | ||
|
||
// ffsl is available on at least Darwin, Mac OS X, iOS, FreeBSD, and | ||
|
@@ -834,6 +827,9 @@ static void initialize(TargetLibraryInfoImpl &TLI, const Triple &T, | |
TLI.setUnavailable(LibFunc_strndup); | ||
TLI.setUnavailable(LibFunc_strnlen); | ||
TLI.setUnavailable(LibFunc_toascii); | ||
TLI.setUnavailable(LibFunc_exp10); | ||
TLI.setUnavailable(LibFunc_exp10f); | ||
TLI.setUnavailable(LibFunc_exp10l); | ||
} | ||
|
||
// As currently implemented in clang, NVPTX code has no standard library to | ||
|
Uh oh!
There was an error while loading. Please reload this page.