Re: Miscompilation on arm64 with GCC LTO

2023-07-03 Thread Marc Glisse
On Mon, 8 May 2023, Arsen Arsenović wrote: gmp-6.2.1 when built with gcc 12/13/14 (trunk as of today) combined with -O2 -flto or -O3 -flto is miscompiled, causing a few issues: 1. `make check` for gmp fails the 't-constants' test I am definitely not a pro of aarch64 or LTO, but from a diff of

Re: Miscompilation on arm64 with GCC LTO

2023-05-10 Thread Sam James
Niels Möller writes: > Sam James writes: > >> Note that Jannik identified the bad commit [0] as 18082:c5d0fcb06969 [4]. > [...] >> [0] https://gmplib.org/list-archives/gmp-bugs/2020-December/004981.html >> [1] https://gmplib.org/list-archives/gmp-bugs/2023-January/005223.html >> [3]

Re: Miscompilation on arm64 with GCC LTO

2023-05-10 Thread Sam James
Torbjörn Granlund writes: > Have you tried using a recent GMP snapshot? > If not, please do. > > https://gmplib.org/download/snapshot/ gmp-6.2.99-20221117121717.tar.zst seems to fail for the same way for me, with t-constants failing and GCC hanging/erroring in the same way too.

Re: Miscompilation on arm64 with GCC LTO

2023-05-10 Thread Arsen Arsenović
Hi, Torbjörn Granlund writes: > He surely has some patience issues. > > Please let Sam know about mailing list moderation and perhaps about that > the earth is round and thus have different time zones; sending three > copies of the same message within a couple of hours is not appreciated. Heh,

Re: Miscompilation on arm64 with GCC LTO

2023-05-10 Thread Torbjörn Granlund
Have you tried using a recent GMP snapshot? If not, please do. https://gmplib.org/download/snapshot/ -- Torbjörn Please encrypt, key id 0xC8601622 ___ gmp-bugs mailing list gmp-bugs@gmplib.org https://gmplib.org/mailman/listinfo/gmp-bugs

Re: Miscompilation on arm64 with GCC LTO

2023-05-10 Thread Niels Möller
Sam James writes: > Note that Jannik identified the bad commit [0] as 18082:c5d0fcb06969 [4]. [...] > [0] https://gmplib.org/list-archives/gmp-bugs/2020-December/004981.html > [1] https://gmplib.org/list-archives/gmp-bugs/2023-January/005223.html > [3]

Re: Miscompilation on arm64 with GCC LTO

2023-05-09 Thread Torbjörn Granlund
Arsen Arsenović writes: I'm forwarding a message from Sam James, a fellow Gentoo developer, as he seems to be having some mail delivery issues. He surely has some patience issues. Please let Sam know about mailing list moderation and perhaps about that the earth is round and thus have