This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/84723] [8 Regression] ICE in create_target_clone, at multiple_target.c:275


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]