https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64703
--- Comment #7 from Alan Modra <amodra at gmail dot com> --- Created attachment 34539 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34539&action=edit prototype patch How does this look as a potential fix? Obviously I'd need to provide the new targetm field and arrange for it to be set on powerpc64 elfv1, but before I do that I'd like some indication that this is going in the right direction.