Subject: Compiler error on i386..?
To: None <current-users@netbsd.org>
From: None <netbsd99@sudog.com>
List: current-users
Date: 08/22/2003 14:26:07
support/finder.cc:940: internal error--insn does not satisfy its
constraints:
(insn 1997 2292 2224 (set (reg:SI 1 %edx)
(plus:SI (mult:SI (plus:SI (reg:SI 6 %ebp)
(const_int -640 [0xfffffd80]))
(const_int 2 [0x2]))
(reg:SI 0 %eax))) 206 {movsi_lea} (nil)
(nil))
This was generated from the following:
g++ -c -o finder.o -pipe -Dunix -I/usr/pkg/include -O2 -fPIC -DOS_NETBSD
-DOS_NETBSDX86 -Isupport support/finder.cc
What a strange error. :-) Comments? Suggestions? Derisive laughter?
Here're some version strings:
g++ --version
2.95.3
uname -a
NetBSD worky 1.6U NetBSD 1.6U (worky) #0: Fri Jul 25 13:25:57 PDT 2003
root@worky:/usr/src/sys/arch/i386/compile/worky i386
It is a recent -current anyway. This error does not present itself when
-fPIC is not part of the compile argument list. ONLY with -fPIC AND -O2
together.
Removing -O2 and replacing it with -O1 solves the problem.
What's going on here? Thanks!
--
no .plan