Menu ▾ ▴

#3051 [pdk13/14/15] SIGSEGV on simple code changing variable after condition

closed-duplicate
None
other
5
2020-06-13
2020-06-11
No
void g();
void f(int b)
{
    int x;
    if (b)
        x = 0;
    else
        x &= 1;
    if (x == 0)
        g();
}

Compiling this with sdcc test.c -mpdk13 results in Caught signal 11: SIGSEGV. Tested with commit 11662.

Discussion

  • Erik Petrich

    Erik Petrich - 2020-06-13

    Same root cause as [#3046] and likewise fixed with revision [r11667]

     

    Related

    Bugs: #3046

  • Erik Petrich

    Erik Petrich - 2020-06-13
    • status: open --> closed-duplicate
    • assigned_to: Erik Petrich
     

Log in to post a comment.