Menu

#3061 [hc08/s08] SIGSEGV on code using goto to go back and forth

closed-fixed
None
other
5
2020-06-15
2020-06-14
No
void baz(int);
int bar(void);

void foo(void)
{
    int x;
    goto forward;

back:
    baz(x);
    return;

forward:
    x = bar();
    goto back;
}

Compiling this with sdcc test.c -mhc08 (or -ms08) yields test.c:15: error 9: FATAL Compiler Internal Error in file 'SDCCBBlock.c' line number '546' : code generator internal error. Tested with commit 11672.

Discussion

  • Erik Petrich

    Erik Petrich - 2020-06-15
    • status: open --> closed-fixed
    • assigned_to: Erik Petrich
     
  • Erik Petrich

    Erik Petrich - 2020-06-15

    Fixed in revision [r11673]

     

Log in to post a comment.

MongoDB Logo MongoDB