Re: Bug#1105110: python3.14 FTBFS on m68k: Assertion `!PyStackRef_IsTaggedInt(ref)' failed

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.68k
Message-ID <aafa90862eb654815298f5dc0ea6c5f6522847c7.camel@physik.fu-berlin.de>
Hi Laurent,

On Wed, 2025-05-14 at 10:10 +0200, Laurent Vivier wrote:
> You can use __alignof__() to have the data type alignment:
> 
>      int main(void)
>      {
>              printf("alignof(short) %ld\n", __alignof__(short));
>              printf("alignof(int) %ld\n", __alignof__(int));
>              printf("alignof(long) %ld\n", __alignof__(long));
>              printf("alignof(long long) %ld\n", __alignof__(long long));
>      }
> 
> On x86_64, it gives:
> 
> alignof(short) 2
> alignof(int) 4
> alignof(long) 8
> alignof(long long) 8

Is alignof() supported in ancient versions of GCC and the Sun compiler?

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
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.