Subject: internal error--unrecognizable insn
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <jukka-netbsd@2003.salmi.ch>
List: netbsd-help
Date: 06/05/2003 23:45:24
Hello,

(I found a few messages regarding my problem in the current-users
archive from 2002, but I'm using stable and wonder if anybody else
has the same troubles.)

After adding 'COPTS+=-pipe' to /etc/mk.conf I can't compile a
GENERIC kernel anymore. I'm using netbsd-1-6 sources from June
5 2003 and gcc 2.95.3 on i386. I get:

-----
/usr/src/sys/arch/i386/compile/GENERIC/../../../../dev/pci/if_pcn.c: In function `pcn_init':
/usr/src/sys/arch/i386/compile/GENERIC/../../../../dev/pci/if_pcn.c:1768: internal error--unrecognizable insn:
(insn 644 643 646 (set (reg:SI 170)
        (unspec:SI[ 
                (const_int 512 [0x200])
            ]  5)) -1 (nil)
    (nil))
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/i386/compile/GENERIC
-----

(if_pcn.c is version 1.9.4.3, 2002-11-30)

I tried several times on different (old and new i386) machines
and always got exactly the same error, so I'd rule out hardware
problems. furthermore everything works fine without -pipe option.


Any hints?

TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~