From owner-freebsd-current Mon Feb 21 1:37: 0 2000 Delivered-To: freebsd-current@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id 9596E37BEEC for ; Mon, 21 Feb 2000 01:36:51 -0800 (PST) (envelope-from sobomax@altavista.net) Received: from vega.vega.com (dialup4-49.iptelecom.net.ua [212.9.226.241]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id LAA21518 for ; Mon, 21 Feb 2000 11:38:54 +0200 (EET) Received: from altavista.net (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.9.3/8.9.3) with ESMTP id LAA11246 for ; Mon, 21 Feb 2000 11:35:18 +0200 (EET) (envelope-from sobomax@altavista.net) Message-ID: <38B106D0.B416F877@altavista.net> Date: Mon, 21 Feb 2000 11:35:13 +0200 From: Maxim Sobolev Reply-To: sobomax@altavista.net Organization: Vega International Capital X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: current@freebsd.org Subject: gcc code generation bug (optimisation related) Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, When I'm trying to compile kernel from just cvsup'ed sources on system builded/installed last evening I have following error message. This problem could be solved by lowering optimisation to -O, but previously I have no problems with -O2 for kernels. cc -c -O2 -march=pentium -Wall -Wredundant-decls -Wnested-externs -Wstrict-proto types -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-exten sions -ansi -nostdinc -I- -I. -I../.. -I../../../include -D_KERNEL -include op t_global.h -elf -mpreferred-stack-boundary=2 ../../i386/i386/machdep.c /tmp/ccfL2694.s: Assembler messages: /tmp/ccfL2694.s:3563: Error: operands given don't match any known 386 instruction *** Error code 1 Following is the assembler code in question: .L659: movl %ecx,%eax jmp .L658 .p2align 2,0x90 .L643: testb $1,%bl je .L644 #APP movl %dr0,-16(%ebp) <-------Line 3563 is here #NO_APP movl $1,%ecx .L644: testb $2,%bl je .L646 #APP movl %dr1,%edx #NO_APP leal -16(%ebp),%eax movl %edx,(%eax,%ecx,4) incl %ecx -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message