Skip to content

Commit 03b6764

Browse files
committed
rustc_codegen_gcc: bug on tail calls
1 parent 0ace4e6 commit 03b6764

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

compiler/rustc_codegen_gcc/src/builder.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,18 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
13781378
call
13791379
}
13801380

1381+
fn tail_call(
1382+
&mut self,
1383+
_typ: Type<'gcc>,
1384+
_fn_attrs: Option<&CodegenFnAttrs>,
1385+
_fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
1386+
_func: RValue<'gcc>,
1387+
_: &[RValue<'gcc>],
1388+
_: Option<&Funclet>
1389+
) {
1390+
bug!("tail calls are not yet supported in `rustc_codegen_gcc` backend")
1391+
}
1392+
13811393
fn zext(&mut self, value: RValue<'gcc>, dest_typ: Type<'gcc>) -> RValue<'gcc> {
13821394
// FIXME(antoyo): this does not zero-extend.
13831395
if value.get_type().is_bool() && dest_typ.is_i8(&self.cx) {

0 commit comments

Comments
 (0)