-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[clang] Support __attribute__((ifunc(...))) on Darwin platforms #73687
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
Merged
jroelofs
merged 51 commits into
main
from
users/jroelofs/spr/clang-support-__attribute__ifunc-on-darwin-platforms
Dec 14, 2023
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
50a68f3
[𝘀𝗽𝗿] changes to main this commit is based on
jroelofs d4d16df
[𝘀𝗽𝗿] initial version
jroelofs 0d426a9
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 15d50f3
rebase
jroelofs 3b44869
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 8d9c2a2
rebase
jroelofs 6205bfd
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 68e1755
rebase
jroelofs aeb39b9
adjust tests per review feedback
jroelofs c259170
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs edf4acd
review feedback
jroelofs 8825586
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 80f3bd6
rebase
jroelofs 520912e
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs ed97a63
rebase
jroelofs f11d250
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs d313d09
rebase
jroelofs 7f2f351
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 655e788
rebase
jroelofs ac12665
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 049e5e1
rebase
jroelofs cf02c55
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 4b49db8
rebase
jroelofs df0e90e
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 6ff0110
rebase
jroelofs 7adcec3
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 73aca76
rebase
jroelofs e7533bc
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 61c05b4
rebase
jroelofs 81ee3f8
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 1c5dc08
rebase
jroelofs 347c0bd
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 5072af3
rebase
jroelofs 56f080a
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs f1b4f98
rebase
jroelofs f6e1fe8
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 06b95a9
rebase
jroelofs b6ae551
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 4905b8e
rebase
jroelofs bd1d6a5
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 8c65db7
rebase
jroelofs 952d096
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 305ec18
rebase
jroelofs 4ce1e1a
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs f75c2ef
rebase
jroelofs 7cf1f8d
[𝘀𝗽𝗿] landed version
jroelofs 8361221
[𝘀𝗽𝗿] landed version
jroelofs d0e7c98
[𝘀𝗽𝗿] changes introduced through rebase
jroelofs 3b7a350
rebase
jroelofs b9122d3
[𝘀𝗽𝗿] landed version
jroelofs 835af6c
[𝘀𝗽𝗿] landed version
jroelofs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-linux-gnu -verify %s -DSUPPORTED=1 | ||
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-apple-macosx -verify %s -DSUPPORTED=1 | ||
// RUN: %clang_cc1 -emit-llvm-only -triple arm64-apple-macosx -verify %s -DSUPPORTED=1 | ||
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-win32 -verify %s -DNOT_SUPPORTED=1 | ||
|
||
// expected-no-diagnostics | ||
|
||
#if __has_attribute(ifunc) | ||
# if NOT_SUPPORTED | ||
# error "ifunc appears to be supported on this platform, but shouldn't be" | ||
# endif | ||
#else | ||
# if SUPPORTED | ||
# error "ifunc should be supported on this platform, but isn't" | ||
# endif | ||
#endif |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.