https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102347
Bug ID: 102347 Summary: "fatal error: target specific builtin not available" with MMA and LTO Product: gcc Version: 10.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: chip.kerchner at ibm dot com CC: marxin at gcc dot gnu.org Target Milestone: --- I'm seeing MMA problems with LTO. With this simple program (main.ii) ---------------------- #pragma GCC target "cpu=power10" int main() { float *b; __vector_quad c; __builtin_mma_disassemble_acc(b, &c); return 0; } ---------------------- And this compile ---------------------- g++ -flto=auto -mcpu=power9 main.ii ---------------------- I'm seeing this error (which does NOT occur without LTO) ---------------------- lto1: error: '__builtin_mma_xxmfacc_internal' requires the '-mmma' option lto1: fatal error: target specific builtin not available compilation terminated. ----------------------