From: badumbatish Date: Wed, 24 Jul 2024 05:17:12 +0000 (-0700) Subject: Added counting to check for asm_construct_outputs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0df55806933cda31af2abc3b666a6a2eec52875;p=thirdparty%2Fgcc.git Added counting to check for asm_construct_outputs gcc/rust/ChangeLog: * backend/rust-compile-asm.cc (CompileAsm::asm_construct_outputs): Set up counting to check --- diff --git a/gcc/rust/backend/rust-compile-asm.cc b/gcc/rust/backend/rust-compile-asm.cc index 301da4001254..aa83fb751aa4 100644 --- a/gcc/rust/backend/rust-compile-asm.cc +++ b/gcc/rust/backend/rust-compile-asm.cc @@ -96,6 +96,13 @@ tree CompileAsm::asm_construct_outputs (HIR::InlineAsm &expr) { // TODO: Do i need to do this? + int count = 0; + + for (auto &output : expr.get_operands ()) + { + if (output.register_type == AST::InlineAsmOperand::RegisterType::Out) + count++; + } return NULL_TREE; }