Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 801365c

Browse files
committedMar 16, 2025
Implement no-op set_tail_call for GCC backend
1 parent 989d72f commit 801365c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎compiler/rustc_codegen_gcc/src/builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
16851685
fn apply_attrs_to_cleanup_callsite(&mut self, _llret: RValue<'gcc>) {
16861686
// FIXME(bjorn3): implement
16871687
}
1688+
1689+
fn set_tail_call(&mut self, _call_inst: RValue<'gcc>) {
1690+
// TODO: Implement proper tail call optimization for GCC backend
1691+
// For now, this is a no-op to make compilation work
1692+
}
16881693

16891694
fn set_span(&mut self, _span: Span) {}
16901695

0 commit comments

Comments
 (0)
Failed to load comments.