public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/PR89259-remove-dead-code)] Remove dead code. Date: Mon, 8 Nov 2021 08:44:46 +0000 (GMT) [thread overview] Message-ID: <20211108084446.0BEEA3858029@sourceware.org> (raw) https://gcc.gnu.org/g:12b6f8e5e5445ac2ecba2dd22859fbd28d96a433 commit 12b6f8e5e5445ac2ecba2dd22859fbd28d96a433 Author: Martin Liska <mliska@suse.cz> Date: Mon Nov 8 09:44:03 2021 +0100 Remove dead code. PR other/89259 liboffloadmic/ChangeLog: * runtime/offload_omp_host.cpp: Remove size < 0 for a size of size_t type. Diff: --- liboffloadmic/runtime/offload_omp_host.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/liboffloadmic/runtime/offload_omp_host.cpp b/liboffloadmic/runtime/offload_omp_host.cpp index 0439fec313b..4d8c57e3385 100644 --- a/liboffloadmic/runtime/offload_omp_host.cpp +++ b/liboffloadmic/runtime/offload_omp_host.cpp @@ -688,11 +688,6 @@ int omp_target_associate_ptr( return 1; } - // An incorrect size is treated as failure - if (size < 0) { - return 1; - } - // If OpenMP allows wrap-around for device numbers, enable next line //Engine& device = mic_engines[device_num % mic_engines_total]; Engine& device = mic_engines[device_num];
reply other threads:[~2021-11-08 8:44 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211108084446.0BEEA3858029@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).