https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115977
--- Comment #2 from A. Wilcox (awilfox) <awilfox at adelielinux dot org> --- awilcox@gwyn gtx $ c++ -fno-stack-protector -mcpu=970 -mtune=power9 -O2 -o test gtx_euler_angle.cpp; ./test; echo $? 0 awilcox@gwyn gtx $ c++ -mcpu=970 -mtune=power9 -O2 -o test gtx_euler_angle.cpp; ./test; echo $? 4 awilcox@gwyn gtx $ c++ -fno-stack-protector -mcpu=970 -mtune=power9 -O2 -o test gtx_euler_angle.cpp; ./test; echo $? 0 awilcox@gwyn gtx $ c++ -mcpu=power5 -mtune=power9 -O2 -o test gtx_euler_angle.cpp; ./test; echo $? 0 Yes, it does: awilcox@gwyn /var/tmp/portage/media-libs/glm-1.0.1/work/glm-1.0.1/test/gtx $ c++ -mcpu=970 -mtune=power9 -ffp-contract=off -O2 -o test gtx_euler_angle.cpp; ./test; echo $? 0