https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64876
boger at us dot ibm.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gcc dot gnu.org, | |amodra at gmail dot com --- Comment #1 from boger at us dot ibm.com --- I found some notes I had from Alan on his change related to GO closures for powerpc and found that all his changes for libffi are in but this gcc patch is not in gcc trunk: Index: gcc/config/rs6000/linux64.h =================================================================== --- gcc/config/rs6000/linux64.h (revision 217330) +++ gcc/config/rs6000/linux64.h (working copy) @@ -115,6 +115,14 @@ if (dot_symbols) \ error ("-mcall-aixdesc incompatible with -mabi=elfv2"); \ } \ + if (DEFAULT_ABI == ABI_AIX \ + && strcmp (lang_hooks.name, "GNU Go") == 0) \ + { \ + if (global_options_set.x_TARGET_POINTERS_TO_NESTED_FUNCTIONS \ + && TARGET_POINTERS_TO_NESTED_FUNCTIONS) \ + error ("-mpointers-to-nested-functions is incompatible with Go"); \ + TARGET_POINTERS_TO_NESTED_FUNCTIONS = 0; \ + } \ if (rs6000_isa_flags & OPTION_MASK_RELOCATABLE) \ { \ rs6000_isa_flags &= ~OPTION_MASK_RELOCATABLE; \ After applying this patch and rebuilding the regressions go away.