https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82138

            Bug ID: 82138
           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: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: andrewjenner at gcc dot gnu.org, charlet at gcc dot gnu.org,
                    unassigned at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpcspe-*-linux-gnu*

+++ This bug was initially created as a clone of Bug #81979 +++

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}

Reply via email to