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

            Bug ID: 93274
           Summary: target_clones produces symbols with random digits with
                    -fPIC
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

__attribute__((target_clones("default", "sse3")))
static void dt_simd_memcpy (const float *const __restrict__ in,
                     float *const __restrict__ out,
                     const int num_elem)
{
  for(int k = 0; k < num_elem; k++)
    out[k] = in[k];
}

void bar(float *in, float *out, int num_elem)
{
  dt_simd_memcpy (in, out, num_elem);
}

differs in generated code on each invocation of GCC with -fPIC

Reply via email to