#1079 pic16 zeropad crashes

closed-fixed
5
2013-05-25
2006-03-08
Anonymous
No

1 - sample code:
-------------------------------
struct x {
short a;
char b[10];
};

struct x teststruct[5] = {
{ 10, { 1, 2, 3, 4, 5} },
{ 20, { 11 } },
{ 30, { 6, 7, 8} }
};

void
main(void)
{
}
-------------------------------

2 - sdcc command:
>sdcc -mpic16 -S t.c

3 - sdcc version:
>sdcc -v
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.5.4 #1221 (Mar 8 2006) (MINGW32)

4 - error message:
Caught signal 11: SIGSEGV

It works with:
struct x teststruct[3] = { ...
or
struct x teststruct[] = { ...

Borut

Discussion

  • Borut Ražem

    Borut Ražem - 2006-03-08

    Logged In: YES
    user_id=568035

    I forgot to mention that this code is a minimized version of
    zeropad.c regression test and I forgot to log in when I
    submitted the bug :-(

    Borut

     
  • Vangelis Rokas

    Vangelis Rokas - 2006-05-01
    • milestone: --> fixed
    • assigned_to: nobody --> vrokas
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks