Re: [PATCH 2/3] Move register_t to system-specific header

Sebastian Huber <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
----- Am 14. Feb 2019 um 15:02 schrieb Corinna Vinschen [email protected]:

> On Feb 14 11:15, Sebastian Huber wrote:
>> 
>> 
>> ----- Am 13. Feb 2019 um 21:28 schrieb Corinna Vinschen [email protected]:
>> 
>> > On Feb 13 20:01, Sebastian Huber wrote:
>> >> ----- Am 13. Feb 2019 um 18:06 schrieb Corinna Vinschen [email protected]:
>> >> 
>> >> > On Feb 13 14:19, Sebastian Huber wrote:
>> [...]
>> >> If I change the type to __intptr_t wounldn't this break ABI
>> >> compatibility on Cygwin?
>> > 
>> > In how far?  Cygwin's 64 bit ABI is LP64.
>> 
>> The type for register_t changes from int to __intptr_to, so 32-bit to 64-bit on
>> LP64.
> 
> register_t is not used in Cygwin itself.  I don't know its purpose,
> actually.  If it has been defined as 32 bit type on 64 bit, wasn't that
> a bug and thus unusable before?

Yes, a 32-bit register_t type on an LP64 system is a bug. It is used in some situations like intptr_t in FreeBSD.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.