https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65109
--- Comment #8 from Jeffrey A. Law <law at redhat dot com> --- Yea, I should have realized you'd try that. The other thought that comes to mind is __builtin_saveregs, but that doesn't seem to be implemented on PPC, and even if it was implemented we'd need some way to find the address of the save area. My inclination is to go with Martin's patch. At first glance it doesn't appear to compromise the intent of the test. I'll look at it more deeply when I get back after a short errand.