diff --git a/libc/src/__support/OSUtil/gpu/io.cpp b/libc/src/__support/OSUtil/gpu/io.cpp --- a/libc/src/__support/OSUtil/gpu/io.cpp +++ b/libc/src/__support/OSUtil/gpu/io.cpp @@ -15,7 +15,7 @@ namespace __llvm_libc { void write_to_stderr(cpp::string_view msg) { - rpc::Client::Port port = rpc::client.open(); + rpc::Client::Port port = rpc::client.open(); port.send_n(msg.data(), msg.size()); port.recv([](rpc::Buffer *) { /* void */ }); port.close(); diff --git a/libc/src/__support/RPC/rpc.h b/libc/src/__support/RPC/rpc.h --- a/libc/src/__support/RPC/rpc.h +++ b/libc/src/__support/RPC/rpc.h @@ -39,10 +39,9 @@ WRITE_TO_STREAM = 4, MALLOC = 5, FREE = 6, - PRINT_TO_STDERR = 7, - TEST_INCREMENT = 8, - TEST_INTERFACE = 9, - TEST_STREAM = 10, + TEST_INCREMENT = 7, + TEST_INTERFACE = 8, + TEST_STREAM = 9, }; /// A fixed size channel used to communicate between the RPC client and server. diff --git a/libc/utils/gpu/loader/Server.h b/libc/utils/gpu/loader/Server.h --- a/libc/utils/gpu/loader/Server.h +++ b/libc/utils/gpu/loader/Server.h @@ -58,19 +58,6 @@ } break; } - case rpc::Opcode::PRINT_TO_STDERR: { - uint64_t sizes[rpc::MAX_LANE_SIZE] = {0}; - void *strs[rpc::MAX_LANE_SIZE] = {nullptr}; - port->recv_n(strs, sizes, [&](uint64_t size) { return new char[size]; }); - port->send([](rpc::Buffer *) { /* void */ }); - for (uint64_t i = 0; i < rpc::MAX_LANE_SIZE; ++i) { - if (strs[i]) { - fwrite(strs[i], sizes[i], 1, stderr); - delete[] reinterpret_cast(strs[i]); - } - } - break; - } case rpc::Opcode::EXIT: { port->recv([](rpc::Buffer *buffer) { exit(reinterpret_cast(buffer->data)[0]);