Re: [PATCH 0/4] More arch specific fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 29, 2019 at 01:50:23AM +0000, Ramsay Jones wrote:
> 
> The following <TYPE-WIDTH> macros were output by sparse, but
> not by gcc:
> 
> __INTMAX_WIDTH__
> __INTPTR_WIDTH__
> __INT_WIDTH__
> __LONG_WIDTH__
> __PTRDIFF_WIDTH__
> __SCHAR_WIDTH__
> __SHRT_WIDTH__
> __SIZE_WIDTH__
> __WCHAR_WIDTH__
> __WINT_WIDTH__
> 
> ... but I think this has more to do with the version of gcc on
> that system (Linux Mint 18.3, based on Ubuntu 16.04), which was
> version 5.4.0.

Yes, indeed. IIRC, these were introduce between GCC 7.2 & 7.3.
 
> Some of the missing macros included:
> i386
> __i686
> __i686__
> __pentiumpro
> __pentiumpro__
> 
> Again Just FYI.

Yes. I tend to think it's best to avoid 'i386' completely.
For the others, they depend on GCC's default and on '-mcpu=<CPU>'.
I feel it's more correct for sparse to not define them at all,
meaning 'only the generic i386 is supported'.

Thank you very much to checking all this.
-- Luc



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux