This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs 1.1.2 (egcs-2.91.66) cross to ppc-elf dies with internal compiler error on this code!


I am not sure if this is the right list to post this to, but here goes. I
was trying out some things with the egcs-1.1.2 compiler I built to generate
code on a PowerPC-860.  I was trying the options for generating code to
check memory accesses (-fcheck-memory-usage), and it generated to following
compiler error:

--- start of gcc output ---
gcc -v -fverbose-asm -fcheck-memory-usage -S -Wall -ansi  -mcpu=860 -mmultip
le -
B
//c/dvt/bin/ppc-elf/egcs-2.91.66/ -DDVT_600 -DENABLE_DECIMAL_MODE -DMARK_IMA
GE
 -O2 -DNDEBUG -fomit-frame-pointer -I //c/dvt/include -I ../600 -I ../ppc -I
../
net -I .. -I ../sensors ../rgb2hsi.c -o lastcc.s
Reading specs from \\c\dvt\bin\ppc-elf\egcs-2.91.66\specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 \\c\dvt\bin\ppc-elf\egcs-2.91.66\cpp.exe -lang-c89 -v -I //c/dvt/include -I
../
600 -I ../ppc -I ../net -I .. -I ../sensors -isystem
\\c\dvt\bin\ppc-elf\egcs-2.
91.66\include -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -trigraphs -D__STRICT_
ANSI
__ -D__PPC__ -D__unix__ -D__svr4__ -D__PPC -D__unix -Asystem(unix) -Asystem(
svr4
) -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -D__OPTIMIZE__ -Wall
 -D_
CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PPC -D
DVT_
600 -DENABLE_DECIMAL_MODE -DMARK_IMAGE -DNDEBUG ../rgb2hsi.c
C:\TEMP\ccJySBeV.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (PowerPC System
V.4)
#include "..." search starts here:
#include <...> search starts here:
 \\c\dvt\include
 ..\600
 ..\ppc
 ..\net
 ..
 ..\sensors
 \dvt-ppc\ppc-elf\sys-include
End of search list.
 \\c\dvt\bin\ppc-elf\egcs-2.91.66\cc1.exe
C:\TEMP\ccJySBeV.i -quiet -dumpbase rg
b2hsi.c -mcpu=860 -mmultiple -ansi -O2 -Wall -ansi -version -fverbose-asm -f
chec
k-memory-usage -fomit-frame-pointer -o lastcc.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (ppc-elf) compiled
by G
NU C version egcs-2.91.57 19980901 (egcs-1.1 release).
../rgb2hsi.c: In function `test_stack':
../rgb2hsi.c:26: internal error--unrecognizable insn:
(call_insn/u 21 19 23 (parallel[
            (call (mem:SI (symbol_ref ("chkr_check_addr")))
                (const_int 0))
            (use (const_int 0))
            (clobber (scratch:SI))
        ] ) -1 (insn_list 15 (insn_list 17 (insn_list 19 (nil))))
    (expr_list:REG_DEAD (reg:SI 3 r3)
        (expr_list:REG_DEAD (reg:SI 4 r4)
            (expr_list:REG_DEAD (reg:SI 5 r5)
                (expr_list:REG_UNUSED (scratch:SI)
                    (nil)))))
    (expr_list (use (reg:SI 5 r5))
        (expr_list (use (reg:SI 4 r4))
            (expr_list (use (reg:SI 3 r3))
                (nil)))))
../../egcs-1.1.2/gcc/toplev.c:1367: Internal compiler error in function
fatal_in
sn
make[1]: *** [rgb2hsi.o] Error 1

--- end of compiler output ---


Attached is some sample code that will generate this.  I also tried this
with m68k-coff and sh-elf, and it seems to work.


rgb2hsi.c

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com