forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around two more instances of __noinline__ conflicts. (llvm#66138)
Fixes llvm#57544 (cherry picked from commit 588023d)
- Loading branch information
Showing
3 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// CUDA headers define __noinline__ which interferes with libstdc++'s use of | ||
// `__attribute((__noinline__))`. In order to avoid compilation error, | ||
// temporarily unset __noinline__ when we include affected libstdc++ header. | ||
|
||
#pragma push_macro("__noinline__") | ||
#undef __noinline__ | ||
#include_next "bits/basic_string.h" | ||
|
||
#pragma pop_macro("__noinline__") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// CUDA headers define __noinline__ which interferes with libstdc++'s use of | ||
// `__attribute((__noinline__))`. In order to avoid compilation error, | ||
// temporarily unset __noinline__ when we include affected libstdc++ header. | ||
|
||
#pragma push_macro("__noinline__") | ||
#undef __noinline__ | ||
#include_next "bits/basic_string.tcc" | ||
|
||
#pragma pop_macro("__noinline__") |