public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: uname: drop useless support for unsupported CPU arches Date: Fri, 29 Jul 2022 10:20:15 +0000 (GMT) [thread overview] Message-ID: <20220729102015.300C13857BAB@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f145174f801b10b75fd7246d374764f3301bd575 commit f145174f801b10b75fd7246d374764f3301bd575 Author: Corinna Vinschen <corinna@vinschen.de> Date: Fri Jul 29 12:19:54 2022 +0200 Cygwin: uname: drop useless support for unsupported CPU arches Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/uname.cc | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc index 68fa51166..136b1c57a 100644 --- a/winsup/cygwin/uname.cc +++ b/winsup/cygwin/uname.cc @@ -118,31 +118,9 @@ uname (struct utsname *in_name) /* CPU type */ switch (wincap.cpu_arch ()) { - case PROCESSOR_ARCHITECTURE_INTEL: - unsigned int ptype; - if (wincap.cpu_level () < 3) /* Shouldn't happen. */ - ptype = 3; - else if (wincap.cpu_level () > 9) /* P4 */ - ptype = 6; - else - ptype = wincap.cpu_level (); - __small_sprintf (name->machine, "i%d86", ptype); - break; - case PROCESSOR_ARCHITECTURE_IA64: - strcpy (name->machine, "ia64"); - break; case PROCESSOR_ARCHITECTURE_AMD64: strcpy (name->machine, "x86_64"); break; - case PROCESSOR_ARCHITECTURE_IA32_ON_WIN64: - strcpy (name->machine, "ia32-win64"); - break; - case PROCESSOR_ARCHITECTURE_ALPHA: - strcpy (name->machine, "alpha"); - break; - case PROCESSOR_ARCHITECTURE_MIPS: - strcpy (name->machine, "mips"); - break; default: strcpy (name->machine, "unknown"); break;
reply other threads:[~2022-07-29 10:20 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=20220729102015.300C13857BAB@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.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).