Miscompilation on arm64 with GCC LTO

2023-05-09 Thread Sam James
--=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, Note that this has been reported twice before [0][1] but I think I've got a= more specific test case. This was reported in Gentoo [2] as well. gmp-6.2.1 when built with gcc 12/13/14 (trunk as of today)

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 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-Janua