Here the output when compiling the msp430-libc package:

husky: {955} make
===> Checking for vulnerabilities in msp430-libc-20040426
===> Building for msp430-libc-20040426
msp430-gcc   -mmcu=msp1 -I./../include -I. -Wall -O2 -g -c libm/sf_rint.c -o 
msp1/sf_rint.o
In file included from libm/fdlibm.h:16,
                 from libm/sf_rint.c:16:
./../include/math.h:112: warning: conflicting types for built-in function 
'cabs'
./../include/math.h:190: warning: conflicting types for built-in function 
'cabsf'
libm/sf_rint.c: In function `rintf':
libm/sf_rint.c:70: error: unrecognizable insn:
(insn 370 369 101 5 libm/sf_rint.c:51 (set (subreg:HI (mem/v/f:SF (reg/f:HI 4 
r4) [3 w+0 S4 A32]) 2)
        (subreg:HI (reg:SF 58) 2)) -1 (nil)
    (expr_list:REG_DEAD (reg:SF 58)
        (nil)))
libm/sf_rint.c:70: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake: *** [msp1/sf_rint.o] Error 1

Is there a work-around for this?

cheerio Berndt

On Sun, 25 Apr 2004 15:56, Garst R. Reese wrote:
> To confirm this I changed a volatile int to a volatile long and that
> triggered the bug. As I noted earlier, it is also triggered by compling
> msp430-libc in sf_rint.c
>
> Garst
>
> "Francisco T. A. Silva" wrote:
> > Hi all,
> >
> > I've just built mspgcc 3.4.0 with an uptodate gcc/gcc-current from CVS.
> > The following bug is a show stopper for me :(
> >
> > The error is triggered by the volatile keyword with long and long long
> > types.
> >
> > [teste]$ cat test.c
> >
> > volatile long test;
> >
> > void main (void) {
> >          test = 0;
> > }
> >
> > [teste]$ msp430-gcc --version
> > msp430-gcc (GCC) 3.4.0
> > Copyright (C) 2004 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.  There is
> > NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> > PURPOSE.
> >
> > [teste]$ msp430-gcc -O test.c
> > test.c: In function `main':
> > test.c:3: warning: return type of 'main' is not `int'
> > test.c:5: error: unrecognizable insn:
> > (insn 17 16 11 0 (set (subreg:HI (mem/v/f:SI (symbol_ref:HI ("test")
> > <var_decl 0x401ceca8 test>) [0 test+0 S4 A16]) 2) (const_int 0 [0x0])) -1
> > (nil)
> >      (nil))
> > test.c:5: internal compiler error: in extract_insn, at recog.c:2083
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> >
> > Regards,
> > --
> > Francisco
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
Name    : Berndt Josef Wulf             | +++ With BSD on Packet Radio +++
E-Mail  : wulf at ping dot net dot au   |    tfkiss, tnt, dpbox, wampes
ICQ     : 18196098                      |  VK5ABN, Nairne, South Australia
URL     : http://www.ping.net.au/~wulf  | MBOX : vk5...@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC Miata 500AU, NetBSD-1.6ZH | BBS  : vk5abn.#lmr.#sa.aus.oc

Reply via email to