Menu

#3036 [stm8] FATAL Compiler Internal Error : code generator internal error on simple code just calling a subroutine

closed-duplicate
None
other
5
2020-06-18
2020-06-09
No
char *g(const char *s, int c);

void f()
{
  char *s, t;
  g(s, t);
}

Compiling this with sdcc test.c -mstm8 results in test.c:6: error 9: FATAL Compiler Internal Error in file 'gen.c' line number '421' : code generator internal error. Tested with commit 11662.

Discussion

  • Gabriel Ravier

    Gabriel Ravier - 2020-06-09

    This also triggers on simpler code such as this :

    int f()
    {
      int i;
      return i;
    }
    
     
  • Erik Petrich

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

    Erik Petrich - 2020-06-18

    This is basically the same uninitialized variable problem as bug [#3045] and likewise fixed by revisions [r11667] and [r11670]

     

    Related

    Bugs: #3045


Log in to post a comment.

MongoDB Logo MongoDB