diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2021-03-08 01:59:10 +0200 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2021-03-10 12:21:43 +0200 |
| commit | 0517acd54353869b2fbfc50af61ea7bd1fd309e0 (patch) | |
| tree | a3670ca840e1c6def8f4be36a7419f2682488863 /compiler/rustc_session/src | |
| parent | 861872bc453bde79b83ff99d443d035225f10e87 (diff) | |
| download | rust-0517acd54353869b2fbfc50af61ea7bd1fd309e0.tar.gz rust-0517acd54353869b2fbfc50af61ea7bd1fd309e0.zip | |
Remove the -Zinsert-sideeffect
This removes all of the code we had in place to work-around LLVM's
handling of forward progress. From this removal excluded is a workaround
where we'd insert a `sideeffect` into clearly infinite loops such as
`loop {}`. This code remains conditionally effective when the LLVM
version is earlier than 12.0, which fixed the forward progress related
miscompilations at their root.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 79bbad8307b..d9e5a186073 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -967,10 +967,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, "control whether `#[inline]` functions are in all CGUs"), input_stats: bool = (false, parse_bool, [UNTRACKED], "gather statistics about the input (default: no)"), - insert_sideeffect: bool = (false, parse_bool, [TRACKED], - "fix undefined behavior when a thread doesn't eventually make progress \ - (such as entering an empty infinite loop) by inserting llvm.sideeffect \ - (default: no)"), instrument_coverage: bool = (false, parse_bool, [TRACKED], "instrument the generated code to support LLVM source-based code coverage \ reports (note, the compiler build config must include `profiler = true`, \ |
