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 f9f45c6 commit 7d06bddCopy full SHA for 7d06bdd
src/librustc_trans/base.rs
@@ -1196,6 +1196,9 @@ pub fn maybe_create_entry_wrapper(ccx: &CrateContext) {
1196
}
1197
let llfn = declare::declare_cfn(ccx, "main", llfty);
1198
1199
+ // `main` should respect same config for frame pointer elimination as rest of code
1200
+ attributes::set_frame_pointer_elimination(ccx, llfn);
1201
+
1202
let llbb = unsafe {
1203
llvm::LLVMAppendBasicBlockInContext(ccx.llcx(), llfn, "top\0".as_ptr() as *const _)
1204
};
0 commit comments