Hi all, 

Came across a segfault and was able to widdle it down to this small example. 


typedef struct 
{ 
long a; 
long b; 
} astruct; 

void getsomething(long *);

void dosomething(astruct *s) 
{ 
long t; 

getsomething(&t);
s->a = t; 

if( (s->b - s->a) >= 3)
s->a = s->b;
}

It segfaults with the latest Windows version and with my compiled CVS 
version from August 1st on my Debian machine.

The command line is: 
msp430-gcc -O -c -Wall -mmcu=msp430x149 segfault.c

The problem occurs with -O and -O1, but not with -O2.

Reply via email to