This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/84723] [8 Regression] ICE in create_target_clone, at multiple_target.c:275
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Mar 2018 10:25:22 +0000
- Subject: [Bug middle-end/84723] [8 Regression] ICE in create_target_clone, at multiple_target.c:275
- Auto-submitted: auto-generated
- References: <bug-84723-4@http.gcc.gnu.org/bugzilla/>
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.