

Add `-Zno-jump-tables` by ojeda · Pull Request #105812 · rust-lang/rust · GitHub
source link: https://github.com/rust-lang/rust/pull/105812
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Add -Zno-jump-tables
#105812
Conversation
Contributor
ojeda
commented
Dec 17, 2022
This flag mimics GCC/Clang's -fno-jump-tables
[1][2], which makes the codegen backend avoid generating jump tables when lowering switches.
In the case of LLVM, the "no-jump-tables"="true"
function attribute is added to every function.
The kernel currently needs it for x86 when enabling IBT [3], as well as for Alpha (plus VDSO objects in MIPS/LoongArch).
[1] https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#index-fno-jump-tables
[2] https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-fjump-tables
[3] https://github.com/torvalds/linux/blob/v6.1/arch/x86/Makefile#L75-L83
Collaborator
rustbot commented Dec 17, 2022
r? @TaKO8Ki (rustbot has picked a reviewer for you, use r? to override) |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
labels
This comment has been minimized.
Member
TaKO8Ki commented Dec 20, 2022
I want to reroll it. r? compiler |
Contributor
nikic commented Dec 20, 2022
@bors r+ |
Contributor
bors commented Dec 20, 2022
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
nikic commented Dec 20, 2022
@bors rollup=never assembly test |
Contributor
bors commented Dec 20, 2022
Contributor
bors commented Dec 20, 2022
|
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
labels
This comment has been minimized.
Contributor
nikic commented Dec 20, 2022
@bors r+ |
Contributor
bors commented Dec 20, 2022
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
bors commented Dec 20, 2022
Contributor
bors commented Dec 20, 2022
|
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
labels
This comment has been minimized.
Contributor
Author
ojeda commented Dec 20, 2022
I relaxed it to match the label without the initial period in the Apple target. |
Contributor
nikic commented Dec 20, 2022
@bors r+ |
Contributor
bors commented Dec 20, 2022
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
bors commented Dec 21, 2022
Contributor
bors commented Dec 21, 2022
|
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
labels
Collaborator
rust-log-analyzer commented Dec 21, 2022
Contributor
nikic commented Dec 21, 2022
@bors retry timeout in install awscli |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
Author
ojeda commented Dec 21, 2022
Thanks Nikita! |
Contributor
bors commented Dec 21, 2022
Contributor
bors commented Dec 21, 2022
|
Collaborator
rust-timer commented Dec 21, 2022
Finished benchmarking commit (a8207df): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
-
22
Pdk160 #35 Merged rnelson0 merged 2 co...
-
8
New issue fix the bug in hasDuplicate #1
-
11
codecov-io commented
-
11
Contributor Author baronfel commented
-
4
Supporting Miguel Ojeda’s Work on Rust in the Linux KernelJosh Aas, ISRG Executive DirectorJun 17, 2021ISRG’s Prossimo project for memory safety aims to coordinate efforts to move th...
-
10
New issue alloc: no_global_oom_handling: disable new()s, pin()s, etc. #86810
-
5
[PATCH 00/19] Rust support Messages in this threadFromMiguel Ojeda <>Subject[PATCH 00/19] Rust supportDateMon, 6 Dec 2021 15:02:54 +0100
-
11
[PATCH 00/13] [RFC] Rust support Messages in this threadFrom ojeda@kernel ...Subject[PATCH 00/13] [RFC] Rust supportDateWed, 14 Apr 2021 20:45:51 +0200
-
2
Conversation Copy link ...
-
6
Ojeda: Memory Safety for the World’s Largest Software Project [Posted June 27, 2022 by corbet] Miguel Ojeda has posted
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK