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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |10.3.0, 11.2.0

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
A better self-contained testcase, using builtins:
static void js_error(void);
static int top;
static void js_throw(void)
{
        __builtin_exit(0);
}

// LOCATION A -- if js_pop is here, the bug is present
static void js_pop(void)
{
        if (++top > 100)
                js_error();
}

static void jsC_error(const char *v)
{
        if (v[0] == 0)
                js_error();
        js_throw();
}
static void checkfutureword(const char *exp)
{
        if (!__builtin_strcmp(exp, "const"))
                jsC_error("boom");
}
static void js_error(void) {
        checkfutureword("foo");
        checkfutureword("bar");
        js_pop();
}
int main(void)
{
        checkfutureword("const");
        __builtin_abort ();
}

Reply via email to