https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81979
Bug ID: 81979 Summary: [8 Regression] Assembler messages: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section} Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: powerpcspe-*-linux-gnu* gas 2.28.1 rejects the code generated by gcc-8.0.0-alpha20170820 snapshot (r251211) w/ -fPIC -O2 -freorder-blocks-and-partition for the following snippet: int du; void xf (int ee) { int cq; while (cq < 1) { int ox; for (ox = 0; ox < 4; ++ox) cq /= (ee != 0) ? 2 : ee; } du = 1; for (;;) { } } % powerpc-e500v2-linux-gnuspe-gcc-8.0.0-alpha20170820 -fPIC -O2 -freorder-blocks-and-partition -c v8qdkqlm.c /tmp/cchaREkd.s: Assembler messages: /tmp/cchaREkd.s:15: Error: can't resolve `.got2' {.got2 section} - `.LCF0' {.text.unlikely section}