public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: uname: drop useless support for unsupported CPU arches
@ 2022-07-29 10:20 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-07-29 10:20 UTC (permalink / raw)
  To: cygwin-cvs

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-29 10:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-29 10:20 [newlib-cygwin] Cygwin: uname: drop useless support for unsupported CPU arches Corinna Vinschen

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).