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

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Simple testcase from the other bug:
/* { dg-do link } */
/* { dg-options "-flto-partition=max -flto -O2" } */
/* { dg-require-effective-target lto } */

/* Test for putting static with label references into same LTO partition */

int x, y;

void f(int i)
{
        typedef void *ptr;
        static ptr data[] = {&&l1,&&l2,&&l3,&&l4};

        goto *data[i];
l1:
        x++;
l2:
        y++;
l3:
        x--;
l4:
        y--;
}

int main(void)
{
        f(x);
        return 0;
}

Reply via email to