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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There are other reasons why versioning is forbidden, e.g.
__attribute__((target_clones ("avx", "default")))
void
foo (void)
{
  static void *p = &&lab;
  asm volatile ("" : "+m" (p) : : "memory");
lab:;
}

and

__attribute__((target_clones ("avx", "default")))
int
foo (int x)
{
  __label__ lab;
  __attribute__((noinline)) void bar () { goto lab; }
  if (x == 5)
    bar ();
  x++;
lab:;
  return x;
}

ICE too, even when they don't have any extra attributes.  So the target clones
code needs to cope with those in any case.

Reply via email to