At 08:02 10-08-05 +0200, you wrote:
>Hi!
>
>I found 2 bugs in msp430-gcc compiled from CVS checkout from 09.06.2005
>running at Solaris 5.8 that have something to do with the handling of types
>char and long long. MSP430-GCC is invoked with
>msp430-gcc -g -O2 -mmcu=msp430x149 infile.c -o outfile.elf
>
>------------------------------------
>BUG 1 - char to long long conversion
>MSP430-GCC crashes with segmentation fault running the following code: (Note
>that I use some dummy copy functionts, to avoid too much optimisation.)
>/******************************************************************/
>#include <stdlib.h>
>#include <msp430x14x.h>
>
>unsigned char copyc(unsigned char in);
>unsigned long long int copylli(unsigned long long int in);

Just a thought that pops into my mind: Is "long long int" a valid type? If
you want a 64 bit number, the proper type is "long long". I would not rely
on the "int" type since the size of it depends on the architecture.

Nico Coesel


Reply via email to