https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109004

--- Comment #10 from bugreporter66 at gmail dot com ---
I checked the simple version of the test with QEMU 6.2.0 and 7.0.0:

ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ powerpc64le-linux-gnu-g++ -O2
-mcpu=power9 -ffast-math -static sample.cpp -o sample_p64
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ qemu-ppc64le --version
qemu-ppc64le version 6.2.0
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ qemu-ppc64le -cpu POWER9
sample_p64 
qemu: uncaught target signal 6 (Aborted) - core dumped
Aborted (core dumped)
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 

...

ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ qemu-ppc64le --version
qemu-ppc64le version 7.0.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ qemu-ppc64le -cpu POWER9
sample_p64 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 
ubuntu-mate@ubuntu-mate:~/Downloads/test_p64$ 

So it works after 7.0.0

Reply via email to