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: drop i386 refs from header files where source isn't affected
Date: Mon, 16 May 2022 16:17:33 +0000 (GMT)	[thread overview]
Message-ID: <20220516161733.203723948808@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b3b9e231de85eeb574f7bf37d8fdd3c517b853dc

commit b3b9e231de85eeb574f7bf37d8fdd3c517b853dc
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Mon May 16 17:51:14 2022 +0200

    Cygwin: drop i386 refs from header files where source isn't affected
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/cygserver_ipc.h          | 8 +-------
 winsup/cygwin/include/asm/types.h      | 2 +-
 winsup/cygwin/include/machine/_types.h | 2 --
 3 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/winsup/cygwin/cygserver_ipc.h b/winsup/cygwin/cygserver_ipc.h
index 54e15c3de..05029aff7 100644
--- a/winsup/cygwin/cygserver_ipc.h
+++ b/winsup/cygwin/cygserver_ipc.h
@@ -63,15 +63,9 @@ public:
   operator int () const { return i; }
   int operator = (int ni) { return i = ni; }
 
-#ifndef __x86_64__
-  /* On x86_64: size_t == vm_offset_t == unsigned long */
-  operator size_t () const { return sz; }
-  size_t operator = (size_t nsz) { return sz = nsz; }
-#else
-  /* On i686: ssize_t == long == int */
+  /* size_t == vm_offset_t == unsigned long. Ssize_t needs overloading */
   operator ssize_t () const { return ssz; }
   ssize_t operator = (ssize_t nssz) { return ssz = nssz; }
-#endif
 
   operator vm_offset_t () const { return off; }
   vm_offset_t operator = (vm_offset_t noff) { return off = noff; }
diff --git a/winsup/cygwin/include/asm/types.h b/winsup/cygwin/include/asm/types.h
index e1e947054..af621fd45 100644
--- a/winsup/cygwin/include/asm/types.h
+++ b/winsup/cygwin/include/asm/types.h
@@ -20,7 +20,7 @@ typedef unsigned short __u16;
 typedef __signed__ int __s32;
 typedef unsigned int __u32;
 
-/* As on Linux.  Works for both platforms, i686 and x86_64. */
+/* As on Linux. */
 typedef __signed__ long long __s64;
 typedef unsigned long long __u64;
 
diff --git a/winsup/cygwin/include/machine/_types.h b/winsup/cygwin/include/machine/_types.h
index d84890f40..cc4c9b343 100644
--- a/winsup/cygwin/include/machine/_types.h
+++ b/winsup/cygwin/include/machine/_types.h
@@ -23,11 +23,9 @@ typedef __int32_t __blksize_t;
 typedef __uint32_t __dev_t;
 
 #define __machine_fsblkcnt_t_defined
-/* Keep as is.  32 bit on i386, 64 bit on x86_64. */
 typedef unsigned long __fsblkcnt_t;
 
 #define __machine_fsfilcnt_t_defined
-/* Keep as is.  32 bit on i386, 64 bit on x86_64. */
 typedef unsigned long __fsfilcnt_t;
 
 #define __machine_uid_t_defined


                 reply	other threads:[~2022-05-16 16:17 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=20220516161733.203723948808@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: link
Be 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).