Hello!

I think I've found a bug. 

When I was compiling a program and I got an 
Internal Error "Segmentation Fault". 

I am using mspgcc in Windows 2000 professional Athlon XP 2800 and 
512MB RAM. The build is install package has the date 20051026.

To reproduce the bug put the program's (below) content in a file 
named "bug.c" and try this line to compile:

msp430-gcc -mmcu=msp430x149 -O2 -Wall -g   -c -o bug.o bug.c

I got this:

bug.c: In function `bar':
bug.c:31: internal error: Segmentation fault
Please submit a full bug report,
...

I hope this can help.


Hugs.
Ric

---------------------  bug.c -------------------------
/* Bug Test for 64 -> 32 bit int implicit conversion */


unsigned long long int aaa;


void foo(long int a, unsigned char b)
{
  /* Do something, or nothing */
  if (a & 0x00ff)
    {
      asm("nop");
    }
  else
    {
      asm("nop");
    };
};


void bar(unsigned char b)
{
  if (aaa & 0x00ff)
    {
      foo(aaa,10);
    }
  else
    {
      foo(aaa,30);
    };
};

------------------ end of bug.c ---------------------

 
                 

Reply via email to