Thanks for reporting this.
This is not about the code you're compiling, this is lack of instruction
in a machine description file. I'll add the fix tomorrow.
However, 3.4 is not fully tested (yet). So, you're welcome to test it :)

~d


-----Original Message-----
From: mspgcc-users-ad...@lists.sourceforge.net
[mailto:mspgcc-users-ad...@lists.sourceforge.net] On Behalf Of Peter
Jansen
Sent: Friday, May 28, 2004 7:56 AM
To: mspgcc-users
Subject: [Mspgcc-users] bug in gcc-3.4.0

when compiling code with gcc-3.4.0

The bug when compiling msp430-libc in libm/sf-rint.c causes this 
internal error

[peter_...@sts-cvs src]$ msp430-gcc  -mmcu=msp1 -I./../include -I. -Wall

-O2 -g -c libm/sf_rint.c -o msp1/sf_rint.o -save-temps -v
Reading specs from /usr/local/lib/gcc/msp430/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --target=msp430
Thread model: single
gcc version 3.4.0
  /usr/local/libexec/gcc/msp430/3.4.0/cc1 -E -quiet -v -I./../include 
-I. libm/sf_rint.c -mmcu=msp1 -Wall -fworking-directory -O2 -o sf_rint.i
ignoring nonexistent directory 
"/usr/local/lib/gcc/msp430/3.4.0/../../../../msp430/sys-include"
#include "..." search starts here:
#include <...> search starts here:
  ./../include
  .
  /usr/local/lib/gcc/msp430/3.4.0/include
  /usr/local/lib/gcc/msp430/3.4.0/../../../../msp430/include
End of search list.
  /usr/local/libexec/gcc/msp430/3.4.0/cc1 -fpreprocessed sf_rint.i 
-quiet -dumpbase sf_rint.c -mmcu=msp1 -auxbase-strip msp1/sf_rint.o -g 
-O2 -Wall -version -o sf_rint.s
GNU C version 3.4.0 (msp430)
         compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0
3.2-7).
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15772
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.


attached is the sf_rint.i file, this is fixed by removing the volatile 
in line 38 of libm/sf_rint.c

Compiling code I have I get this fault, attached is the main.i output


[peter_...@sts-cvs AWS2003.1.0.C169]$  msp430-gcc -O2 -DTARGET 
-mmcu=msp430x149 -g -Wno-main -Wall -Werror  -Wno-format 
-mmcu=msp430x149 -I./include -Ibl/include -Iblbl/include 
-Iblblbl/include -c bl/argosSeimac/main.c -o 
argosSeimac/msp430x149/main.o --save-temps -v
Reading specs from /usr/local/lib/gcc/msp430/3.4.0/specs
Configured with: ../gcc-3.4.0/configure --target=msp430
Thread model: single
gcc version 3.4.0
  /usr/local/libexec/gcc/msp430/3.4.0/cc1 -E -quiet -v -I./include 
-Ibl/include -Iblbl/include -Iblblbl/include -D__MSP430_149__ -DTARGET 
bl/argosSeimac/main.c -mmcu=msp430x149 -mmcu=msp430x149 -Wno-main -Wall 
-Werror -Wno-format -fworking-directory -O2 -o main.i
ignoring nonexistent directory 
"/usr/local/lib/gcc/msp430/3.4.0/../../../../msp430/sys-include"
ignoring nonexistent directory "blbl/include"
ignoring nonexistent directory "blblbl/include"
#include "..." search starts here:
#include <...> search starts here:
  ./include
  bl/include
  /usr/local/lib/gcc/msp430/3.4.0/include
  /usr/local/lib/gcc/msp430/3.4.0/../../../../msp430/include
End of search list.
  /usr/local/libexec/gcc/msp430/3.4.0/cc1 -fpreprocessed main.i -quiet 
-dumpbase main.c -mmcu=msp430x149 -mmcu=msp430x149 -auxbase-strip 
argosSeimac/msp430x149/main.o -g -O2 -Wno-main -Wall -Werror -Wno-format

-version -o main.s
GNU C version 3.4.0 (msp430)
         compiled by GNU C version 3.2 20020903 (Red Hat Linux 8.0
3.2-7).
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15772
bl/argosSeimac/main.c: In function `main':
bl/argosSeimac/main.c:236: internal compiler error: in 
subreg_highpart_offset, at emit-rtl.c:1328
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Any ideas?

-- 
Peter Jansen
STS
Australian Antarctic Division
Channel Highway
Kingston
TAS        7050
AUSTRALIA
Ph  (03) 62 323 533
Fax (03) 62 323 351


Reply via email to