We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863cfb2 commit 1d064f1Copy full SHA for 1d064f1
src/base.rs
@@ -77,7 +77,10 @@ pub fn compile_codegen_unit<'tcx>(tcx: TyCtxt<'tcx>, cgu_name: Symbol) -> (Modul
77
for arg in &tcx.sess.opts.cg.llvm_args {
78
context.add_command_line_option(arg);
79
}
80
+ // NOTE: an optimization (https://github.com/rust-lang/rustc_codegen_gcc/issues/53).
81
context.add_command_line_option("-fno-semantic-interposition");
82
+ // NOTE: Rust relies on LLVM not doing TBAA (https://github.com/rust-lang/unsafe-code-guidelines/issues/292).
83
+ context.add_command_line_option("-fno-strict-aliasing");
84
if env::var("CG_GCCJIT_DUMP_CODE").as_deref() == Ok("1") {
85
context.set_dump_code_on_compile(true);
86
0 commit comments