Failed to build head on powerpc64 using gcc 6.3.0 with error:
/usr/src/sys/powerpc/aim/trap_subr64.S:350:(.text+0x1f0): call to `longjmp' lacks nop, can't restore toc; (-mcmodel=small toc adjust stub)
Nathan suggested this change which seems to fix it for me.